The new implementation extends JDBCConnection. A new object is created based on the session / session proxy of the JDBCXAConnection object in the constructor. (fredt)
org.hsqldb.jdbc.JDBCConnection
| Modifier and Type | Field and Description |
|---|---|
| private JDBCXAResource |
| Access | Constructor and Description |
|---|---|
| public | JDBCXAConnectionWrapper(JDBCXAResource xaResource, JDBCXAConnection xaConnection, JDBCConnection databaseConnection)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | commit()
Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public void | rollback()
Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public void | rollback(Savepoint savepoint)
Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public void | setAutoCommit(boolean
mode autoCommit)Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public Savepoint | setSavepoint()
Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public Savepoint | setSavepoint(String name)
Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. |
| public void | setTransactionIsolation(int
isolation level level)Overrides org. Implements java. Interceptor method, because there may be XA implications to calling the method within a global transaction. |
| private void |
| xaResource | back to summary |
|---|---|
| private JDBCXAResource xaResource | |
| JDBCXAConnectionWrapper | back to summary |
|---|---|
| public JDBCXAConnectionWrapper(JDBCXAResource xaResource, JDBCXAConnection xaConnection, JDBCConnection databaseConnection) throws SQLException | |
| commit | back to summary |
|---|---|
| public void commit() throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| rollback | back to summary |
|---|---|
| public void rollback() throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| rollback | back to summary |
|---|---|
| public void rollback(Savepoint savepoint) throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| setAutoCommit | back to summary |
|---|---|
| public void setAutoCommit(boolean autoCommit) throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| setSavepoint | back to summary |
|---|---|
| public Savepoint setSavepoint() throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| setSavepoint | back to summary |
|---|---|
| public Savepoint setSavepoint(String name) throws SQLException Overrides org. Implements java. Interceptor method, because this method is prohibited within any global transaction. See section 1.2.4 of the JDBC 3.0 spec.
| |
| setTransactionIsolation | back to summary |
|---|---|
| public void setTransactionIsolation(int level) throws SQLException Overrides org. Implements java. Interceptor method, because there may be XA implications to calling the method within a global transaction. See section 1.2.4 of the JDBC 3.0 spec. HSQLDB does not allow changing the isolation level inside a transaction of any kind.
| |
| validateNotWithinTransaction | back to summary |
|---|---|
| private void validateNotWithinTransaction() throws SQLException Throws a SQLException if within a Global transaction.
| |