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 FBLocalTransactionlocalTransactionprotected java.util.Collection<FBStatement>statements
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction 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)voidstatementCompleted(FBStatement stmt)Notify the listener that statement is completed.- 
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
 
- 
 
- 
- 
- 
Field Detail- 
localTransactionprotected final FBLocalTransaction localTransaction 
 - 
connectionprotected final FBConnection connection 
 - 
statementsprotected final java.util.Collection<FBStatement> statements 
 
- 
 - 
Constructor Detail- 
AbstractTransactionCoordinatorprotected AbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction 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
 
 - 
statementCompletedpublic final void statementCompleted(FBStatement stmt) throws java.sql.SQLException Description copied from interface:FBObjectListener.StatementListenerNotify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true).- Specified by:
- statementCompletedin interface- FBObjectListener.StatementListener
- Parameters:
- stmt- statement that was completed.
- Throws:
- java.sql.SQLException
 
 
- 
 
-