Package org.firebirdsql.jdbc
Class InternalTransactionCoordinator
- java.lang.Object
- 
- org.firebirdsql.jdbc.InternalTransactionCoordinator
 
- 
- All Implemented Interfaces:
- FBObjectListener.BlobListener,- FBObjectListener.StatementListener
 
 public final class InternalTransactionCoordinator extends java.lang.Object implements FBObjectListener.StatementListener, FBObjectListener.BlobListener Transaction coordinator for theFBConnectionclass.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classInternalTransactionCoordinator.AbstractTransactionCoordinator
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()voidensureTransaction()voidexecutionCompleted(FirebirdBlob blob)Notify listener that execution of some BLOB operation had been completed.voidexecutionStarted(FBStatement stmt)Notify listener that statement execution is being started.voidexecutionStarted(FirebirdBlob blob)Notify listener that execution of some BLOB operation had been started.booleangetAutoCommit()FBConnectiongetConnection()Get the connection object to which this listener belongs to.voidrollback()voidstatementClosed(FBStatement stmt)Notify the listener that statement was closed.voidstatementCompleted(FBStatement stmt)Notify the listener that statement is completed.voidstatementCompleted(FBStatement stmt, boolean success)Notify the listener that statement is completed and tell whether execution was successful or not.
 
- 
- 
- 
Method Detail- 
getAutoCommitpublic boolean getAutoCommit() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
executionStartedpublic void executionStarted(FBStatement stmt) throws java.sql.SQLException Description copied from interface:FBObjectListener.StatementListenerNotify listener that statement execution is being started.- Specified by:
- executionStartedin interface- FBObjectListener.StatementListener
- Parameters:
- stmt- statement that is being executed.
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
getConnectionpublic FBConnection getConnection() throws java.sql.SQLException Description copied from interface:FBObjectListener.StatementListenerGet the connection object to which this listener belongs to.- Specified by:
- getConnectionin interface- FBObjectListener.StatementListener
- Returns:
- instance of FBConnection
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
statementClosedpublic void statementClosed(FBStatement stmt) throws java.sql.SQLException Description copied from interface:FBObjectListener.StatementListenerNotify the listener that statement was closed.- Specified by:
- statementClosedin interface- FBObjectListener.StatementListener
- Parameters:
- stmt- statement that was closed.
- Throws:
- java.sql.SQLException
 
 - 
statementCompletedpublic 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
 
 - 
statementCompletedpublic void statementCompleted(FBStatement stmt, boolean success) throws java.sql.SQLException Description copied from interface:FBObjectListener.StatementListenerNotify the listener that statement is completed and tell whether execution was successful or not.- Specified by:
- statementCompletedin interface- FBObjectListener.StatementListener
- Parameters:
- stmt- statement that was completed.
- success-- trueif completion was successful.
- Throws:
- java.sql.SQLException- if an error occurred.
 
 - 
executionCompletedpublic void executionCompleted(FirebirdBlob blob) throws java.sql.SQLException Description copied from interface:FBObjectListener.BlobListenerNotify listener that execution of some BLOB operation had been completed.- Specified by:
- executionCompletedin interface- FBObjectListener.BlobListener
- Parameters:
- blob- instance of- FirebirdBlobthat caused this event.
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
executionStartedpublic void executionStarted(FirebirdBlob blob) throws java.sql.SQLException Description copied from interface:FBObjectListener.BlobListenerNotify listener that execution of some BLOB operation had been started.- Specified by:
- executionStartedin interface- FBObjectListener.BlobListener
- Parameters:
- blob- instance of- FirebirdBlobthat caused this event.
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
ensureTransactionpublic void ensureTransaction() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
commitpublic void commit() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rollbackpublic void rollback() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 
- 
 
-