boolean inTransaction()
None.
Returns true if a transaction is currently active in the current connection; returns false otherwise.
CwDBConnectionException - If a database error occurs.
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.