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, setStoredProceduregetConfig, getDataSourceContainer, getDescription, getTestCase, getType, resolve, saveConfig, sendAnalytics, setConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, load, next, preparefinish, getConfig, getDescription, getPreparedProperties, getType, isExhausted, load, next, resolve, setConfigpublic static final String TYPE
protected boolean initialized
public boolean isLoaded()
isLoaded in interface DataSourceisLoaded in class DBDataSourcepublic 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 AbstractDataSourcepublic JComponent getComponent()
getComponent in interface DataSourceprotected boolean enableTestConnection()
protected void load(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader)
load in class AbstractDataSourceprotected void save(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder)
save in class AbstractDataSourcepublic com.eviware.soapui.model.propertyexpansion.PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions in interface DataSourcegetPropertyExpansions in class AbstractDataSourcepublic void loadConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationReader reader)
loadConfiguration in interface MockDataSourcepublic void saveConfiguration(com.eviware.soapui.support.xml.XmlObjectConfigurationBuilder builder)
saveConfiguration in interface MockDataSourcepublic 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 DataSourceprepare in class DBDataSourceSQLExceptioncom.eviware.soapui.support.SoapUIExceptionpublic void addExternalDependency(List<com.eviware.soapui.impl.wsdl.support.ExternalDependency> dependencies)
addExternalDependency in interface DataSourcepublic void release()
release in interface DataSourcerelease in class DBDataSourceprotected void getDatabaseConnection(com.eviware.soapui.model.propertyexpansion.PropertyExpansionContext context)
throws com.eviware.soapui.support.SoapUIException,
SQLException
getDatabaseConnection in class DBDataSourcecom.eviware.soapui.support.SoapUIExceptionSQLExceptionCopyright © 2019. All rights reserved.