MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.Transaction Interface Reference
Inheritance diagram for com.mysql.clusterj.Transaction:

Public Member Functions

void begin ()
void commit ()
void rollback ()
boolean isActive ()
void setRollbackOnly ()
boolean getRollbackOnly ()

Detailed Description

Transaction represents a user transaction active in the cluster.

Definition at line 24 of file Transaction.java.

Member Function Documentation

void com.mysql.clusterj.Transaction.begin ( )

Begin a transaction.

Implemented in com.mysql.clusterj.core.TransactionImpl.

Here is the caller graph for this function:

void com.mysql.clusterj.Transaction.commit ( )

Commit a transaction.

Implemented in com.mysql.clusterj.core.TransactionImpl.

Here is the caller graph for this function:

boolean com.mysql.clusterj.Transaction.getRollbackOnly ( )

Has this transaction been marked for rollback only?

Returns
true if the transaction has been marked for rollback only

Implemented in com.mysql.clusterj.core.TransactionImpl.

boolean com.mysql.clusterj.Transaction.isActive ( )

Is there a transaction currently active?

Returns
true if a transaction is active

Implemented in com.mysql.clusterj.core.TransactionImpl.

Here is the caller graph for this function:

void com.mysql.clusterj.Transaction.rollback ( )

Roll back a transaction.

Implemented in com.mysql.clusterj.core.TransactionImpl.

Here is the caller graph for this function:

void com.mysql.clusterj.Transaction.setRollbackOnly ( )

Mark this transaction as rollback only. After this method is called, commit() will roll back the transaction and throw an exception; rollback() will roll back the transaction and not throw an exception.

Implemented in com.mysql.clusterj.core.TransactionImpl.


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