|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tyrex.resource.ReuseOptions
This class defines the reuse options.
Field Summary | |
static int |
REUSE_NO_TRANSACTION_OFF
The reuse option that states if the resources are enlisted in a transaction then resources are reused after the transaction commits or rolls back. |
static java.lang.String |
REUSE_NO_TRANSACTION_OFF_NAME
The name of the REUSE_NO_TRANSACTION_OFF option. |
static int |
REUSE_OFF
The reuse option that states the resources are not to be reused. |
static java.lang.String |
REUSE_OFF_NAME
The name of the REUSE_OFF option. |
static int |
REUSE_ON
The reuse option that states the resources are to be reused after they are currently used. |
static java.lang.String |
REUSE_ON_NAME
The name of the REUSE_ON option. |
static int |
REUSE_TRANSACTION
The reuse option that states the if resources are enlisted in a transaction then resources can be reused only after the transaction commits or rolls back. |
static java.lang.String |
REUSE_TRANSACTION_NAME
The name of the REUSE_TRANSACTION option. |
static int |
REUSE_TRANSACTION_OFF
The reuse option that states if the resources are enlisted in a transaction then resources are destroyed after the transaction commits or rolls back. |
static java.lang.String |
REUSE_TRANSACTION_OFF_NAME
The name of the REUSE_TRANSACTION_OFF option. |
Method Summary | |
static int |
fromString(java.lang.String string)
Convert the specified string to the reuse option. |
static boolean |
isValid(int option)
Return true if the reuse option is valid. |
static java.lang.String |
toString(int option)
Convert the specified option to the reuse option name. |
static void |
validate(int option)
Validate that the option is recognized |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int REUSE_ON
public static final int REUSE_OFF
public static final int REUSE_TRANSACTION
public static final int REUSE_TRANSACTION_OFF
public static final int REUSE_NO_TRANSACTION_OFF
public static final java.lang.String REUSE_ON_NAME
REUSE_ON
option. The value is "on".public static final java.lang.String REUSE_OFF_NAME
REUSE_OFF
option. The value is "off".public static final java.lang.String REUSE_TRANSACTION_NAME
REUSE_TRANSACTION
option. The value
is "transaction".public static final java.lang.String REUSE_TRANSACTION_OFF_NAME
REUSE_TRANSACTION_OFF
option. The
value is "transaction_off".public static final java.lang.String REUSE_NO_TRANSACTION_OFF_NAME
REUSE_NO_TRANSACTION_OFF
option. The
value is "no_transaction_off".Method Detail |
public static int fromString(java.lang.String string)
string.
- One of REUSE_ON_NAME
,
REUSE_OFF_NAME
, REUSE_TRANSACTION_NAME
or REUSE_TRANSACTION_OFF_NAME
.REUSE_ON
, REUSE_OFF
,
REUSE_TRANSACTION
or
REUSE_TRANSACTION_OFF
.java.lang.IllegalArgumentException
- if the string is not
recognised or if it's null.public static java.lang.String toString(int option)
option.
- One of REUSE_ON
,
REUSE_OFF
, REUSE_TRANSACTION
or REUSE_TRANSACTION_OFF
.REUSE_ON_NAME
, REUSE_OFF_NAME
,
REUSE_TRANSACTION_NAME
or
REUSE_TRANSACTION_OFF_NAME
.java.lang.IllegalArgumentException
- if the option is not
recognised.public static void validate(int option)
option.
- One of REUSE_ON
,
REUSE_OFF
, REUSE_TRANSACTION
or REUSE_TRANSACTION_OFF
.java.lang.IllegalArgumentException
- if the option is not
recognised.public static boolean isValid(int option)
option
- the option
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |