org.ow2.util.ee.metadata.ejbjar.api
Enum TransactionAttributeLevel

java.lang.Object
  extended by java.lang.Enum<TransactionAttributeLevel>
      extended by org.ow2.util.ee.metadata.ejbjar.api.TransactionAttributeLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TransactionAttributeLevel>

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

Different type of level available to set the transaction attribute.

Author:
Florent BENOIT

Enum Constant Summary
ANNOTATION
          First level is annotation / default value.
XML_METHOD_NAME
          Style 2 with method name.
XML_METHOD_PARAMS
          And then style 3 with method name with parameters.
XML_WILDCARD
          Then style 1 with wildcard.
 
Method Summary
static TransactionAttributeLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TransactionAttributeLevel[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATION

public static final TransactionAttributeLevel ANNOTATION
First level is annotation / default value.


XML_WILDCARD

public static final TransactionAttributeLevel XML_WILDCARD
Then style 1 with wildcard.


XML_METHOD_NAME

public static final TransactionAttributeLevel XML_METHOD_NAME
Style 2 with method name.


XML_METHOD_PARAMS

public static final TransactionAttributeLevel XML_METHOD_PARAMS
And then style 3 with method name with parameters.

Method Detail

values

public static final TransactionAttributeLevel[] 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(TransactionAttributeLevel c : TransactionAttributeLevel.values())
        System.out.println(c);

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

valueOf

public static TransactionAttributeLevel 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


Copyright © 2007-2008 OW2 Consortium. All Rights Reserved.