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 class
Transaction coordinator base implementation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
commit()
void
void
Notify listener that execution of some BLOB operation had been completed.void
Notify listener that statement execution is being started.void
executionStarted
(FirebirdBlob blob) Notify listener that execution of some BLOB operation had been started.boolean
Get the connection object to which this listener belongs to.void
rollback()
void
Notify the listener that statement was closed.void
Notify the listener that statement is completed.void
statementCompleted
(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.StatementListener
Notify listener that statement execution is being started.- Specified by:
executionStarted
in interfaceFBObjectListener.StatementListener
- Parameters:
stmt
- statement that is being executed- Throws:
SQLException
-
getConnection
Description copied from interface:FBObjectListener.StatementListener
Get the connection object to which this listener belongs to.- Specified by:
getConnection
in interfaceFBObjectListener.StatementListener
- Returns:
- instance of
FBConnection
- Throws:
SQLException
- if something went wrong
-
statementClosed
Description copied from interface:FBObjectListener.StatementListener
Notify the listener that statement was closed.- Specified by:
statementClosed
in interfaceFBObjectListener.StatementListener
- Parameters:
stmt
- statement that was closed- Throws:
SQLException
-
statementCompleted
Description copied from interface:FBObjectListener.StatementListener
Notify the listener that statement is completed. This is shortcut method forstatementCompleted(AbstractStatement, true)
.- Specified by:
statementCompleted
in interfaceFBObjectListener.StatementListener
- Parameters:
stmt
- statement that was completed.- Throws:
SQLException
-
statementCompleted
Description copied from interface:FBObjectListener.StatementListener
Notify the listener that statement is completed and tell whether execution was successful or not.- Specified by:
statementCompleted
in interfaceFBObjectListener.StatementListener
- Parameters:
stmt
- statement that was completedsuccess
-true
if completion was successful- Throws:
SQLException
-
executionCompleted
Description copied from interface:FBObjectListener.BlobListener
Notify listener that execution of some BLOB operation had been completed.The default implementation does nothing.
- Specified by:
executionCompleted
in interfaceFBObjectListener.BlobListener
- Parameters:
blob
- instance ofFirebirdBlob
that caused this event.- Throws:
SQLException
- if something went wrong.
-
executionStarted
Description copied from interface:FBObjectListener.BlobListener
Notify listener that execution of some BLOB operation had been started.The default implementation does nothing.
- Specified by:
executionStarted
in interfaceFBObjectListener.BlobListener
- Parameters:
blob
- instance ofFirebirdBlob
that caused this event- Throws:
SQLException
- if something went wrong
-
ensureTransaction
- Throws:
SQLException
-
commit
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-