public class LocalTransactionImpl extends Object implements javax.resource.spi.LocalTransaction
LocalTransactionImpl implementation for Generic JDBC Connector.| Constructor and Description |
|---|
LocalTransactionImpl(ManagedConnectionImpl mc)
Constructor for
LocalTransactionImpl. |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Begin a local transaction.
|
void |
commit()
Commit a local transaction.
|
void |
rollback()
Rollback a local transaction.
|
protected static final Logger _logger
public LocalTransactionImpl(ManagedConnectionImpl mc)
LocalTransactionImpl.mc - ManagedConnection that returns
this LocalTransactionImpl object as
a result of getLocalTransactionpublic void begin()
throws javax.resource.ResourceException
begin in interface javax.resource.spi.LocalTransactionjavax.resource.spi.LocalTransactionException - if there is an error in changing
the autocommit mode of the physical
connectionjavax.resource.ResourceExceptionpublic void commit()
throws javax.resource.ResourceException
commit in interface javax.resource.spi.LocalTransactionjavax.resource.spi.LocalTransactionException - if there is an error in changing
the autocommit mode of the physical
connection or committing the transactionjavax.resource.ResourceExceptionpublic void rollback()
throws javax.resource.ResourceException
rollback in interface javax.resource.spi.LocalTransactionjavax.resource.spi.LocalTransactionException - if there is an error in changing
the autocommit mode of the physical
connection or rolling back the transactionjavax.resource.ResourceExceptionCopyright © 2017. All rights reserved.