public class JDBCConnectionFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
| Constructor and Description |
|---|
JDBCConnectionFactory(HybrisDataSource dateSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(<any> pooledConnection) |
protected Connection |
createRawSQLConnection() |
void |
destroyObject(<any> pooledConnection) |
void |
disableOracleStatementCaching()
Explicitly switches off oracle statement caching.
|
void |
enableOracleStatementCaching(int cacheSize)
Explicitly enables oracle statement caching no matter what settings have been put into configuration.
|
int |
getMaxPhysicalOpen() |
int |
getNumPhysicalOpen() |
protected String |
getValidationQuery() |
boolean |
isOracleStatementCachingEnabled()
Tells if oracle (implicit) statement caching is currently enabled.
|
<any> |
makeObject() |
protected boolean |
mustValidate(Object obj) |
void |
passivateObject(<any> pooledConnection) |
void |
resetOracleStatementCaching()
Resets oracle statements caching state.
|
void |
resetStats() |
String |
toString() |
boolean |
validateObject(<any> pooledConnection) |
public JDBCConnectionFactory(HybrisDataSource dateSource)
public void resetStats()
public int getNumPhysicalOpen()
public int getMaxPhysicalOpen()
public <any> makeObject()
throws SQLException
SQLExceptionprotected Connection createRawSQLConnection() throws SQLException
SQLExceptionpublic void activateObject(<any> pooledConnection)
public void passivateObject(<any> pooledConnection)
public void destroyObject(<any> pooledConnection)
throws SQLException
SQLExceptionprotected boolean mustValidate(Object obj)
protected String getValidationQuery()
public boolean validateObject(<any> pooledConnection)
public void enableOracleStatementCaching(int cacheSize)
cacheSize - the statement cache sizepublic void resetOracleStatementCaching()
public void disableOracleStatementCaching()
enableOracleStatementCaching(int) or
resetOracleStatementCaching().public boolean isOracleStatementCachingEnabled()
Copyright © 2017 SAP SE. All Rights Reserved.