org.firebirdsql.jdbc

Class InternalTransactionCoordinator.LocalTransactionCoordinator

Enclosing Class:
InternalTransactionCoordinator
Implemented Interfaces:
FBObjectListener.BlobListener, FBObjectListener.StatementListener
Known Direct Subclasses:
InternalTransactionCoordinator.ManagedTransactionCoordinator

public static class InternalTransactionCoordinator.LocalTransactionCoordinator
extends InternalTransactionCoordinator.AbstractTransactionCoordinator

Field Summary

Fields inherited from class org.firebirdsql.jdbc.InternalTransactionCoordinator.AbstractTransactionCoordinator

connection, localTransaction, statements

Constructor Summary

LocalTransactionCoordinator(AbstractConnection connection, FirebirdLocalTransaction localTransaction)

Method Summary

void
commit()
void
ensureTransaction()
void
executionCompleted(FirebirdBlob blob)
Notify listener that execution of some BLOB operation had been completed.
void
executionStarted(AbstractStatement stmt)
Notify listener that statement execution is being started.
void
executionStarted(FirebirdBlob blob)
Notify listener that execution of some BLOB operation had been started.
void
rollback()
void
statementClosed(AbstractStatement stmt)
Notify the listener that statement was closed.
void
statementCompleted(AbstractStatement stmt)
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 successfull or not.

Methods inherited from class org.firebirdsql.jdbc.InternalTransactionCoordinator.AbstractTransactionCoordinator

commit, completeStatements, ensureTransaction, getConnection, getStatements, rollback, setStatements

Constructor Details

LocalTransactionCoordinator

public LocalTransactionCoordinator(AbstractConnection connection,
                                   FirebirdLocalTransaction localTransaction)
Parameters:
connection -
localTransaction -

Method Details

commit

public void commit()
            throws SQLException
Overrides:
commit in interface InternalTransactionCoordinator.AbstractTransactionCoordinator

ensureTransaction

public void ensureTransaction()
            throws SQLException
Overrides:
ensureTransaction in interface InternalTransactionCoordinator.AbstractTransactionCoordinator

executionCompleted

public void executionCompleted(FirebirdBlob blob)
            throws SQLException
Notify listener that execution of some BLOB operation had been completed.
Specified by:
executionCompleted in interface FBObjectListener.BlobListener
Parameters:
blob - instance of FirebirdBlob that caused this event.

executionStarted

public void executionStarted(AbstractStatement stmt)
            throws SQLException
Notify listener that statement execution is being started.
Specified by:
executionStarted in interface FBObjectListener.StatementListener
Parameters:
stmt - statement that is being executed.

executionStarted

public void executionStarted(FirebirdBlob blob)
            throws SQLException
Notify listener that execution of some BLOB operation had been started.
Specified by:
executionStarted in interface FBObjectListener.BlobListener
Parameters:
blob - instance of FirebirdBlob that caused this event.

rollback

public void rollback()
            throws SQLException
Overrides:
rollback in interface InternalTransactionCoordinator.AbstractTransactionCoordinator

statementClosed

public void statementClosed(AbstractStatement stmt)
            throws SQLException
Notify the listener that statement was closed.
Specified by:
statementClosed in interface FBObjectListener.StatementListener
Parameters:
stmt - statement that was closed.

statementCompleted

public void statementCompleted(AbstractStatement stmt)
            throws SQLException
Notify the listener that statement is completed. This is shortcut method for statementCompleted(AbstractStatement, true).
Specified by:
statementCompleted in interface FBObjectListener.StatementListener
Parameters:
stmt - statement that was completed.

statementCompleted

public void statementCompleted(AbstractStatement stmt,
                               boolean success)
            throws SQLException
Notify the listener that statement is completed and tell whether execution was successfull or not.
Specified by:
statementCompleted in interface FBObjectListener.StatementListener
Parameters:
stmt - statement that was completed.
success - true if completion was successfull.

Copyright B) 2001 David Jencks and other authors. All rights reserved.