public abstract class AbstractConnectionAdapter extends AbstractUnsupportedOperationConnection
Connection
.TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
AbstractConnectionAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
void |
close() |
void |
commit() |
boolean |
getAutoCommit() |
Connection |
getConnection(String dataSourceName)
Get database connection.
|
protected abstract Map<String,DataSource> |
getDataSourceMap() |
int |
getHoldability() |
int |
getTransactionIsolation() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
protected void |
removeCache(Connection connection) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setHoldability(int holdability) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
abort, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getCatalog, getClientInfo, getClientInfo, getNetworkTimeout, getSchema, getTypeMap, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setNetworkTimeout, setSavepoint, setSavepoint, setSchema, setTypeMap
isWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createStatement, createStatement, createStatement, getMetaData, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement
isWrapperFor, unwrap
public final Connection getConnection(String dataSourceName) throws SQLException
dataSourceName
- data source nameSQLException
- SQL exceptionprotected abstract Map<String,DataSource> getDataSourceMap()
protected void removeCache(Connection connection)
public final boolean getAutoCommit()
public final void setAutoCommit(boolean autoCommit) throws SQLException
SQLException
public final void commit() throws SQLException
SQLException
public final void rollback() throws SQLException
SQLException
public void close() throws SQLException
SQLException
public final boolean isClosed()
public final boolean isReadOnly()
public final void setReadOnly(boolean readOnly) throws SQLException
SQLException
public final int getTransactionIsolation() throws SQLException
SQLException
public final void setTransactionIsolation(int level) throws SQLException
SQLException
public SQLWarning getWarnings()
public void clearWarnings()
public final int getHoldability()
public final void setHoldability(int holdability)
Copyright © 2018. All rights reserved.