public class SlaveTenantDataSource extends DataSourceImpl
OBJ_POOL_V1_WHEN_EXHAUSTED_BLOCK, OBJ_POOL_V1_WHEN_EXHAUSTED_FAIL, OBJ_POOL_V1_WHEN_EXHAUSTED_GROW| Constructor and Description |
|---|
SlaveTenantDataSource(Tenant tenant,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> connectionParams,
boolean readOnly,
SlaveTenantDataSourceFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection(boolean transactionBound)
Fetches a new connection from connection pool.
|
cannotConnect, createNewPoolConfig, createPoolConfig, destroy, determineBlockingFromV1Property, doGetConnection, 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, returnToPool, setDBLog, setDBLogAppendStackTrace, setLoginTimeout, setLogWriter, toString, totalGets, translateToDataAccessException, unwrappublic SlaveTenantDataSource(Tenant tenant, java.lang.String id, java.util.Map<java.lang.String,java.lang.String> connectionParams, boolean readOnly, SlaveTenantDataSourceFactory factory)
public java.sql.Connection getConnection(boolean transactionBound)
throws java.sql.SQLException
DataSourceImplTransaction is currently running the connection is
either transaction bound (the connection which BEGIN and COMMIT/ROLLBACK is called upon) or a 'fresh' one.getConnection in interface HybrisDataSourcegetConnection in class DataSourceImpltransactionBound - only valid if transaction is currently running: if true connection is transaction bound, if false a
'fresh' one is returnedjava.sql.SQLExceptionCopyright © 2018 SAP SE. All Rights Reserved.