public class JDBCXAConnectionWrapper extends JDBCConnection
The new implementation extends JDBCConnection. A new object is created based on the session / session proxy of the JDBCXAConnection object in the constructor. (fredt)
JDBCConnection
Constructor and Description |
---|
JDBCXAConnectionWrapper(JDBCXAResource xaResource,
JDBCXAConnection xaConnection,
JDBCConnection databaseConnection) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Interceptor method, because this method is prohibited within
any global transaction.
|
void |
rollback()
Interceptor method, because this method is prohibited within
any global transaction.
|
void |
rollback(java.sql.Savepoint savepoint)
Interceptor method, because this method is prohibited within
any global transaction.
|
void |
setAutoCommit(boolean autoCommit)
Interceptor method, because this method is prohibited within
any global transaction.
|
java.sql.Savepoint |
setSavepoint()
Interceptor method, because this method is prohibited within
any global transaction.
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
Interceptor method, because this method is prohibited within
any global transaction.
|
void |
setTransactionIsolation(int level)
Interceptor method, because there may be XA implications to
calling the method within a global transaction.
|
abort, clearWarnings, close, closeFully, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getSession, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, reset, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSchema, setTypeMap, unwrap
public JDBCXAConnectionWrapper(JDBCXAResource xaResource, JDBCXAConnection xaConnection, JDBCConnection databaseConnection) throws java.sql.SQLException
java.sql.SQLException
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
setAutoCommit
in interface java.sql.Connection
setAutoCommit
in class JDBCConnection
autoCommit
- java.sql.SQLException
- on errorJDBCConnection.getAutoCommit()
public void commit() throws java.sql.SQLException
commit
in interface java.sql.Connection
commit
in class JDBCConnection
java.sql.SQLException
- on errorJDBCConnection.setAutoCommit(boolean)
public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
rollback
in class JDBCConnection
java.sql.SQLException
- on errorJDBCConnection.setAutoCommit(boolean)
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException
rollback
in interface java.sql.Connection
rollback
in class JDBCConnection
savepoint
- the Savepoint
object to roll back tojava.sql.SQLException
- on errorJDBCSavepoint
,
Savepoint
,
JDBCConnection.rollback()
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class JDBCConnection
Savepoint
objectjava.sql.SQLException
- on errorJDBCSavepoint
,
Savepoint
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
setSavepoint
in class JDBCConnection
name
- a String
containing the name of the savepointSavepoint
objectjava.sql.SQLException
- if a database access error occurs,
(JDBC4 Clarification:)
this method is called while participating in a distributed transaction,
this method is called on a closed connection
or this Connection
object is currently in
auto-commit modejava.sql.SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodJDBCSavepoint
,
Savepoint
public void setTransactionIsolation(int level) throws java.sql.SQLException
HSQLDB does not allow changing the isolation level inside a transaction of any kind.
setTransactionIsolation
in interface java.sql.Connection
setTransactionIsolation
in class JDBCConnection
level
- isolation leveljava.sql.SQLException
- if a database access error occurs, this
(JDBC4 Clarification:)
method is called on a closed connection
(:JDBC4 End Clarification)
or the given parameter is not one of the Connection
constantsJDBCDatabaseMetaData.supportsTransactionIsolationLevel(int)
,
JDBCConnection.getTransactionIsolation()
Copyright © 2001 - 2017 HSQL Development Group.