jodd.jtx
Enum JtxPropagationBehavior

java.lang.Object
  extended by java.lang.Enum<JtxPropagationBehavior>
      extended by jodd.jtx.JtxPropagationBehavior
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JtxPropagationBehavior>

public enum JtxPropagationBehavior
extends java.lang.Enum<JtxPropagationBehavior>

Transaction propagation behavior values.


Enum Constant Summary
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.
 
Method Summary
 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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PROPAGATION_REQUIRED

public static final JtxPropagationBehavior PROPAGATION_REQUIRED
Support a current transaction, create a new one if none exists.


PROPAGATION_SUPPORTS

public static final JtxPropagationBehavior PROPAGATION_SUPPORTS
Support a current transaction, execute non-transactionally if none exists.


PROPAGATION_MANDATORY

public static final JtxPropagationBehavior PROPAGATION_MANDATORY
Support a current transaction, throw an exception if none exists.


PROPAGATION_REQUIRES_NEW

public static final JtxPropagationBehavior PROPAGATION_REQUIRES_NEW
Create a new transaction, suspend the current transaction if one exists.


PROPAGATION_NOT_SUPPORTED

public static final JtxPropagationBehavior PROPAGATION_NOT_SUPPORTED
Execute non-transactionally, suspend the current transaction if one exists.


PROPAGATION_NEVER

public static final JtxPropagationBehavior PROPAGATION_NEVER
Execute non-transactionally, throw an exception if a transaction exists.

Method Detail

values

public static final JtxPropagationBehavior[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JtxPropagationBehavior c : JtxPropagationBehavior.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JtxPropagationBehavior valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

value

public int value()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<JtxPropagationBehavior>


Copyright © 2003-2012 Jodd Team