public class NestedConnection extends AbstractDelegatingConnection
We want to disallow any transaction control like commit(), rollback() etc as well as close()
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
NestedConnection(Connection existingConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
abort, clearWarnings, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, unwrappublic NestedConnection(Connection existingConnection)
public void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionsetAutoCommit in class AbstractDelegatingConnectionSQLExceptionpublic void commit()
throws SQLException
commit in interface Connectioncommit in class AbstractDelegatingConnectionSQLExceptionpublic void rollback()
throws SQLException
rollback in interface Connectionrollback in class AbstractDelegatingConnectionSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface Connectionclose in class AbstractDelegatingConnectionSQLExceptionCopyright © 2002-2018 Atlassian. All Rights Reserved.