Package net.officefloor.jpa
Enum JpaManagedObjectSource.DependencyType
- java.lang.Object
-
- java.lang.Enum<JpaManagedObjectSource.DependencyType>
-
- net.officefloor.jpa.JpaManagedObjectSource.DependencyType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JpaManagedObjectSource.DependencyType>
- Enclosing class:
- JpaManagedObjectSource
public static enum JpaManagedObjectSource.DependencyType extends java.lang.Enum<JpaManagedObjectSource.DependencyType>
Dependency type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description connection
Value for {JpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating depending onConnection
.datasource
Value forJpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating depending onDataSource
.managed
Value forJpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating theEntityManager
will manage connectivity.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JpaManagedObjectSource.DependencyType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JpaManagedObjectSource.DependencyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
connection
public static final JpaManagedObjectSource.DependencyType connection
Value for {JpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating depending onConnection
.
-
datasource
public static final JpaManagedObjectSource.DependencyType datasource
Value forJpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating depending onDataSource
.
-
managed
public static final JpaManagedObjectSource.DependencyType managed
Value forJpaManagedObjectSource.PROPERTY_DEPENDENCY_TYPE
indicating theEntityManager
will manage connectivity.
-
-
Method Detail
-
values
public static JpaManagedObjectSource.DependencyType[] 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 (JpaManagedObjectSource.DependencyType c : JpaManagedObjectSource.DependencyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JpaManagedObjectSource.DependencyType 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 namejava.lang.NullPointerException
- if the argument is null
-
-