Package simpleorm.dataset
Enum SFieldFlags
- java.lang.Object
-
- java.lang.Enum<SFieldFlags>
-
- simpleorm.dataset.SFieldFlags
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SFieldFlags>
public enum SFieldFlags extends java.lang.Enum<SFieldFlags>
Defines aspects of fields.- PRIMARY_KEY: part of primary key
- MANDATORY: Not Null
- NOT_OPTIMISTIC_LOCKED Not added to WHERE clause for optimistic locking. To stop types like Oracle LONG VARCHAR ending up in where clause. (was named UNCHECKED)
- ASCHAR, Create string as CHAR, not VARCHAR
- DESCRIPTIVE: Include in selects where SSelectMode.DESCRIPTIVE
- UNQUERIED: Exclude from selects unless SSelectMode.ALL
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SDESCRIPTIVE
SMANDATORY
SNOT_OPTIMISTIC_LOCKED
SPRIMARY_KEY
SUNQUERIED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SFieldFlags
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SFieldFlags[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPRIMARY_KEY
public static final SFieldFlags SPRIMARY_KEY
-
SMANDATORY
public static final SFieldFlags SMANDATORY
-
SNOT_OPTIMISTIC_LOCKED
public static final SFieldFlags SNOT_OPTIMISTIC_LOCKED
-
SDESCRIPTIVE
public static final SFieldFlags SDESCRIPTIVE
-
SUNQUERIED
public static final SFieldFlags SUNQUERIED
-
-
Method Detail
-
values
public static SFieldFlags[] 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 (SFieldFlags c : SFieldFlags.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SFieldFlags 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
-
-