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 FBLocalTransaction |
localTransaction |
protected java.util.Collection<FBStatement> |
statements |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTransactionCoordinator(FBConnection connection,
FBLocalTransaction 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) |
void |
statementCompleted(FBStatement stmt)
Notify the listener that statement is completed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutionStarted, statementClosed, statementCompletedexecutionCompleted, executionStartedprotected final FBLocalTransaction localTransaction
protected final FBConnection connection
protected final java.util.Collection<FBStatement> statements
protected AbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction 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.SQLExceptionpublic final void statementCompleted(FBStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListenerstatementCompleted(AbstractStatement, true).statementCompleted in interface FBObjectListener.StatementListenerstmt - statement that was completed.java.sql.SQLExceptionCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.