org.firebirdsql.jdbc

Class InternalTransactionCoordinator

Implemented Interfaces:
FBObjectListener.BlobListener, FBObjectListener.StatementListener, Synchronizable

public class InternalTransactionCoordinator
extends java.lang.Object
implements FBObjectListener.StatementListener, FBObjectListener.BlobListener, Synchronizable

Transaction coordinator for the org.firebirdsql.jdbc.FBConnection class.

Nested Class Summary

static class
InternalTransactionCoordinator.AbstractTransactionCoordinator
static class
InternalTransactionCoordinator.AutoCommitCoordinator
static class
InternalTransactionCoordinator.LocalTransactionCoordinator
static class
InternalTransactionCoordinator.ManagedTransactionCoordinator
static class
InternalTransactionCoordinator.MetaDataTransactionCoordinator

Constructor Summary

InternalTransactionCoordinator()
InternalTransactionCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)

Method Summary

void
commit()
void
ensureTransaction()
void
executionCompleted(FirebirdBlob blob)
void
executionStarted(AbstractStatement stmt)
void
executionStarted(FirebirdBlob blob)
AbstractConnection
getConnection()
Object
getSynchronizationObject()
void
rollback()
void
setCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)
void
statementClosed(AbstractStatement stmt)
void
statementCompleted(AbstractStatement stmt)
void
statementCompleted(AbstractStatement stmt, boolean success)

Constructor Details

InternalTransactionCoordinator

public InternalTransactionCoordinator()

InternalTransactionCoordinator

public InternalTransactionCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)

Method Details

commit

public void commit()
            throws SQLException

ensureTransaction

public void ensureTransaction()
            throws SQLException

executionCompleted

public void executionCompleted(FirebirdBlob blob)
            throws SQLException
Specified by:
executionCompleted in interface FBObjectListener.BlobListener

executionStarted

public void executionStarted(AbstractStatement stmt)
            throws SQLException
Specified by:
executionStarted in interface FBObjectListener.StatementListener

executionStarted

public void executionStarted(FirebirdBlob blob)
            throws SQLException
Specified by:
executionStarted in interface FBObjectListener.BlobListener

getConnection

public AbstractConnection getConnection()
            throws SQLException
Specified by:
getConnection in interface FBObjectListener.StatementListener

getSynchronizationObject

public Object getSynchronizationObject()
            throws SQLException
Specified by:
getSynchronizationObject in interface Synchronizable

rollback

public void rollback()
            throws SQLException

setCoordinator

public void setCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)
            throws SQLException

statementClosed

public void statementClosed(AbstractStatement stmt)
            throws SQLException
Specified by:
statementClosed in interface FBObjectListener.StatementListener

statementCompleted

public void statementCompleted(AbstractStatement stmt)
            throws SQLException
Specified by:
statementCompleted in interface FBObjectListener.StatementListener

statementCompleted

public void statementCompleted(AbstractStatement stmt,
                               boolean success)
            throws SQLException
Specified by:
statementCompleted in interface FBObjectListener.StatementListener

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