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, wait
executionStarted, statementClosed, statementCompleted, statementCompleted
executionCompleted, executionStarted
protected 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.StatementListener
FBConnection
java.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.SQLException
public void ensureTransaction() throws java.sql.SQLException
java.sql.SQLException
public abstract void commit() throws java.sql.SQLException
java.sql.SQLException
public abstract void rollback() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.