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 FBConnectionprotected final FBLocalTransactionprotected final Collection<AbstractStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction localTransaction) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcommit()protected voidcompleteStatements(CompletionReason reason) voidfinal FBConnectionGet the connection which owns this coordinator.protected final Collection<AbstractStatement>abstract voidrollback()protected final voidsetStatements(Collection<AbstractStatement> statements) final voidNotify the listener that statement is completed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.firebirdsql.jdbc.FBObjectListener.BlobListener
executionCompleted, executionStartedMethods 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:
getConnectionin 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.StatementListenerNotify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true).- Specified by:
statementCompletedin interfaceFBObjectListener.StatementListener- Parameters:
stmt- statement that was completed.- Throws:
SQLException
-