public final class DefinitionMode extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static DefinitionMode | DEFINE_OCCULTThe record is in occulting mode to specify that the record with the same primary key
 is not inherited from the parent dataset. | 
| static DefinitionMode | DEFINE_OVERWRITEThe record is in overwriting mode when it is locally defined in the current table and it
 has a parent record with the same primary key. | 
| static DefinitionMode | DEFINE_ROOTA record is in root mode when it is locally defined in the current table and it
 does not inherit from a parent record. | 
| static DefinitionMode | INHERITA record is in inherit mode when it is not defined in the current table. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | format()Returns a persistent identifier for this definition mode. | 
| String | getLabel()Returns a human-readable label for this definition mode. | 
| boolean | isInherit()Returns  trueif this is theINHERITstate. | 
| boolean | isOcculting()Returns  trueif this is theDEFINE_OCCULTstate. | 
| boolean | isOverwriting()Returns  trueif this is theDEFINE_OVERWRITEstate. | 
| boolean | isRoot()Returns  trueif this is theDEFINE_ROOTstate. | 
| static DefinitionMode | parse(String aFlag)Returns the definition mode that corresponds to the specified string. | 
| String | toString() | 
public static final DefinitionMode INHERIT
public static final DefinitionMode DEFINE_ROOT
public static final DefinitionMode DEFINE_OVERWRITE
The record then inherits its unspecified values from its parent record.
public static final DefinitionMode DEFINE_OCCULT
If a record in occulting mode is deleted, it becomes inherited if a record with the same primary key exists in the parent dataset (either root, overwriting or itself inherited).
public boolean isInherit()
true if this is the INHERIT state.public boolean isRoot()
true if this is the DEFINE_ROOT state.public boolean isOverwriting()
true if this is the DEFINE_OVERWRITE state.public boolean isOcculting()
true if this is the DEFINE_OCCULT state.public String format()
 The persistent identifier can be re-obtained by parsing using the method parse(String).
 
parse(String)public static DefinitionMode parse(String aFlag)
 The specified string must have been generated by the method format().
 
IllegalArgumentException - if string specified is incorrect.format()public String getLabel()