Package com.orchestranetworks.instance
Class DefinitionMode
- java.lang.Object
- com.orchestranetworks.instance.DefinitionMode
 
 - public final class DefinitionMode extends Object Defines the possible inheritance modes for a record.
-   Field SummaryFields Modifier and Type Field Description static DefinitionModeDEFINE_OCCULTThe record is in occulting mode to specify that the record with the same primary key is not inherited from the parent dataset.static DefinitionModeDEFINE_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 DefinitionModeDEFINE_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 DefinitionModeINHERITA record is in inherit mode when it is not defined in the current table.
 -   Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat()Returns a persistent identifier for this definition mode.StringgetLabel()Returns a human-readable label for this definition mode.booleanisInherit()Returnstrueif this is theINHERITstate.booleanisOcculting()Returnstrueif this is theDEFINE_OCCULTstate.booleanisOverwriting()Returnstrueif this is theDEFINE_OVERWRITEstate.booleanisRoot()Returnstrueif this is theDEFINE_ROOTstate.static DefinitionModeparse (String aFlag)Returns the definition mode that corresponds to the specified string.StringtoString()
 
-   
-   Field Detail- INHERIT- public static final DefinitionMode INHERIT A record is in inherit mode when it is not defined in the current table. This implies that it inherits all its values from a parent record defined in an ancestor table.
 - DEFINE_ROOT- public static final DefinitionMode DEFINE_ROOT A record is in root mode when it is locally defined in the current table and it does not inherit from a parent record.
 - DEFINE_OVERWRITE- public static final DefinitionMode DEFINE_OVERWRITE The 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.- The record then inherits its unspecified values from its parent record. 
 - DEFINE_OCCULT- public static final DefinitionMode DEFINE_OCCULT The record is in occulting mode to specify that the record with the same primary key is not inherited from the parent dataset. This implies that the resolved view of the table does not contain this record.- 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). 
 
 -   Method Detail- isInherit- public boolean isInherit() Returns- trueif this is the- INHERITstate.
 - isRoot- public boolean isRoot() Returns- trueif this is the- DEFINE_ROOTstate.
 - isOverwriting- public boolean isOverwriting() Returns- trueif this is the- DEFINE_OVERWRITEstate.
 - isOcculting- public boolean isOcculting() Returns- trueif this is the- DEFINE_OCCULTstate.
 - format- public String format() Returns a persistent identifier for this definition mode.- The persistent identifier can be re-obtained by parsing using the method - parse(String).- See Also:
- parse(String)
 
 - parse- public static DefinitionMode parse(String aFlag) Returns the definition mode that corresponds to the specified string.- The specified string must have been generated by the method - format().- Throws:
- IllegalArgumentException- if string specified is incorrect.
- See Also:
- format()
 
 - getLabel- public String getLabel() Returns a human-readable label for this definition mode.
 
 
-