|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.jdbc.InternalTransactionCoordinator
Transaction coordinator for the 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)
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. |
AbstractConnection |
getConnection()
Get the connection object to which this listener belongs to. |
java.lang.Object |
getSynchronizationObject()
Get synchronization object. |
void |
rollback()
|
void |
setCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InternalTransactionCoordinator()
public InternalTransactionCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator)
Method Detail |
public java.lang.Object getSynchronizationObject() throws java.sql.SQLException
Synchronizable
getSynchronizationObject
in interface Synchronizable
null
.
java.sql.SQLException
- if something went wrong.public void executionStarted(AbstractStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListener
executionStarted
in interface FBObjectListener.StatementListener
stmt
- statement that is being executed.
java.sql.SQLException
- if something went wrong.public AbstractConnection getConnection() throws java.sql.SQLException
FBObjectListener.StatementListener
getConnection
in interface FBObjectListener.StatementListener
Connection
java.sql.SQLException
- if something went wrong.public void statementClosed(AbstractStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListener
statementClosed
in interface FBObjectListener.StatementListener
stmt
- statement that was closed.
java.sql.SQLException
public void statementCompleted(AbstractStatement stmt) throws java.sql.SQLException
FBObjectListener.StatementListener
statementCompleted(AbstractStatement, true)
.
statementCompleted
in interface FBObjectListener.StatementListener
stmt
- statement that was completed.
java.sql.SQLException
public void statementCompleted(AbstractStatement stmt, boolean success) throws java.sql.SQLException
FBObjectListener.StatementListener
statementCompleted
in interface FBObjectListener.StatementListener
stmt
- 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.BlobListener
executionCompleted
in interface FBObjectListener.BlobListener
blob
- instance of FirebirdBlob
that caused this event.
java.sql.SQLException
- if something went wrong.public void executionStarted(FirebirdBlob blob) throws java.sql.SQLException
FBObjectListener.BlobListener
executionStarted
in interface FBObjectListener.BlobListener
blob
- instance of FirebirdBlob
that caused this event.
java.sql.SQLException
- if something went wrong.public void ensureTransaction() throws java.sql.SQLException
java.sql.SQLException
public void commit() throws java.sql.SQLException
java.sql.SQLException
public void rollback() throws java.sql.SQLException
java.sql.SQLException
public void setCoordinator(InternalTransactionCoordinator.AbstractTransactionCoordinator coordinator) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |