public class JDBCConnectionDataSource extends DBDataSource implements MockDataSource
Modifier and Type | Class and Description |
---|---|
class |
JDBCConnectionDataSource.BuildQueryWizardAction
Wizard for building query directly for both "Project level connection" and
"driver/connestionString" options in case of connection properties already
set
|
class |
JDBCConnectionDataSource.DriverConnStringAndQueryWizardAction
Wizard for configuring all props, when no connection, and no
driver/connectionString set and building query afterwards (not store
procedure)
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized |
static String |
TYPE |
columnNames, connection, connectionPropertiesHolder, connectionString, CONNSTR_ELEMENT, CONNSTR_FIELD, connStrTextField, DATA_CONNECTION_FIELD, databaseConnection, dbConnAndQueryWizard, dbConnContainer, dbConnectionName, driver, DRIVER_ELEMENT, DRIVER_FIELD, driverTextField, FETCH_SIZE_ELEMENT, FETCH_SIZE_FIELD, fetchSize, fetchSizeTextField, form, lastResult, panel, PASS_ELEMENT, PASS_FIELD, passField, password, query, QUERY_ELEMENT, QUERY_FIELD, queryArea, resultSet, resultSetCount, statement, storedProcedure, STOREDPROCEDURE_ELEMENT, STOREDPROCEDURE_FIELD
Constructor and Description |
---|
JDBCConnectionDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
addExternalDependency(List<com.eviware.soapui.impl.wsdl.support.ExternalDependency> dependencies) |
protected boolean |
enableTestConnection() |
JComponent |
getComponent() |
protected void |
getDatabaseConnection(com.eviware.soapui.model.propertyexpansion.PropertyExpansionContext context) |
com.eviware.soapui.model.propertyexpansion.PropertyExpansion[] |
getPropertyExpansions() |
void |
init(com.eviware.soapui.config.DataSourceConfig config,
DataSourceContainer dataSourceContainer) |
boolean |
isLoaded() |
protected void |
load(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader) |
void |
loadConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader) |
void |
prepare(com.eviware.soapui.model.testsuite.TestCaseRunner testRunner,
com.eviware.soapui.model.testsuite.TestCaseRunContext context,
List<String> properties) |
void |
release() |
protected void |
save(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder) |
void |
saveConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder) |
fetchSizeToString, finish, finish, getConnectionProperties, getConnectionString, getDbConnectionName, getDriver, getFetchSize, getPassword, getPreparedProperties, getProject, getQuery, getResultSetCount, internalFinish, internalLoad, internalNext, internalPrepare, isExhausted, isStoredProcedure, load, load, next, next, prepare, setConnectionProperties, setConnectionString, setDbConnectionName, setDriver, setFetchSize, setFetchSizeQueryWizard, setPassword, setQuery, setStoredProcedure
getConfig, getDataSourceContainer, getDescription, getTestCase, getType, resolve, saveConfig, sendAnalytics, setConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, load, next, prepare
finish, getConfig, getDescription, getPreparedProperties, getType, isExhausted, load, next, resolve, setConfig
public static final String TYPE
protected boolean initialized
public boolean isLoaded()
isLoaded
in interface DataSource
isLoaded
in class DBDataSource
public void init(com.eviware.soapui.config.DataSourceConfig config, DataSourceContainer dataSourceContainer)
init
in interface com.eviware.soapui.support.registry.RegistryEntry<com.eviware.soapui.config.DataSourceConfig,DataSourceContainer>
init
in class AbstractDataSource
public JComponent getComponent()
getComponent
in interface DataSource
protected boolean enableTestConnection()
protected void load(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader)
load
in class AbstractDataSource
protected void save(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder)
save
in class AbstractDataSource
public com.eviware.soapui.model.propertyexpansion.PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface DataSource
getPropertyExpansions
in class AbstractDataSource
public void loadConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader)
loadConfiguration
in interface MockDataSource
public void saveConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder)
saveConfiguration
in interface MockDataSource
public void prepare(com.eviware.soapui.model.testsuite.TestCaseRunner testRunner, com.eviware.soapui.model.testsuite.TestCaseRunContext context, List<String> properties) throws SQLException, com.eviware.soapui.support.SoapUIException
prepare
in interface DataSource
prepare
in class DBDataSource
SQLException
com.eviware.soapui.support.SoapUIException
public void addExternalDependency(List<com.eviware.soapui.impl.wsdl.support.ExternalDependency> dependencies)
addExternalDependency
in interface DataSource
public void release()
release
in interface DataSource
release
in class DBDataSource
protected void getDatabaseConnection(com.eviware.soapui.model.propertyexpansion.PropertyExpansionContext context) throws com.eviware.soapui.support.SoapUIException, SQLException
getDatabaseConnection
in class DBDataSource
com.eviware.soapui.support.SoapUIException
SQLException
Copyright © 2019. All rights reserved.