Properties Methods Events Direct Link

Class CQ.Ext.data.Record

Package:CQ.Ext.data
Class:Record
Subclasses:SlingRecord
Extends:Object
Clientlib:cq.widgets

Instances of this class encapsulate both Record definition information, and Record value information for use in CQ.Ext.data.Store objects, or any code which needs to access Records cached in an CQ.Ext.data.Store object.

Constructors for this class are generated by passing an Array of field definition objects to create. Instances are usually only created by CQ.Ext.data.DataReader implementations when processing unformatted data objects.

Note that an instance of a Record class may only belong to one Store at a time. In order to copy data from one Store to another, use the copy method to create an exact copy of the Record, and insert the new instance into the other Store.

When serializing a Record for submission to the server, be aware that it contains many private properties, and also a reference to its owning Store which in turn holds references to its Records. This means that a whole Record may not be encoded using CQ.Ext.util.JSON.encode. Instead, use the data and id properties.

Record objects generated by this constructor inherit all the methods of CQ.Ext.data.Record listed below.

Public Properties

Property Defined By
  dirty : Boolean
Readonly flag - true if this Record has been modified.
Record
  id : Object
The unique ID of the Record as specified at construction time.
Record
  store : CQ.Ext.data.Store
The CQ.Ext.data.Store to which this Record belongs.
Record

Public Methods

Method Defined By

Public Events

This class has no public events.