Class TwoPhaseOutcome
java.lang.Object
com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome
The outcomes which can be generated when a transaction
attempts to prepare/commit/rollback.
- Since:
- JTS 1.0.
- Version:
- $Id: TwoPhaseOutcome.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
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
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static void
print
(PrintWriter strm, int res) void
setOutcome
(int outcome) static String
stringForm
(int res)
-
Field Details
-
PREPARE_OK
public static final int PREPARE_OK- See Also:
-
PREPARE_NOTOK
public static final int PREPARE_NOTOK- See Also:
-
PREPARE_READONLY
public static final int PREPARE_READONLY- See Also:
-
HEURISTIC_ROLLBACK
public static final int HEURISTIC_ROLLBACK- See Also:
-
HEURISTIC_COMMIT
public static final int HEURISTIC_COMMIT- See Also:
-
HEURISTIC_MIXED
public static final int HEURISTIC_MIXED- See Also:
-
HEURISTIC_HAZARD
public static final int HEURISTIC_HAZARD- See Also:
-
FINISH_OK
public static final int FINISH_OK- See Also:
-
FINISH_ERROR
public static final int FINISH_ERROR- See Also:
-
NOT_PREPARED
public static final int NOT_PREPARED- See Also:
-
ONE_PHASE_ERROR
public static final int ONE_PHASE_ERROR- See Also:
-
INVALID_TRANSACTION
public static final int INVALID_TRANSACTION- See Also:
-
PREPARE_ONE_PHASE_COMMITTED
public static final int PREPARE_ONE_PHASE_COMMITTED- See Also:
-
-
Constructor Details
-
TwoPhaseOutcome
public TwoPhaseOutcome(int outcome)
-
-
Method Details
-
setOutcome
public void setOutcome(int outcome) -
getOutcome
public int getOutcome() -
stringForm
- Returns:
String
representation of the status.
-
print
-