public class CountingDataSource extends DelegatingDataSource
| Modifier and Type | Class and Description |
|---|---|
protected class |
CountingDataSource.CountingConnection |
DelegatingDataSource.DelegatingConnectiondelegateDatasource| 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, unwrappublic CountingDataSource(javax.sql.DataSource delegateDatasource)
protected java.sql.Connection wrap(java.sql.Connection con)
wrap in class DelegatingDataSourcepublic javax.sql.DataSource getDelegateDatasource()
public long getUpdateCount()