ComplexAspect Class
An ComplexAspect instance is associated with every complex object instance and is accessed via the complex object's 'complexAspect' property.
The ComplexAspect itself provides properties to determine the parent object, parent property and original values for the complex object.
A ComplexAspect will almost never need to be constructed directly. You will usually get an ComplexAspect by accessing an entities 'complexAspect' property. This property will be automatically attached when an complex object is created as part of an entity via either a query, import or EntityManager.createEntity call.
// assume address is a complex property on the 'Customer' type
var aspect = aCustomer.address.complexAspect;
// aCustomer === aspect.parent;
Item Index
Properties
complexObject
Entity
The complex object that this aspect is associated with.
readOnly
entityAspect
String
The EntityAspect for the top level entity tht contains this complex object.
readOnly
originalValues
Object
The 'original values' of this complex object where they are different from the 'current values'. This is a map where the key is a property name and the value is the 'original value' of the property.
readOnly
parent
Entity | ComplexObject
The parent object that to which this aspect belongs; this will either be an entity or another complex object.
readOnly
parentProperty
DataProperty
The DataProperty on the 'parent' that contains this complex object.
readOnly
propertyPath
String
The 'property path' from the top level entity that contains this complex object to this object.
readOnly