Packageorg.granite.tide.collections
Classpublic class PersistentCollection
InheritancePersistentCollection Inheritance mx.collections.ListCollectionView
ImplementsIPersistentCollection, org.granite.tide.IPropertyHolder, org.granite.tide.IWrapper

Internal implementation of persistent collection handling automatic lazy loading.
Used for wrapping persistent collections received from the server.
Should not be used directly.



Public Properties
 PropertyDefined by
  entity : Object
[read-only]
PersistentCollection
  length : int
[read-only]
PersistentCollection
  object : Object
[read-only]
PersistentCollection
  propertyName : String
[read-only]
PersistentCollection
Public Methods
 MethodDefined by
  
PersistentCollection(entity:IEntity, propertyName:String, collection:IPersistentCollection)
PersistentCollection
  
addItem(item:Object):void
PersistentCollection
  
addItemAt(item:Object, index:int):void
PersistentCollection
  
getItemAt(index:int, prefetch:int = 0):Object
PersistentCollection
  
initialize():void
PersistentCollection
  
initializing():void
PersistentCollection
  
isInitialized():Boolean
PersistentCollection
  
isInitializing():Boolean
PersistentCollection
  
meta_propertyResultHandler(propName:String, event:ResultEvent):void
PersistentCollection
  
refresh():Boolean
PersistentCollection
  
reload():void
PersistentCollection
  
removeAll():void
PersistentCollection
  
removeItemAt(index:int):Object
PersistentCollection
  
setItemAt(item:Object, index:int):Object
PersistentCollection
  
toString():String
PersistentCollection
  
uninitialize():void
PersistentCollection
  
withInitialized(callback:Function):void
PersistentCollection
Events
 EventSummaryDefined by
    PersistentCollection
    PersistentCollection
Property detail
entityproperty
entity:Object  [read-only]Implementation
    public function get entity():Object
lengthproperty 
length:int  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get length():int
objectproperty 
object:Object  [read-only]Implementation
    public function get object():Object
propertyNameproperty 
propertyName:String  [read-only]Implementation
    public function get propertyName():String
Constructor detail
PersistentCollection()constructor
public function PersistentCollection(entity:IEntity, propertyName:String, collection:IPersistentCollection)Parameters
entity:IEntity
 
propertyName:String
 
collection:IPersistentCollection
Method detail
addItem()method
public override function addItem(item:Object):voidParameters
item:Object
addItemAt()method 
public override function addItemAt(item:Object, index:int):voidParameters
item:Object
 
index:int
getItemAt()method 
public override function getItemAt(index:int, prefetch:int = 0):ObjectParameters
index:int
 
prefetch:int (default = 0)

Returns
Object
initialize()method 
public function initialize():void
initializing()method 
public function initializing():void
isInitialized()method 
public function isInitialized():Boolean

Returns
Boolean
isInitializing()method 
public function isInitializing():Boolean

Returns
Boolean
meta_propertyResultHandler()method 
public function meta_propertyResultHandler(propName:String, event:ResultEvent):voidParameters
propName:String
 
event:ResultEvent
refresh()method 
public override function refresh():Boolean

Returns
Boolean
reload()method 
public function reload():void
removeAll()method 
public override function removeAll():void
removeItemAt()method 
public override function removeItemAt(index:int):ObjectParameters
index:int

Returns
Object
setItemAt()method 
public override function setItemAt(item:Object, index:int):ObjectParameters
item:Object
 
index:int

Returns
Object
toString()method 
public override function toString():String

Returns
String
uninitialize()method 
public function uninitialize():void
withInitialized()method 
public function withInitialized(callback:Function):voidParameters
callback:Function
Event detail
initializeevent 
Event object type: mx.events.CollectionEvent

uninitializeevent  
Event object type: mx.events.CollectionEvent