public class JDBCXAConnectionWrapper extends JDBCConnection
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Constructor and Description |
---|
JDBCXAConnectionWrapper(JDBCXAResource xaResource,
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(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.
|
Savepoint |
setSavepoint()
Interceptor method, because this method is prohibited within
any global transaction.
|
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, escapeSQL, 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, JDBCConnection databaseConnection) throws SQLException
SQLException
public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
setAutoCommit
in class JDBCConnection
autoCommit
- true
to enable auto-commit mode;
false
to disable itSQLException
- if a database access error occurs,
(JDBC4 Clarification:)
setAutoCommit(true) is called while participating in a distributed transaction,
or this method is called on a closed connectionJDBCConnection.getAutoCommit()
public void commit() throws SQLException
commit
in interface Connection
commit
in class JDBCConnection
SQLException
- if a database access error occurs,
(JDBC4 Clarification:)
this method is called while participating in a distributed transaction,
if this method is called on a closed connection or this
Connection
object is in auto-commit modeJDBCConnection.setAutoCommit(boolean)
public void rollback() throws SQLException
rollback
in interface Connection
rollback
in class JDBCConnection
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 in auto-commit modeJDBCConnection.setAutoCommit(boolean)
public void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
rollback
in class JDBCConnection
savepoint
- the Savepoint
object to roll back toSQLException
- if a database access error occurs,
this method is called while participating in a distributed transaction,
this method is called on a closed connection,
the Savepoint
object is no longer valid,
or this Connection
object is currently in
auto-commit modeSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodJDBCSavepoint
,
Savepoint
,
JDBCConnection.rollback()
public Savepoint setSavepoint() throws SQLException
setSavepoint
in interface Connection
setSavepoint
in class JDBCConnection
Savepoint
objectSQLException
- 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 modeSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodJDBCSavepoint
,
Savepoint
public Savepoint setSavepoint(java.lang.String name) throws SQLException
setSavepoint
in interface Connection
setSavepoint
in class JDBCConnection
name
- a String
containing the name of the savepointSavepoint
objectSQLException
- 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 modeSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodJDBCSavepoint
,
Savepoint
public void setTransactionIsolation(int level) throws SQLException
HSQLDB does not allow changing the isolation level inside a transaction of any kind.
setTransactionIsolation
in interface Connection
setTransactionIsolation
in class JDBCConnection
level
- one of the following Connection
constants:
Connection.TRANSACTION_READ_UNCOMMITTED
,
Connection.TRANSACTION_READ_COMMITTED
,
Connection.TRANSACTION_REPEATABLE_READ
, or
Connection.TRANSACTION_SERIALIZABLE
.
(Note that Connection.TRANSACTION_NONE
cannot be used
because it specifies that transactions are not supported.)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 © 2015-2024 StreamScape Technologies. All rights reserved.