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, setTypeMapisWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateStatement, createStatement, createStatement, getMetaData, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatementisWrapperFor, unwrappublic 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
SQLExceptionpublic final void commit()
throws SQLException
SQLExceptionpublic final void rollback()
throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic final boolean isClosed()
public final boolean isReadOnly()
public final void setReadOnly(boolean readOnly)
throws SQLException
SQLExceptionpublic final int getTransactionIsolation()
throws SQLException
SQLExceptionpublic final void setTransactionIsolation(int level)
throws SQLException
SQLExceptionpublic SQLWarning getWarnings()
public void clearWarnings()
public final int getHoldability()
public final void setHoldability(int holdability)
Copyright © 2018. All rights reserved.