Package de.hybris.platform.core
Class DataSourceImplFactory
java.lang.Object
de.hybris.platform.core.DataSourceImplFactory
- All Implemented Interfaces:
DataSourceFactory
- Direct Known Subclasses:
JUnitDataSourceFactory,SlaveTenantDataSourceFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnectionPool(HybrisDataSource dataSource, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) createJNDIDataSource(String id, Tenant tenant, String fromJNDI, boolean readOnly) protected booleanwrapConnection(HybrisDataSource wrappedDataSource, Connection rawConnection) wrapPreparedStatement(Connection wrappedConnection, PreparedStatement rawStatement, String query) wrapResultSet(Statement wrappedStatement, ResultSet rawResultSet) wrapStatement(Connection wrappedConnection, Statement rawStatement)
-
Constructor Details
-
DataSourceImplFactory
public DataSourceImplFactory()
-
-
Method Details
-
createJNDIDataSource
public HybrisDataSource createJNDIDataSource(String id, Tenant tenant, String fromJNDI, boolean readOnly) - Specified by:
createJNDIDataSourcein interfaceDataSourceFactory
-
createDataSource
public HybrisDataSource createDataSource(String id, Tenant tenant, Map<String, String> connectionParams, boolean readOnly) - Specified by:
createDataSourcein interfaceDataSourceFactory
-
createConnectionPool
public JDBCConnectionPool createConnectionPool(HybrisDataSource dataSource, org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig) - Specified by:
createConnectionPoolin interfaceDataSourceFactory
-
isDatabaseConnectionErrorDetectionEnabled
-
wrapConnection
- Specified by:
wrapConnectionin interfaceDataSourceFactory
-
wrapPreparedStatement
public PreparedStatement wrapPreparedStatement(Connection wrappedConnection, PreparedStatement rawStatement, String query) - Specified by:
wrapPreparedStatementin interfaceDataSourceFactory
-
wrapStatement
- Specified by:
wrapStatementin interfaceDataSourceFactory
-
wrapResultSet
- Specified by:
wrapResultSetin interfaceDataSourceFactory
-