Package com.arjuna.ats.jts.tx
Class tx
java.lang.Object
com.arjuna.ats.jts.tx.tx
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
These values are pretty arbitrary since we have no way of knowing what they should be.static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final int
static final int
tx_begin()
static final int
tx_close()
The X/Open spec.static final int
static final int
static final int
tx_open()
static final int
This needs to implement checked transactions such that only the transaction initiator (thread) can terminate it.static final int
tx_set_commit_return
(int when_return) static final int
tx_set_transaction_control
(int control) static final int
tx_set_transaction_timeout
(int timeout)
-
Field Details
-
TX_OK
public static final int TX_OKThese values are pretty arbitrary since we have no way of knowing what they should be. As long as the CPP names are used we should be ok though.- See Also:
-
TX_COMMIT_COMPLETED
public static final int TX_COMMIT_COMPLETED- See Also:
-
TX_COMMIT_DESICION_LOGGED
public static final int TX_COMMIT_DESICION_LOGGED- See Also:
-
TX_CHAINED
public static final int TX_CHAINED- See Also:
-
TX_UNCHAINED
public static final int TX_UNCHAINED- See Also:
-
TX_ERROR
public static final int TX_ERROR- See Also:
-
TX_FAIL
public static final int TX_FAIL- See Also:
-
TX_PROTOCOL_ERROR
public static final int TX_PROTOCOL_ERROR- See Also:
-
TX_OUTSIDE
public static final int TX_OUTSIDE- See Also:
-
TX_NO_BEGIN
public static final int TX_NO_BEGIN- See Also:
-
TX_HAZARD
public static final int TX_HAZARD- See Also:
-
TX_HAZARD_NO_BEGIN
public static final int TX_HAZARD_NO_BEGIN- See Also:
-
TX_NOT_SUPPORTED
public static final int TX_NOT_SUPPORTED- See Also:
-
TX_EINVAL
public static final int TX_EINVAL- See Also:
-
TX_ROLLBACK
public static final int TX_ROLLBACK- See Also:
-
TX_ROLLBACK_NO_BEGIN
public static final int TX_ROLLBACK_NO_BEGIN- See Also:
-
-
Constructor Details
-
tx
public tx()
-
-
Method Details
-
tx_open
public static final int tx_open() -
tx_close
public static final int tx_close()The X/Open spec. says to raise TX_PROTOCOL_ERROR if called from within a transaction. However, the OTS spec. implies there is no mapping for tx_close. So, do nothing. -
tx_disable_nesting
public static final int tx_disable_nesting() -
tx_allow_nesting
public static final int tx_allow_nesting() -
tx_begin
public static final int tx_begin() -
tx_rollback
public static final int tx_rollback()This needs to implement checked transactions such that only the transaction initiator (thread) can terminate it. -
tx_set_commit_return
public static final int tx_set_commit_return(int when_return) -
tx_commit
public static final int tx_commit() -
tx_set_transaction_control
public static final int tx_set_transaction_control(int control) -
tx_set_transaction_timeout
public static final int tx_set_transaction_timeout(int timeout)
-