ReplacedProperty#

public class ReplacedProperty extends Property#

A wrapper of Property objects used by the back-end implementation for the MariaDB back-end.

This class helps to transform deeply nested properties, properties with overridden data types, and other properties that cannot be represented in a single data table row to the flat (row-like) representation used internally by the back-end (which is an implementation detail of the back-end or part of the non-public API of the back-end from that point of view).

For example the following Property, that has a subproperty <P1 id=111> < P2 id=222 value = 5> <P1/>

would be replaced with a ReplacedProperty wrapper object, that has a .replacement in addtion to the original attributes. .replacement represents the Property that replaces the original one it has a new ID and the value is the origianl Property ID. r = ReplacedProperty(p1); r.replacement.value == p1.ID //true

Fields#

real_id#

public EntityID real_id#

replacement#

public Property replacement#

Constructors#

ReplacedProperty#

public ReplacedProperty(Property p)#

Methods#

getId#

public EntityID getId()#

hasId#

public boolean hasId()#

isStage2Replacement#

public boolean isStage2Replacement()#

setReplacementId#

public void setReplacementId(EntityID id)#

setStage2Replacement#

public void setStage2Replacement(boolean t)#