Module org.firebirdsql.jaybird
Package org.firebirdsql.jdbc
Class InternalTransactionCoordinator.AbstractTransactionCoordinator
java.lang.Object
org.firebirdsql.jdbc.InternalTransactionCoordinator.AbstractTransactionCoordinator
- All Implemented Interfaces:
FBObjectListener.BlobListener
,FBObjectListener.StatementListener
- Enclosing class:
- InternalTransactionCoordinator
public abstract static class InternalTransactionCoordinator.AbstractTransactionCoordinator
extends Object
implements FBObjectListener.StatementListener, FBObjectListener.BlobListener
Transaction coordinator base implementation.
This class is internal API of Jaybird. Future versions may radically change, move, or make inaccessible this type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FBConnection
protected final FBLocalTransaction
protected final Collection<AbstractStatement>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractTransactionCoordinator
(FBConnection connection, FBLocalTransaction localTransaction) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
commit()
protected void
completeStatements
(CompletionReason reason) void
final FBConnection
Get the connection which owns this coordinator.protected final Collection<AbstractStatement>
abstract void
rollback()
protected final void
setStatements
(Collection<AbstractStatement> statements) final void
Notify the listener that statement is completed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.firebirdsql.jdbc.FBObjectListener.BlobListener
executionCompleted, executionStarted
Methods inherited from interface org.firebirdsql.jdbc.FBObjectListener.StatementListener
executionStarted, statementClosed, statementCompleted
-
Field Details
-
localTransaction
-
connection
-
statements
-
-
Constructor Details
-
AbstractTransactionCoordinator
protected AbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction localTransaction)
-
-
Method Details
-
getConnection
Get the connection which owns this coordinator.- Specified by:
getConnection
in interfaceFBObjectListener.StatementListener
- Returns:
- instance of
FBConnection
- Throws:
SQLException
- if something went wrong
-
getStatements
-
setStatements
-
completeStatements
- Throws:
SQLException
-
ensureTransaction
- Throws:
SQLException
-
commit
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-
statementCompleted
Description copied from interface:FBObjectListener.StatementListener
Notify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true)
.- Specified by:
statementCompleted
in interfaceFBObjectListener.StatementListener
- Parameters:
stmt
- statement that was completed.- Throws:
SQLException
-