public abstract static class InternalTransactionCoordinator.AbstractTransactionCoordinator extends java.lang.Object implements FBObjectListener.StatementListener, FBObjectListener.BlobListener
Modifier and Type | Field and Description |
---|---|
protected FBConnection |
connection |
protected FBLocalTransaction |
localTransaction |
protected java.util.Collection<FBStatement> |
statements |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTransactionCoordinator(FBConnection connection,
FBLocalTransaction localTransaction) |
Modifier and Type | Method and Description |
---|---|
abstract void |
commit() |
protected void |
completeStatements(CompletionReason reason) |
void |
ensureTransaction() |
FBConnection |
getConnection()
Get the connection which owns this coordinator.
|
protected java.util.Collection<FBStatement> |
getStatements() |
abstract void |
rollback() |
protected void |
setStatements(java.util.Collection<FBStatement> statements) |
void |
statementCompleted(FBStatement stmt)
Notify the listener that statement is completed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executionStarted, statementClosed, statementCompleted
executionCompleted, executionStarted
protected final FBLocalTransaction localTransaction
protected final FBConnection connection
protected final java.util.Collection<FBStatement> statements
protected AbstractTransactionCoordinator(FBConnection connection, FBLocalTransaction localTransaction)
public final FBConnection getConnection() throws java.sql.SQLException
getConnection
in interface FBObjectListener.StatementListener
FBConnection
java.sql.SQLException
- if something went wrong.protected final java.util.Collection<FBStatement> getStatements()
protected final void setStatements(java.util.Collection<FBStatement> statements)
protected void completeStatements(CompletionReason reason) throws java.sql.SQLException
java.sql.SQLException
public void ensureTransaction() throws java.sql.SQLException
java.sql.SQLException
public abstract void commit() throws java.sql.SQLException
java.sql.SQLException
public abstract void rollback() throws java.sql.SQLException
java.sql.SQLException
public final void statementCompleted(FBStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListener
statementCompleted(AbstractStatement, true)
.statementCompleted
in interface FBObjectListener.StatementListener
stmt
- statement that was completed.java.sql.SQLException
Copyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.