public interface HybrisDataSource
extends javax.sql.DataSource
| Modifier and Type | Method and Description |
|---|---|
boolean |
cannotConnect() |
void |
destroy() |
java.sql.Connection |
getConnection(boolean transactionBound) |
java.util.Map<java.lang.String,java.lang.String> |
getConnectionParameters() |
JDBCConnectionPool |
getConnectionPool() |
java.lang.String |
getCustomSessionSQL() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getDatabaseURL() |
java.lang.String |
getDatabaseUser() |
java.lang.String |
getDatabaseVersion() |
DataSourceFactory |
getDataSourceFactory() |
java.lang.String |
getDriverVersion() |
java.lang.String |
getID() |
JDBCInterceptor |
getJDBCInterceptor() |
java.lang.String |
getJNDIName() |
JDBCLogUtils |
getLogUtils() |
int |
getMaxAllowedPhysicalOpen() |
int |
getMaxInUse() |
int |
getMaxPhysicalOpen() |
int |
getMaxPreparedParameterCount() |
long |
getMillisWaitedForConnection() |
int |
getNumInUse() |
int |
getNumPhysicalOpen() |
java.lang.String |
getSchemaName() |
java.lang.String |
getTablePrefix() |
Tenant |
getTenant() |
void |
invalidate(ConnectionImpl conn) |
boolean |
isDBLogActive() |
boolean |
isDBLogAppendStackTraceActive() |
boolean |
isReadOnly() |
void |
resetStats()
Reset the statistics.
|
void |
returnToPool(ConnectionImpl conn) |
void |
setDBLog(boolean active) |
void |
setDBLogAppendStackTrace(boolean active) |
long |
totalGets() |
DataAccessException |
translateToDataAccessException(java.sql.SQLException e)
Translates the given raw SQL exception into a Spring
DataAccessException exactly like it would have been done when using Spring JdbcTemplate. |
DataSourceFactory getDataSourceFactory()
java.lang.String getDriverVersion()
java.util.Map<java.lang.String,java.lang.String> getConnectionParameters()
java.lang.String getJNDIName()
java.lang.String getID()
JDBCConnectionPool getConnectionPool()
Tenant getTenant()
java.sql.Connection getConnection(boolean transactionBound)
throws java.sql.SQLException
java.sql.SQLExceptionvoid returnToPool(ConnectionImpl conn)
void invalidate(ConnectionImpl conn)
void destroy()
int getNumInUse()
int getNumPhysicalOpen()
int getMaxInUse()
int getMaxPhysicalOpen()
long totalGets()
resetStats()int getMaxAllowedPhysicalOpen()
long getMillisWaitedForConnection()
void resetStats()
JDBCLogUtils getLogUtils()
java.lang.String getDatabaseName()
int getMaxPreparedParameterCount()
java.lang.String getDatabaseVersion()
java.lang.String getDatabaseURL()
java.lang.String getCustomSessionSQL()
java.lang.String getDatabaseUser()
java.lang.String getSchemaName()
boolean cannotConnect()
true if a connection the pool is not possible.boolean isDBLogActive()
boolean isDBLogAppendStackTraceActive()
void setDBLog(boolean active)
void setDBLogAppendStackTrace(boolean active)
boolean isReadOnly()
true if the datasoure is read-onlyjava.lang.String getTablePrefix()
DataAccessException translateToDataAccessException(java.sql.SQLException e)
DataAccessException exactly like it would have been done when using Spring JdbcTemplate.JDBCInterceptor getJDBCInterceptor()
Copyright © 2018 SAP SE. All Rights Reserved.