Package com.sun.gjc.spi.base
Enum ConnectionHolder.ConnectionType
- java.lang.Object
-
- java.lang.Enum<ConnectionHolder.ConnectionType>
-
- com.sun.gjc.spi.base.ConnectionHolder.ConnectionType
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionHolder.ConnectionType>
- Enclosing class:
- ConnectionHolder
public static enum ConnectionHolder.ConnectionType extends Enum<ConnectionHolder.ConnectionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LAZY_ASSOCIATABLE
LAZY_ENLISTABLE
STANDARD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionHolder.ConnectionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConnectionHolder.ConnectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAZY_ENLISTABLE
public static final ConnectionHolder.ConnectionType LAZY_ENLISTABLE
-
LAZY_ASSOCIATABLE
public static final ConnectionHolder.ConnectionType LAZY_ASSOCIATABLE
-
STANDARD
public static final ConnectionHolder.ConnectionType STANDARD
-
-
Method Detail
-
values
public static ConnectionHolder.ConnectionType[] 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 (ConnectionHolder.ConnectionType c : ConnectionHolder.ConnectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionHolder.ConnectionType 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 nameNullPointerException
- if the argument is null
-
-