inTransaction()

Determines whether a

transaction is in progress in the current connection.

Syntax

boolean inTransaction()
 

Parameters

None.

Return values

Returns true if a transaction is currently active in the current connection; returns false otherwise.

Exceptions

CwDBConnectionException - If a database error occurs.

Notes

The inTransaction() method returns a boolean value that indicates whether the current connection has an active transaction; that is, a transaction that has been started but not ended.

Important:
Before beginning a transaction, you must create a CwDBConnection object with the getDBConnection() method from the BaseDLM class.

See also

beginTransaction(), commit(), getDBConnection(), rollBack()

Copyright IBM Corp. 1997, 2003