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 java.lang.Object implements FBObjectListener.StatementListener, FBObjectListener.BlobListener 
- 
- 
Field SummaryFields Modifier and Type Field Description protected FBConnectionconnectionprotected FirebirdLocalTransactionlocalTransactionprotected java.util.Collection<FBStatement>statements
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractTransactionCoordinator(FBConnection connection, FirebirdLocalTransaction localTransaction)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcommit()protected voidcompleteStatements(CompletionReason reason)voidensureTransaction()FBConnectiongetConnection()Get the connection which owns this coordinator.protected java.util.Collection<FBStatement>getStatements()abstract voidrollback()protected voidsetStatements(java.util.Collection<FBStatement> statements)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.firebirdsql.jdbc.FBObjectListener.BlobListenerexecutionCompleted, executionStarted
 - 
Methods inherited from interface org.firebirdsql.jdbc.FBObjectListener.StatementListenerexecutionStarted, statementClosed, statementCompleted, statementCompleted
 
- 
 
- 
- 
- 
Field Detail- 
localTransactionprotected final FirebirdLocalTransaction localTransaction 
 - 
connectionprotected final FBConnection connection 
 - 
statementsprotected final java.util.Collection<FBStatement> statements 
 
- 
 - 
Constructor Detail- 
AbstractTransactionCoordinatorprotected AbstractTransactionCoordinator(FBConnection connection, FirebirdLocalTransaction localTransaction) 
 
- 
 - 
Method Detail- 
getConnectionpublic final FBConnection getConnection() throws java.sql.SQLException Get the connection which owns this coordinator.- Specified by:
- getConnectionin interface- FBObjectListener.StatementListener
- Returns:
- instance of FBConnection
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
getStatementsprotected final java.util.Collection<FBStatement> getStatements() 
 - 
setStatementsprotected final void setStatements(java.util.Collection<FBStatement> statements) 
 - 
completeStatementsprotected void completeStatements(CompletionReason reason) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
ensureTransactionpublic void ensureTransaction() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
commitpublic abstract void commit() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rollbackpublic abstract void rollback() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 
- 
 
-