MySQL NDB Cluster API 开发人员指南 / 第 4 章 MySQL NDB Cluster Connector for Java / 4.3 ClusterJ API 参考 / 4.3.1 com.mysql.clusterj /
4.3.1.24 Transaction
Transaction represents a user transaction active in the cluster.
public interface Transaction {
// Public Methodspublic abstract void begin();
public abstract void commit();
public abstract boolean getRollbackOnly();
public abstract boolean isActive();
public abstract void rollback();
public abstract void setRollbackOnly();
}
public abstract boolean getRollbackOnly();
Has this transaction been marked for rollback only?
Table 4.75 getRollbackOnly()
Parameter | Description |
---|---|
return | true if the transaction has been marked for rollback only |
public abstract boolean isActive();
Is there a transaction currently active?