IRISLIB database
Serializer Class Reference

Likely this will need to be an AET populated with property values that are AE's that wrap Registered counterparts. More...

Static Public Member Functions

_.Library.RegisteredObject fromJson (str)
 Immutable universal wrapper for populating an instance of a. More...
 
_.Library.Integer getValue (oref, pd, value)
 Returns the value of the property from the property descriptor. More...
 
_.Library.DynamicArray mapCollectionToArray (_.Collection.AbstractIterator source, _.Library.DynamicArray target, _.Library.Integer laxMode)
 This is a generic collection dispatcher - Cache Objects collection type is either list or array.
 
_.Library.DynamicObject mapCollectionToObject (_.Collection.AbstractIterator source, _.Library.DynamicObject target, _.Library.Integer laxMode)
 This is a generic collection dispatcher - Cache Objects collection type is either list or array
 
_.Library.DynamicAbstractObject mapGenericObjectToAbstractObject (_.Library.RawString source, _.Library.DynamicAbstractObject target, _.Library.Integer laxMode, _.Library.Integer asReference, _.Library.Integer nested)
 This mapper accepts any object (oref) and returns an AbstractObject. More...
 
_.Library.DynamicObject mapReferenceToValue (_.Library.Persistent source, _.Library.DynamicObject target, _.Library.Integer laxMode)
 Return an object containing the class name and ID of a Persistent instance
 
_.Library.DynamicArray mapRelationshipToArray (_.Collection.AbstractList source, _.Library.DynamicArray target, _.Library.Integer laxMode)
 An N-Cardinality relationship has an interface consistent with a Cache Array Collection but there are differences. More...
 
 projectArrayFromCollection (target, source, _.Library.Integer laxMode)
 This is an internal class that implements utilities used by the $project methods. More...
 
 projectObjectFromCollection (target, source, _.Library.Integer laxMode)
 This is the top level of composition - a top level object requested to be projectd from a source. More...
 
 projectObjectFromRegistered (target, source, _.Library.Integer laxMode)
 This is the top level of composition - a top level object requested to be projectd from a source. More...
 
 projectRegisteredFromAbstractObject (target, source, _.Library.Integer laxMode)
 target is an instance of the RegisteredObject class, source is a DAO
 

Static Private Member Functions

_.Library.RegisteredObject FromJSONValue (str)
 Default mechanism for populating an instance of this object from. More...
 
_.Library.RegisteredObject FromObject (source, target, _.Library.Integer laxMode)
 Default mechanism for populating an instance of this object from. More...
 

Detailed Description

Likely this will need to be an AET populated with property values that are AE's that wrap Registered counterparts.

Member Function Documentation

◆ FromJSONValue()

_.Library.RegisteredObject FromJSONValue (   str)
staticprivate

Default mechanism for populating an instance of this object from.

a JSON representation of its data.

◆ FromObject()

_.Library.RegisteredObject FromObject (   source,
  target,
_.Library.Integer  laxMode 
)
staticprivate

Default mechanism for populating an instance of this object from.

an instance of some other object. This method is responsible for identifying the type of the source object and processing the mapping from that source to the target object. If the target instance is not populated then this method is responsible for instantiating the current class and returning that instance to the caller. ]]>

◆ fromJson()

_.Library.RegisteredObject fromJson (   str)
static

Immutable universal wrapper for populating an instance of a.

registered object via a JSON representation of its data. This method calls FromJSONValue(), which may be overridden, to perform the actual business of JSON parsing and object population

◆ getValue()

_.Library.Integer getValue (   oref,
  pd,
  value 
)
static

Returns the value of the property from the property descriptor.

because the current value may be multidimensional and we need to pass back an array with structure

◆ mapGenericObjectToAbstractObject()

_.Library.DynamicAbstractObject mapGenericObjectToAbstractObject ( _.Library.RawString  source,
_.Library.DynamicAbstractObject  target,
_.Library.Integer  laxMode,
_.Library.Integer  asReference,
_.Library.Integer  nested 
)
static

This mapper accepts any object (oref) and returns an AbstractObject.

This is just a dispatcher that invokes the most reasonable mapper depending on the

type information gathered from the source object.

◆ mapRelationshipToArray()

_.Library.DynamicArray mapRelationshipToArray ( _.Collection.AbstractList  source,
_.Library.DynamicArray  target,
_.Library.Integer  laxMode 
)
static

An N-Cardinality relationship has an interface consistent with a Cache Array Collection but there are differences.

This mapper function

◆ projectArrayFromCollection()

projectArrayFromCollection (   target,
  source,
_.Library.Integer  laxMode 
)
static

This is an internal class that implements utilities used by the $project methods.

These

utility methods are implemented here but represent ToObject and FromObject implementations for various system classes, including collection classes, ZEN.proxyObject, and so on.
The top level composition methods accept a target instance and that instance will be populated by the projectrs. These methods are all named projectSomething.
The lower level methods map an instance of something to an instance of something else. The method is specific for each category of from object and to object. For example, to map a Cache Object to an Array, the method is named <method>mapCacheObjectToArray</method>. The various map methods accept a target and if target is null then it is populated with the To object type.

◆ projectObjectFromCollection()

projectObjectFromCollection (   target,
  source,
_.Library.Integer  laxMode 
)
static

This is the top level of composition - a top level object requested to be projectd from a source.

instance. Construct the AET.

◆ projectObjectFromRegistered()

projectObjectFromRegistered (   target,
  source,
_.Library.Integer  laxMode 
)
static

This is the top level of composition - a top level object requested to be projectd from a source.

instance. Construct the AET.