java.lang.Object
org.firebirdsql.jdbc.InternalTransactionCoordinator
- All Implemented Interfaces:
FBObjectListener.BlobListener,FBObjectListener.StatementListener
@InternalApi
public final class InternalTransactionCoordinator
extends Object
implements FBObjectListener.StatementListener, FBObjectListener.BlobListener
Transaction coordinator for the
FBConnection class.
This class is internal API of Jaybird. Future versions may radically change, move, or make inaccessible this type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTransaction coordinator base implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()voidvoidNotify listener that execution of some BLOB operation had been completed.voidNotify listener that statement execution is being started.voidexecutionStarted(FirebirdBlob blob) Notify listener that execution of some BLOB operation had been started.booleanGet the connection object to which this listener belongs to.voidrollback()voidNotify the listener that statement was closed.voidNotify the listener that statement is completed.voidstatementCompleted(AbstractStatement stmt, boolean success) Notify the listener that statement is completed and tell whether execution was successful or not.
-
Method Details
-
getAutoCommit
- Throws:
SQLException
-
executionStarted
Description copied from interface:FBObjectListener.StatementListenerNotify listener that statement execution is being started.- Specified by:
executionStartedin interfaceFBObjectListener.StatementListener- Parameters:
stmt- statement that is being executed- Throws:
SQLException
-
getConnection
Description copied from interface:FBObjectListener.StatementListenerGet the connection object to which this listener belongs to.- Specified by:
getConnectionin interfaceFBObjectListener.StatementListener- Returns:
- instance of
FBConnection - Throws:
SQLException- if something went wrong
-
statementClosed
Description copied from interface:FBObjectListener.StatementListenerNotify the listener that statement was closed.- Specified by:
statementClosedin interfaceFBObjectListener.StatementListener- Parameters:
stmt- statement that was closed- 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
-
statementCompleted
Description copied from interface:FBObjectListener.StatementListenerNotify the listener that statement is completed and tell whether execution was successful or not.- Specified by:
statementCompletedin interfaceFBObjectListener.StatementListener- Parameters:
stmt- statement that was completedsuccess-trueif completion was successful- Throws:
SQLException
-
executionCompleted
Description copied from interface:FBObjectListener.BlobListenerNotify listener that execution of some BLOB operation had been completed.The default implementation does nothing.
- Specified by:
executionCompletedin interfaceFBObjectListener.BlobListener- Parameters:
blob- instance ofFirebirdBlobthat caused this event.- Throws:
SQLException- if something went wrong.
-
executionStarted
Description copied from interface:FBObjectListener.BlobListenerNotify listener that execution of some BLOB operation had been started.The default implementation does nothing.
- Specified by:
executionStartedin interfaceFBObjectListener.BlobListener- Parameters:
blob- instance ofFirebirdBlobthat caused this event- Throws:
SQLException- if something went wrong
-
ensureTransaction
- Throws:
SQLException
-
commit
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-