Show:

ComplexAspect Class

Module: breeze

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.

Methods

getEntityAspect

() String

Returns the EntityAspect for the top level entity tht contains this complex object.

Returns:

String:

getPropertyPath

(
  • propName
)
String

Executes the specified query against this EntityManager's local cache.

Parameters:

  • propName String

    The property name of a property on this complex aspect for which we want the full path.

Returns:

String:

The 'property path' from the top level entity that contains this complex object to this object.

Properties

complexObject

Entity

The complex object that this aspect is associated with.

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