Package org.openbravo.dal.xml
Enum EntityResolver.ResolvingMode
- java.lang.Object
-
- java.lang.Enum<EntityResolver.ResolvingMode>
-
- org.openbravo.dal.xml.EntityResolver.ResolvingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityResolver.ResolvingMode>
- Enclosing class:
- EntityResolver
public static enum EntityResolver.ResolvingMode extends Enum<EntityResolver.ResolvingMode>
The resolving mode determines how the EntityResolver should response if no existing object can be found for a certain entity name and id.ALLOW_NOT_EXIST (the default) will allow a not-yet existing object and will create a new one. MUST_EXIST will result in an EntityNotFoundException if the object can not be found in the database.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_NOT_EXIST
MUST_EXIST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityResolver.ResolvingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityResolver.ResolvingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOW_NOT_EXIST
public static final EntityResolver.ResolvingMode ALLOW_NOT_EXIST
-
MUST_EXIST
public static final EntityResolver.ResolvingMode MUST_EXIST
-
-
Method Detail
-
values
public static EntityResolver.ResolvingMode[] 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 (EntityResolver.ResolvingMode c : EntityResolver.ResolvingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityResolver.ResolvingMode 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
-
-