DirtyCheckContext handles dirty checking of managed entities
protected var _context:BaseContext
dirty:Boolean [read-only]
Entity manager is dirty when any entity/collection/map has been modified
Implementation
public function get dirty():Boolean
savedProperties:Dictionary [read-only]
Current map of saved properties
Implementation
public function get savedProperties():Dictionary
public function DirtyCheckContext(context:BaseContext)Parameters
public function addUnsaved(entity:IEntity):voidParameters
public function clear(dispatch:Boolean = true):void
Clear dirty cache
Parameters
| dispatch:Boolean (default = true) — dispatch a PropertyChangeEvent on meta_dirty if the context was dirty before clearing
|
public function fixRemovalsAndPersists(removals:Array, persists:Array):voidParameters
| removals:Array |
| |
| persists:Array |
public function isEntityChanged(entity:Object, embedded:Object = null, propName:String = null, value:* = null):Boolean
Check if entity has changed since last save point
Parameters
| entity:Object — entity to check
|
| |
| embedded:Object (default = null) — property name
|
| |
| propName:String (default = null) |
| |
| value:* (default = null) |
Returns
| Boolean — entity is dirty
|
public function isEntityDeepChanged(entity:Object, cache:Dictionary = null, embedded:Object = null):BooleanParameters
| entity:Object |
| |
| cache:Dictionary (default = null) |
| |
| embedded:Object (default = null) |
Returns
public function isEntityPropertyChanged(entity:IEntity, propertyName:String, value:Object):Boolean
Check if entity property has been changed since last remote call
Parameters
| entity:IEntity — entity to check
|
| |
| propertyName:String — property to check
|
| |
| value:Object — current value to compare with saved value
|
Returns
| Boolean — true is value has been changed
|
public function isSaved(object:Object):Boolean
Check if the object has a dirty cache
Parameters
| object:Object — object to check
|
Returns
| Boolean — true is value has been changed
|
public function isUnsaved(object:Object):Boolean
Check if the object is marked as new in the context
Parameters
| object:Object — object to check
|
Returns
| Boolean — true if the object has been newly attached
|