ITransactionStateListener Class Reference

An ITransactionStateListener allows the object that it is registered with to notify any components using the DSI that a transaction state change has occurred because of a SQL statement. More...

List of all members.

Public Member Functions

virtual void NotifyBegin ()=0
 Notify the listener that a transaction has begun.
virtual void NotifyCommit (bool in_preserveMetadata=false)=0
 Notify the listener that a transaction has been committed.
virtual void NotifyRollback (bool in_preserveMetadata=false)=0
 Notify the listener that a transaction has rolled back.
virtual ~ITransactionStateListener ()
 Destructor.

Protected Member Functions

 ITransactionStateListener ()
 Constructor.

Detailed Description

An ITransactionStateListener allows the object that it is registered with to notify any components using the DSI that a transaction state change has occurred because of a SQL statement.

For instance, executing the query "COMMIT" will cause a transaction state change which must be propagated upwards through the ITransactionStateListener, as it was not done through the normal APIs.

The component using the DSI is responsible for beginning new transactions, they should not be implicitly started within the DSI.


Constructor & Destructor Documentation

virtual ~ITransactionStateListener (  )  [inline, virtual]

Destructor.

ITransactionStateListener (  )  [inline, protected]

Constructor.


Member Function Documentation

virtual void NotifyBegin (  )  [pure virtual]

Notify the listener that a transaction has begun.

This should only be called when not already in a transaction. And only when explicitly beginning a transaction from within Execute.

virtual void NotifyCommit ( bool  in_preserveMetadata = false  )  [pure virtual]

Notify the listener that a transaction has been committed.

Parameters:
in_preserveMetadata Indicates that result set or cursor metadata should be preserved when a commit was made.

This should only be called when in a transaction. And only when explicitly ending a transaction from within Execute.

virtual void NotifyRollback ( bool  in_preserveMetadata = false  )  [pure virtual]

Notify the listener that a transaction has rolled back.

Parameters:
in_preserveMetadata Indicates that result set or cursor metadata should be preserved when a rollback was made.

This should only be called when in a transaction. And only when explicitly ending a transaction from within Execute.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:16 2017 for SimbaEngine 10.1.3.1011 by simba