org.firebirdsql.jdbc
Class InternalTransactionCoordinator.LocalTransactionCoordinator
java.lang.Object
|
+--org.firebirdsql.jdbc.InternalTransactionCoordinator.AbstractTransactionCoordinator
|
+--org.firebirdsql.jdbc.InternalTransactionCoordinator.LocalTransactionCoordinator
- All Implemented Interfaces:
- FBObjectListener.BlobListener, FBObjectListener.StatementListener
- Direct Known Subclasses:
- InternalTransactionCoordinator.ManagedTransactionCoordinator
- Enclosing class:
- InternalTransactionCoordinator
- public static class InternalTransactionCoordinator.LocalTransactionCoordinator
- extends InternalTransactionCoordinator.AbstractTransactionCoordinator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalTransactionCoordinator.LocalTransactionCoordinator
public InternalTransactionCoordinator.LocalTransactionCoordinator(AbstractConnection connection,
FirebirdLocalTransaction localTransaction)
- Parameters:
connection
- localTransaction
-
ensureTransaction
public void ensureTransaction()
throws java.sql.SQLException
- Overrides:
ensureTransaction
in class InternalTransactionCoordinator.AbstractTransactionCoordinator
commit
public void commit()
throws java.sql.SQLException
- Overrides:
commit
in class InternalTransactionCoordinator.AbstractTransactionCoordinator
rollback
public void rollback()
throws java.sql.SQLException
- Overrides:
rollback
in class InternalTransactionCoordinator.AbstractTransactionCoordinator
executionStarted
public void executionStarted(AbstractStatement stmt)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.StatementListener
- Notify listener that statement execution is being started.
- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.StatementListener
- Parameters:
stmt
- statement that is being executed.- Throws:
java.sql.SQLException
- if something went wrong.
statementClosed
public void statementClosed(AbstractStatement stmt)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.StatementListener
- Notify the listener that statement was closed.
- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.StatementListener
- Parameters:
stmt
- statement that was closed.
statementCompleted
public void statementCompleted(AbstractStatement stmt)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.StatementListener
- Notify the listener that statement is completed. This is shortcut
method for
statementCompleted(AbstractStatement, true)
.- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.StatementListener
- Parameters:
stmt
- statement that was completed.
statementCompleted
public void statementCompleted(AbstractStatement stmt,
boolean success)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.StatementListener
- Notify the listener that statement is completed and tell whether
execution was successfull or not.
- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.StatementListener
- Parameters:
stmt
- statement that was completed.success
- true
if completion was successfull.- Throws:
java.sql.SQLException
- if an error occured.
executionCompleted
public void executionCompleted(FirebirdBlob blob)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.BlobListener
- Notify listener that execution of some BLOB operation had been completed.
- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.BlobListener
- Parameters:
blob
- instance of FirebirdBlob
that caused this event.- Throws:
java.sql.SQLException
- if something went wrong.
executionStarted
public void executionStarted(FirebirdBlob blob)
throws java.sql.SQLException
- Description copied from interface:
FBObjectListener.BlobListener
- Notify listener that execution of some BLOB operation had been started.
- Following copied from interface:
org.firebirdsql.jdbc.FBObjectListener.BlobListener
- Parameters:
blob
- instance of FirebirdBlob
that caused this event.- Throws:
java.sql.SQLException
- if something went wrong.
Copyright © 2001 David Jencks and other authors. All rights reserved.