org.apache.openejb.jee
Enum PersistenceUnitValidationMode
java.lang.Object
java.lang.Enum<PersistenceUnitValidationMode>
org.apache.openejb.jee.PersistenceUnitValidationMode
- All Implemented Interfaces:
- Serializable, Comparable<PersistenceUnitValidationMode>
public enum PersistenceUnitValidationMode
- extends Enum<PersistenceUnitValidationMode>
persistence_2_0.xsd
Java class for persistence-unit-validation-mode-type.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="persistence-unit-validation-mode-type">
<restriction base="{http://www.w3.org/2001/XMLSchema}token">
<enumeration value="AUTO"/>
<enumeration value="CALLBACK"/>
<enumeration value="NONE"/>
</restriction>
</simpleType>
AUTO
public static final PersistenceUnitValidationMode AUTO
CALLBACK
public static final PersistenceUnitValidationMode CALLBACK
NONE
public static final PersistenceUnitValidationMode NONE
values
public static PersistenceUnitValidationMode[] 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 (PersistenceUnitValidationMode c : PersistenceUnitValidationMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PersistenceUnitValidationMode 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
value
public String value()
fromValue
public static PersistenceUnitValidationMode fromValue(String v)
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.