public enum JtxPropagationBehavior extends java.lang.Enum<JtxPropagationBehavior>
Enum Constant and Description |
---|
PROPAGATION_MANDATORY
Support a current transaction, throw an exception if none exists.
|
PROPAGATION_NEVER
Execute non-transactionally, throw an exception if a transaction exists.
|
PROPAGATION_NOT_SUPPORTED
Execute non-transactionally, suspend the current transaction if one exists.
|
PROPAGATION_REQUIRED
Support a current transaction, create a new one if none exists.
|
PROPAGATION_REQUIRES_NEW
Create a new transaction, suspend the current transaction if one exists.
|
PROPAGATION_SUPPORTS
Support a current transaction, execute non-transactionally if none exists.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
int |
value() |
static JtxPropagationBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JtxPropagationBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JtxPropagationBehavior PROPAGATION_REQUIRED
None -> T2 (same session, new tx)
T1 -> T1 (same session, join tx)
public static final JtxPropagationBehavior PROPAGATION_SUPPORTS
None -> None (same session)
T1 -> T1 (same session, join tx)
public static final JtxPropagationBehavior PROPAGATION_MANDATORY
None -> Error
T1 -> T1 (same session, join tx)
public static final JtxPropagationBehavior PROPAGATION_REQUIRES_NEW
None -> T2 (same session, new tx)
T1 -> T2 (new session, new tx)
public static final JtxPropagationBehavior PROPAGATION_NOT_SUPPORTED
None -> None (same session)
T1 -> None (new session, no tx)
public static final JtxPropagationBehavior PROPAGATION_NEVER
None -> None (same session)
T1 -> Error
public static JtxPropagationBehavior[] values()
for (JtxPropagationBehavior c : JtxPropagationBehavior.values()) System.out.println(c);
public static JtxPropagationBehavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public java.lang.String toString()
toString
in class java.lang.Enum<JtxPropagationBehavior>
Copyright © 2003-present Jodd Team