Package com.softwaremining.sql
Class ConnectionFactoryImpl
java.lang.Object
com.softwaremining.sql.ConnectionFactory
com.softwaremining.sql.ConnectionFactoryImpl
-
Field Summary
Fields inherited from class com.softwaremining.sql.ConnectionFactory
COMMIT_IMMEDIATELY, DEFAULT_BATCH_SIZE, DEFAULT_RESULTSET_FETCH_SIZE, ESQL_TRIM_INPUT_STRINGS, FORCE_RESULTSET_TYPE_FORWARD_ONLY, OR_CHANGE_GE_CONDITION_TO_LIKE__DEFAULT, OR_CHANGE_GTEQ_TO_EQ_FOR_LIKE_CONDITIONS__DEFAULT, OR_CLOSE_CONNECTIONS, OR_EXPAND_GTEQ_LTEQ, OR_EXPAND_GTEQ_SEARCHES__DEFAULT, OR_SUPPRESS_SEEKS__DEFAULT, OR_TOP_ROW_SELECT_STRATEGY_COUNT__DEFAULT, OR_USE_SINGLE_CONNECTION_PER_SESSION, propertiesLoaded_auxilaries, REDUCE_GE_OR_EQ, RESULTSET_CONCURRENCY, RESULTSET_TYPE, SCHEMA_NAME, totalRuntime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(Long sessionId) create a connection taking the details (name, password, driver, etc) from the information specified in the property file - LOCATED IN THE ROOT DIRECTORYgetConnection(String resourceName, Long sessionId) create a connection taking the details (name, password, driver, etc) from the information specified in the property file - identified by "resourceName"getConnection(Properties properties, Long sessionId) create a connection taking the details from the specified property fileintgetConnectionStrategy(String resourceName) intgetConnectionStrategy(Properties properties) voidinitializeDbFeatures(Long sessionId, String dbPropertiesName) dbFeatuers refers to a class representing the underlying database: DB2, Oracle, MySQL , MSSQL , ...static voidsetProperties(Properties theProperties) Issue 0011014: Change-Request: new method "setProperties" required for ConnectionFactoryImpl Usage: setProperties( (EsqlProcessor) this.getDbPropertiesURI(), properties);Methods inherited from class com.softwaremining.sql.ConnectionFactory
assignDbFeatures, decrypt, getDbFeatures, getDBPropertyFileName, getInstance, getSchemaName, loadDbProperties, readDefaultDbProperties, setDBPropertyFileName, setInstance, setSchemaName, setSessionSchemaName
-
Constructor Details
-
ConnectionFactoryImpl
public ConnectionFactoryImpl()
-
-
Method Details
-
getConnection
create a connection taking the details (name, password, driver, etc) from the information specified in the property file - identified by "resourceName"- Specified by:
getConnectionin classConnectionFactory- Parameters:
properties-- Returns:
-
getConnection
create a connection taking the details (name, password, driver, etc) from the information specified in the property file - LOCATED IN THE ROOT DIRECTORY- Specified by:
getConnectionin classConnectionFactory- Parameters:
properties-- Returns:
-
getConnection
create a connection taking the details from the specified property file- Specified by:
getConnectionin classConnectionFactory- Parameters:
properties-- Returns:
-
initializeDbFeatures
Description copied from class:ConnectionFactorydbFeatuers refers to a class representing the underlying database: DB2, Oracle, MySQL , MSSQL , ... ALso read all properties - but do not create connection- Specified by:
initializeDbFeaturesin classConnectionFactory
-
getConnectionStrategy
- Specified by:
getConnectionStrategyin classConnectionFactory
-
getConnectionStrategy
-
setProperties
Issue 0011014: Change-Request: new method "setProperties" required for ConnectionFactoryImpl Usage: setProperties( (EsqlProcessor) this.getDbPropertiesURI(), properties);- Parameters:
theProperties-
-