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, unwrap
public NestedConnection(Connection existingConnection)
public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
setAutoCommit
in class AbstractDelegatingConnection
SQLException
public void commit() throws SQLException
commit
in interface Connection
commit
in class AbstractDelegatingConnection
SQLException
public void rollback() throws SQLException
rollback
in interface Connection
rollback
in class AbstractDelegatingConnection
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
close
in interface Connection
close
in class AbstractDelegatingConnection
SQLException
Copyright © 2002-2021 Atlassian. All Rights Reserved.