Package de.hybris.platform.jdbcwrapper
Class SlaveTenantDataSource
java.lang.Object
de.hybris.platform.jdbcwrapper.DataSourceImpl
de.hybris.platform.jdbcwrapper.SlaveTenantDataSource
- All Implemented Interfaces:
HybrisDataSource,Wrapper,CommonDataSource,DataSource
-
Field Summary
Fields inherited from class de.hybris.platform.jdbcwrapper.DataSourceImpl
OBJ_POOL_V1_WHEN_EXHAUSTED_BLOCK, OBJ_POOL_V1_WHEN_EXHAUSTED_FAIL, OBJ_POOL_V1_WHEN_EXHAUSTED_GROW -
Constructor Summary
ConstructorsConstructorDescriptionSlaveTenantDataSource(Tenant tenant, String id, Map<String, String> connectionParams, boolean readOnly, SlaveTenantDataSourceFactory factory) -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(boolean transactionBound) Fetches a new connection from connection pool.Methods inherited from class de.hybris.platform.jdbcwrapper.DataSourceImpl
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, getNumReadOnlyOpen, getParentLogger, getSchemaName, getTablePrefix, getTenant, getUserNameFromDatabaseMetaData, invalidate, isDBLogActive, isDBLogAppendStackTraceActive, isReadOnly, isWrapperFor, readSchemaName, resetStats, returnToPool, setDBLog, setDBLogAppendStackTrace, setLoginTimeout, setLogWriter, toString, totalGets, translateToDataAccessException, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
SlaveTenantDataSource
-
-
Method Details
-
getConnection
Description copied from class:DataSourceImplFetches a new connection from connection pool. If aTransactionis currently running the connection is either transaction bound (the connection which BEGIN and COMMIT/ROLLBACK is called upon) or a 'fresh' one.- Specified by:
getConnectionin interfaceHybrisDataSource- Overrides:
getConnectionin classDataSourceImpl- Parameters:
transactionBound- only valid if transaction is currently running: if true connection is transaction bound, if false a 'fresh' one is returned- Throws:
SQLException
-