org.apache.openejb.jee
Enum ConcurrencyType
java.lang.Object
java.lang.Enum<ConcurrencyType>
org.apache.openejb.jee.ConcurrencyType
- All Implemented Interfaces:
- Serializable, Comparable<ConcurrencyType>
public enum ConcurrencyType
- extends Enum<ConcurrencyType>
The concurrency-typeType specifies an enterprise bean's
concurrency management type.
The concurrency-type must be one of the two following:
Bean
Container
Method Summary |
static ConcurrencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ConcurrencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
BEAN
public static final ConcurrencyType BEAN
CONTAINER
public static final ConcurrencyType CONTAINER
values
public static ConcurrencyType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ConcurrencyType c : ConcurrencyType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConcurrencyType valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.