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 getLocalTransaction
public void begin() throws javax.resource.ResourceException
begin
in interface javax.resource.spi.LocalTransaction
javax.resource.spi.LocalTransactionException
- if there is an error in changing
the autocommit mode of the physical
connectionjavax.resource.ResourceException
public void commit() throws javax.resource.ResourceException
commit
in interface javax.resource.spi.LocalTransaction
javax.resource.spi.LocalTransactionException
- if there is an error in changing
the autocommit mode of the physical
connection or committing the transactionjavax.resource.ResourceException
public void rollback() throws javax.resource.ResourceException
rollback
in interface javax.resource.spi.LocalTransaction
javax.resource.spi.LocalTransactionException
- if there is an error in changing
the autocommit mode of the physical
connection or rolling back the transactionjavax.resource.ResourceException
Copyright © 2021. All rights reserved.