beautypg.com

Clear, Begintransaction, Committransaction – HP NonStop G-Series User Manual

Page 225: Rollbacktransaction

background image

clear

The clear() method resets all session attributes.

void clear()

Usage Resets all session attributes.

Throws SessionException

beginTransaction

The beginTransaction() method starts the transaction.

void beginTransaction(int timeout)

timeout

Transaction timeout

Usage Starts a transaction. If this method is called twice without commitTransaction or
abortTransaction, a TransactionException is raised.

Throws TransactionException

commitTransaction

The commitTransaction() method commits the transaction.

void commitTransaction()

Usage Commits the transaction.

Throws TransactionException

rollbackTransaction

The rollbackTransaction() method aborts the transaction.

void rollbackTransaction()

Usage Aborts the transaction.

Throws TransactionException