public final class InternalTransactionCoordinator extends java.lang.Object implements FBObjectListener.StatementListener, FBObjectListener.BlobListener, Synchronizable
FBConnection class.| Modifier and Type | Class and Description |
|---|---|
static class |
InternalTransactionCoordinator.AbstractTransactionCoordinator |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
void |
ensureTransaction() |
void |
executionCompleted(FirebirdBlob blob)
Notify listener that execution of some BLOB operation had been completed.
|
void |
executionStarted(FBStatement stmt)
Notify listener that statement execution is being started.
|
void |
executionStarted(FirebirdBlob blob)
Notify listener that execution of some BLOB operation had been started.
|
boolean |
getAutoCommit() |
FBConnection |
getConnection()
Get the connection object to which this listener belongs to.
|
java.lang.Object |
getSynchronizationObject()
Get synchronization object.
|
void |
rollback() |
void |
statementClosed(FBStatement stmt)
Notify the listener that statement was closed.
|
void |
statementCompleted(FBStatement stmt)
Notify the listener that statement is completed.
|
void |
statementCompleted(FBStatement stmt,
boolean success)
Notify the listener that statement is completed and tell whether execution was successfull or not.
|
public final java.lang.Object getSynchronizationObject()
SynchronizablegetSynchronizationObject in interface Synchronizablenull.public boolean getAutoCommit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void executionStarted(FBStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListenerexecutionStarted in interface FBObjectListener.StatementListenerstmt - statement that is being executed.java.sql.SQLException - if something went wrong.public final FBConnection getConnection() throws java.sql.SQLException
FBObjectListener.StatementListenergetConnection in interface FBObjectListener.StatementListenerFBConnectionjava.sql.SQLException - if something went wrong.public void statementClosed(FBStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListenerstatementClosed in interface FBObjectListener.StatementListenerstmt - statement that was closed.java.sql.SQLExceptionpublic void statementCompleted(FBStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListenerstatementCompleted(AbstractStatement, true).statementCompleted in interface FBObjectListener.StatementListenerstmt - statement that was completed.java.sql.SQLExceptionpublic void statementCompleted(FBStatement stmt, boolean success) throws java.sql.SQLException
FBObjectListener.StatementListenerstatementCompleted in interface FBObjectListener.StatementListenerstmt - statement that was completed.success - true if completion was successfull.java.sql.SQLException - if an error occured.public void executionCompleted(FirebirdBlob blob) throws java.sql.SQLException
FBObjectListener.BlobListenerexecutionCompleted in interface FBObjectListener.BlobListenerblob - instance of FirebirdBlob that caused this event.java.sql.SQLException - if something went wrong.public void executionStarted(FirebirdBlob blob) throws java.sql.SQLException
FBObjectListener.BlobListenerexecutionStarted in interface FBObjectListener.BlobListenerblob - instance of FirebirdBlob that caused this event.java.sql.SQLException - if something went wrong.public void ensureTransaction()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void commit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.