org.firebirdsql.jdbc
Class InternalTransactionCoordinator.AbstractTransactionCoordinator
java.lang.Object
org.firebirdsql.jdbc.InternalTransactionCoordinator.AbstractTransactionCoordinator
- All Implemented Interfaces:
- FBObjectListener.BlobListener, FBObjectListener.StatementListener
- Direct Known Subclasses:
- InternalTransactionCoordinator.AutoCommitCoordinator, InternalTransactionCoordinator.LocalTransactionCoordinator, InternalTransactionCoordinator.MetaDataTransactionCoordinator
- Enclosing class:
- InternalTransactionCoordinator
public abstract static class InternalTransactionCoordinator.AbstractTransactionCoordinator
- extends Object
- implements FBObjectListener.StatementListener, FBObjectListener.BlobListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localTransaction
protected FirebirdLocalTransaction localTransaction
connection
protected AbstractConnection connection
statements
protected Collection statements
InternalTransactionCoordinator.AbstractTransactionCoordinator
protected InternalTransactionCoordinator.AbstractTransactionCoordinator(AbstractConnection connection,
FirebirdLocalTransaction localTransaction)
getConnection
public AbstractConnection getConnection()
throws SQLException
- Get the connection which owns this coordinator.
- Specified by:
getConnection in interface FBObjectListener.StatementListener
- Returns:
- instance of
AbstractConnection
- Throws:
SQLException - if something went wrong.
getStatements
protected Collection getStatements()
setStatements
protected void setStatements(Collection statements)
completeStatements
protected void completeStatements()
throws SQLException
- Throws:
SQLException
ensureTransaction
public abstract void ensureTransaction()
throws SQLException
- Throws:
SQLException
commit
public abstract void commit()
throws SQLException
- Throws:
SQLException
rollback
public abstract void rollback()
throws SQLException
- Throws:
SQLException
Copyright © 2001-2010. All Rights Reserved.