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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FBConnectionprotected final FirebirdLocalTransactionprotected final Collection<FBStatement> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTransactionCoordinator(FBConnection connection, FirebirdLocalTransaction localTransaction) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcommit()protected voidcompleteStatements(CompletionReason reason) voidfinal FBConnectionGet the connection which owns this coordinator.protected final Collection<FBStatement>abstract voidrollback()protected final voidsetStatements(Collection<FBStatement> statements) 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, statementCompleted
-
Field Details
-
localTransaction
-
connection
-
statements
-
-
Constructor Details
-
AbstractTransactionCoordinator
protected AbstractTransactionCoordinator(FBConnection connection, FirebirdLocalTransaction 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
-