public class RecordingConnectionSource extends ConnectionSourceDecorator
Constructor and Description |
---|
RecordingConnectionSource(com.j256.ormlite.support.ConnectionSource delegate) |
Modifier and Type | Method and Description |
---|---|
int |
decreaseConnectionCount() |
int |
getConnectionCount() |
com.j256.ormlite.support.DatabaseConnection |
getReadOnlyConnection(String tableName) |
com.j256.ormlite.support.DatabaseConnection |
getReadWriteConnection(String tableName) |
com.j256.ormlite.support.DatabaseConnection |
getSpecialConnection(String tableName) |
int |
increaseConnectionCount() |
void |
releaseConnection(com.j256.ormlite.support.DatabaseConnection connection) |
clearSpecialConnection, close, closeQuietly, getDatabaseType, getDelegate, isOpen, isSingleConnection, saveSpecialConnection
public RecordingConnectionSource(@Nonnull com.j256.ormlite.support.ConnectionSource delegate)
public int increaseConnectionCount()
public int decreaseConnectionCount()
public int getConnectionCount()
public com.j256.ormlite.support.DatabaseConnection getReadOnlyConnection(String tableName) throws SQLException
getReadOnlyConnection
in interface com.j256.ormlite.support.ConnectionSource
getReadOnlyConnection
in class ConnectionSourceDecorator
SQLException
public com.j256.ormlite.support.DatabaseConnection getReadWriteConnection(String tableName) throws SQLException
getReadWriteConnection
in interface com.j256.ormlite.support.ConnectionSource
getReadWriteConnection
in class ConnectionSourceDecorator
SQLException
public com.j256.ormlite.support.DatabaseConnection getSpecialConnection(String tableName)
getSpecialConnection
in interface com.j256.ormlite.support.ConnectionSource
getSpecialConnection
in class ConnectionSourceDecorator
public void releaseConnection(com.j256.ormlite.support.DatabaseConnection connection) throws SQLException
releaseConnection
in interface com.j256.ormlite.support.ConnectionSource
releaseConnection
in class ConnectionSourceDecorator
SQLException