DeltaItem
| Kind of class: | class |
|---|---|
| Inherits from: | Object |
| Author: | Jason Williams |
| Classpath: | mx.data.components.datasetclasses.DeltaItem |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
The DeltaItem class provides information about an individual operation
performed on a transfer object. For example the DeltaItem indicates if a
change made was for a property of the transfer object or a method call. It
also provides the original state of properties on a transfer object.
performed on a transfer object. For example the DeltaItem indicates if a
change made was for a property of the transfer object or a method call. It
also provides the original state of properties on a transfer object.
Summary
Constructor
- DeltaItem (kind:Number, name:String, init:Object, owner:Object)
- Constructs an instance of the DeltaItem using the kind, name and initializer specifed.
Instance properties
- argList : Array
- Read only; If this mutation's kind is DeltaItem.Method this will be the argument list
- delta : Object
- Read only; Returns the reference to the delta this item belongs to.
- kind : Number
- Read only; Returns this mutation's kind.
- message : String
- Read-only; Returns the mutation's associated message.
- name : String
- Read-only; If this mutation's kind is DeltaItem.Method this will be the name of the
- curValue : Object
- Read-only; If this is a server response this will be the current property value of the
- newValue : Object
- Read-only; If this mutation's kind is DeltaItem.Property this will be the new value
- oldValue : Object
- Read-only; If this mutation's kind is DeltaItem.Property this will be the old value
- __name : String
- __kind : Number
- __argList : Array
- __oldValue : Object
- __newValue : Object
- __curValue : Object
- __message : String
- __owner : Object
Constructor
DeltaItem
function DeltaItem (
kind:Number,
name:String,
init:Object,
owner:Object)
Constructs an instance of the DeltaItem using the kind, name and initializer specifed.
Parameters:
kind :
Number indicating what kind of delta item this is. Valid values are:DeltaItem.Property - change to a propertyDeltaItem.Method - method invocation
name :
String containing the name of the property or method
init :
Object initializer containing the remaining properties based on the kind
specified. i.e.
if kind is DeltaItem.Property the initializer must contain
{oldValue:..., newValue:...., curValue:..., message:"..."}
if kind is DeltaItem.Method the initializer must contain
{argList:Array..., message:"..."}
specified. i.e.
if kind is DeltaItem.Property the initializer must contain
{oldValue:..., newValue:...., curValue:..., message:"..."}
if kind is DeltaItem.Method the initializer must contain
{argList:Array..., message:"..."}
owner:
Object that this delta item belongs to.
Class properties
Method
static Method:Number = 1
(read)
Property
static Property:Number = 0
(read)
Instance properties
__argList
private __argList:Array
(read)
__curValue
private __curValue:Object
(read)
__kind
private __kind:Number
(read)
__message
private __message:String
(read)
__name
private __name:String
(read)
__newValue
private __newValue:Object
(read)
__oldValue
private __oldValue:Object
(read)
__owner
private __owner:Object
(read)
argList
argList:Array
(read)
Read only; If this mutation's kind is DeltaItem.Method this will be the argument list
passed to the method call when the mutation occured.
passed to the method call when the mutation occured.
curValue
curValue:Object
(read)
Read-only; If this is a server response this will be the current property value of the
server instance of the transfer object.
server instance of the transfer object.
delta
delta:Object
(read)
Read only; Returns the reference to the delta this item belongs to.
kind
kind:Number
(read)
Read only; Returns this mutation's kind. It will be one of the followingDeltaItem.Property DeltaItem.Method
message
message:String
(read)
Read-only; Returns the mutation's associated message. This is generally used for a server side
response message to the update operation that was performed.
response message to the update operation that was performed.
name
name:String
(read)
Read-only; If this mutation's kind is DeltaItem.Method this will be the name of the
method that was called to create the mutation.
method that was called to create the mutation.
newValue
newValue:Object
(read)
Read-only; If this mutation's kind is DeltaItem.Property this will be the new value
of the property, i.e. the value the property was last set to.
of the property, i.e. the value the property was last set to.
oldValue
oldValue:Object
(read)
Read-only; If this mutation's kind is DeltaItem.Property this will be the old value
of the property, i.e. the value of the property before it was set.
of the property, i.e. the value of the property before it was set.