public class FlexibleSearchDataSourceImpl extends DataSourceImpl
OBJ_POOL_V1_WHEN_EXHAUSTED_BLOCK, OBJ_POOL_V1_WHEN_EXHAUSTED_FAIL, OBJ_POOL_V1_WHEN_EXHAUSTED_GROW| Constructor and Description |
|---|
FlexibleSearchDataSourceImpl(Tenant tenant,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> params,
boolean readOnly,
DataSourceFactory factory)
Creates a new data source using connection parameters.
|
FlexibleSearchDataSourceImpl(Tenant tenant,
java.lang.String id,
java.lang.String jndiName,
boolean readOnly,
DataSourceFactory factory)
Creates a new data source using a existing JNDI data source.
|
| Modifier and Type | Method and Description |
|---|---|
protected GenericObjectPoolConfig |
createNewPoolConfig() |
protected GenericObjectPool.Config |
createPoolConfig()
Deprecated.
since ages - Database connection pool now uses version 2 of Apache Commons Pool, so please use
createNewPoolConfig() to create GenericObjectPoolConfig instead. |
protected java.sql.Connection |
doGetConnection(boolean txBound)
Wrap connection into FlexSyntaxAwareConnection
|
void |
returnToPool(ConnectionImpl conn) |
java.lang.String |
toString() |
cannotConnect, destroy, determineBlockingFromV1Property, getConnection, getConnection, getConnection, getConnectionParameters, getConnectionPool, getCustomSessionSQL, getDatabaseName, getDatabaseURL, getDatabaseUser, getDatabaseVersion, getDataSourceFactory, getDriverVersion, getID, getJDBCInterceptor, getJNDIName, getLoginTimeout, getLogUtils, getLogWriter, getMaxAllowedPhysicalOpen, getMaxInUse, getMaxPhysicalOpen, getMaxPreparedParameterCount, getMillisWaitedForConnection, getNumInUse, getNumPhysicalOpen, getParentLogger, getSchemaName, getTablePrefix, getTenant, getUserNameFromDatabaseMetaData, invalidate, isDBLogActive, isDBLogAppendStackTraceActive, isReadOnly, isWrapperFor, readSchemaName, resetStats, setDBLog, setDBLogAppendStackTrace, setLoginTimeout, setLogWriter, totalGets, translateToDataAccessException, unwrappublic FlexibleSearchDataSourceImpl(Tenant tenant, java.lang.String id, java.util.Map<java.lang.String,java.lang.String> params, boolean readOnly, DataSourceFactory factory)
tenant - the owning tenantparams - the connection parameterspublic FlexibleSearchDataSourceImpl(Tenant tenant, java.lang.String id, java.lang.String jndiName, boolean readOnly, DataSourceFactory factory)
tenant - the owning tenantjndiName - the JNDI name of the actual data sourcepublic java.lang.String toString()
toString in class DataSourceImplprotected GenericObjectPoolConfig createNewPoolConfig()
createNewPoolConfig in class DataSourceImpl@Deprecated protected GenericObjectPool.Config createPoolConfig()
createNewPoolConfig() to create GenericObjectPoolConfig instead.createPoolConfig in class DataSourceImplprotected java.sql.Connection doGetConnection(boolean txBound)
throws java.sql.SQLException
doGetConnection in class DataSourceImpltxBound - java.sql.SQLExceptionpublic void returnToPool(ConnectionImpl conn)
returnToPool in interface HybrisDataSourcereturnToPool in class DataSourceImplCopyright © 2018 SAP SE. All Rights Reserved.