Package uk.co.sculptor.kflibjava
Enum Class Field.Flag
- All Implemented Interfaces:
Serializable
,Comparable<Field.Flag>
,Constable
- Enclosing class:
Field
Field flag enumeration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBinary get and putPrint centred text (print)Assign as day numberSuppress input echoAssign against formatFold assigns to lower caseAssign as Sculptor 2 moneyMain key fieldAssign as numericAlphanumeric packed field (use array as a single field)Remove trailing spaces (get/put)Remove leading spaces (print)Remove trailing spaces (print)Fold assigns to upper caseUsed in secondary index (for temporary use in ODBC functions)Store variable length -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<Field.Flag>
getFlagFromFormat
(String format) This function is used to return the Field.Flag value extracted from a field formatstatic EnumSet<Field.Flag>
getFromInt
(int scFlags) Convert a received value to EnumSet<Flag> enumeration set.int
getInt()
Returns the Field flag as the int value used on KfServerstatic int
getScValue
(EnumSet<Field.Flag> flags) Convert a EnumSet of Field Flags to the Sculptor value used on the server.static Field.Flag
Returns the enum constant of this class with the specified name.static Field.Flag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLDOPT_B
Binary get and put -
FLDOPT_D
Assign as day number -
FLDOPT_E
Suppress input echo -
FLDOPT_F
Assign against format -
FLDOPT_L
Fold assigns to lower case -
FLDOPT_M
Assign as Sculptor 2 money -
FLDOPT_N
Assign as numeric -
FLDOPT_R
Remove trailing spaces (get/put) -
FLDOPT_S
Remove leading spaces (print) -
FLDOPT_T
Remove trailing spaces (print) -
FLDOPT_U
Fold assigns to upper case -
FLDOPT_V
Store variable length -
FLDOPT_C
Print centred text (print) -
FLDOPT_P
Alphanumeric packed field (use array as a single field) -
FLDOPT_USEDINSI
Used in secondary index (for temporary use in ODBC functions) -
FLDOPT_MAINKEY
Main key field
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromInt
Convert a received value to EnumSet<Flag> enumeration set.- Parameters:
scFlags
- the Sculptor value to be translated to enumeration set.- Returns:
- the enumeration set
- Throws:
KfException
- when the scFlags value is invalid
-
getScValue
Convert a EnumSet of Field Flags to the Sculptor value used on the server.- Parameters:
flags
-Database.Flag
Enumerator set- Returns:
- the Sculptor value used on KfServer.
-
getInt
public int getInt()Returns the Field flag as the int value used on KfServer- Returns:
- Field flag as the int value used on KfServer
-
getFlagFromFormat
This function is used to return the Field.Flag value extracted from a field format- Parameters:
format
- a Field format to generate the Flags from- Returns:
- The corresponding Field.Flags value
-