public class CountingDataSource extends DelegatingDataSource
Modifier and Type | Class and Description |
---|---|
protected class |
CountingDataSource.CountingConnection |
DelegatingDataSource.DelegatingConnection
delegateDatasource
Constructor and Description |
---|
CountingDataSource(javax.sql.DataSource delegateDatasource) |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
getDelegateDatasource()
Provides access to the underlying datasource for operations that shouldn't increment the count
|
long |
getUpdateCount() |
protected java.sql.Connection |
wrap(java.sql.Connection con) |
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
public CountingDataSource(javax.sql.DataSource delegateDatasource)
protected java.sql.Connection wrap(java.sql.Connection con)
wrap
in class DelegatingDataSource
public javax.sql.DataSource getDelegateDatasource()
public long getUpdateCount()