public abstract static class InternalTransactionCoordinator.AbstractTransactionCoordinator extends java.lang.Object implements FBObjectListener.StatementListener, FBObjectListener.BlobListener
| Modifier and Type | Field and Description |
|---|---|
protected FBConnection |
connection |
protected FirebirdLocalTransaction |
localTransaction |
protected java.util.Collection<FBStatement> |
statements |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTransactionCoordinator(FBConnection connection,
FirebirdLocalTransaction localTransaction) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
commit() |
protected void |
completeStatements(CompletionReason reason) |
void |
ensureTransaction() |
FBConnection |
getConnection()
Get the connection which owns this coordinator.
|
protected java.util.Collection<FBStatement> |
getStatements() |
abstract void |
rollback() |
protected void |
setStatements(java.util.Collection<FBStatement> statements) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutionStarted, statementClosed, statementCompleted, statementCompletedexecutionCompleted, executionStartedprotected final FirebirdLocalTransaction localTransaction
protected final FBConnection connection
protected final java.util.Collection<FBStatement> statements
protected AbstractTransactionCoordinator(FBConnection connection, FirebirdLocalTransaction localTransaction)
public final FBConnection getConnection() throws java.sql.SQLException
getConnection in interface FBObjectListener.StatementListenerFBConnectionjava.sql.SQLException - if something went wrong.protected final java.util.Collection<FBStatement> getStatements()
protected final void setStatements(java.util.Collection<FBStatement> statements)
protected void completeStatements(CompletionReason reason) throws java.sql.SQLException
java.sql.SQLExceptionpublic void ensureTransaction()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract void commit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract void rollback()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.