| Package | org.restfulx.models |
| Class | public class RxModel |
| Inheritance | RxModel flash.events.EventDispatcher |
| Subclasses | RxTreeModel |
| Property | Defined by | ||
|---|---|---|---|
| attachment : Object any model can have one attachment, this can be either RxFileRefrence or BinaryAttachment
| RxModel | ||
| cloned : Boolean indicates if this is a clone
| RxModel | ||
| dirty : Boolean can be used to see if this model's properties have been changed
| RxModel | ||
| id : String all models have an id.
| RxModel | ||
| partials : Object indicates which relationships on this model are partially serialized and should be attempted
to be linked to current objects in cache
| RxModel | ||
| rev : String some models have a revision number
| RxModel | ||
| sync : String tracks if this model needs to be synchornized
| RxModel | ||
| xrev : String if we have a revision number, it's also a good idea to keep track of the previous one
| RxModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
RxModel(label:String = "id")
| RxModel | ||
|
create(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.create
| RxModel | ||
|
destroy(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.destroy
| RxModel | ||
|
reload(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = true, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.reload
| RxModel | ||
|
show(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):Object
Wrapper around Rx.models.show
| RxModel | ||
|
shown():Boolean
Wrapper around Rx.models.shown
| RxModel | ||
|
toString():String
Default toString implementation for models
| RxModel | ||
|
update(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):void
Wrapper around Rx.models.update
| RxModel | ||
| attachment | property |
public var attachment:Objectany model can have one attachment, this can be either RxFileRefrence or BinaryAttachment
| cloned | property |
public var cloned:Booleanindicates if this is a clone
| dirty | property |
public var dirty:Booleancan be used to see if this model's properties have been changed
| id | property |
public var id:Stringall models have an id. this is typically unique per class of models
| partials | property |
public var partials:Objectindicates which relationships on this model are partially serialized and should be attempted to be linked to current objects in cache
| rev | property |
public var rev:Stringsome models have a revision number
| sync | property |
public var sync:Stringtracks if this model needs to be synchornized
| xrev | property |
public var xrev:Stringif we have a revision number, it's also a good idea to keep track of the previous one
| RxModel | () | constructor |
public function RxModel(label:String = "id")Parameters
label:String (default = "id") — default model property to use when doing toString().
|
| create | () | method |
public function create(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):voidWrapper around Rx.models.create
ParametersoptsOrOnSuccess:Object (default = null) |
|
onFailure:Function (default = null) |
|
nestedBy:Array (default = null) |
|
metadata:Object (default = null) |
|
recursive:Boolean (default = false) |
|
targetServiceId:int (default = -1) |
|
customProcessor:Function (default = null) |
See also
| destroy | () | method |
public function destroy(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):voidWrapper around Rx.models.destroy
ParametersoptsOrOnSuccess:Object (default = null) |
|
onFailure:Function (default = null) |
|
nestedBy:Array (default = null) |
|
metadata:Object (default = null) |
|
recursive:Boolean (default = false) |
|
targetServiceId:int (default = -1) |
|
customProcessor:Function (default = null) |
See also
| reload | () | method |
public function reload(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = true, targetServiceId:int = -1, customProcessor:Function = null):voidWrapper around Rx.models.reload
ParametersoptsOrOnSuccess:Object (default = null) |
|
onFailure:Function (default = null) |
|
nestedBy:Array (default = null) |
|
metadata:Object (default = null) |
|
fetchDependencies:Boolean (default = true) |
|
useLazyMode:Boolean (default = true) |
|
targetServiceId:int (default = -1) |
|
customProcessor:Function (default = null) |
See also
| show | () | method |
public function show(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, fetchDependencies:Boolean = true, useLazyMode:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):ObjectWrapper around Rx.models.show
ParametersoptsOrOnSuccess:Object (default = null) |
|
onFailure:Function (default = null) |
|
nestedBy:Array (default = null) |
|
metadata:Object (default = null) |
|
fetchDependencies:Boolean (default = true) |
|
useLazyMode:Boolean (default = false) |
|
targetServiceId:int (default = -1) |
|
customProcessor:Function (default = null) |
Object |
See also
| shown | () | method |
public function shown():BooleanWrapper around Rx.models.shown
ReturnsBoolean |
See also
| toString | () | method |
public override function toString():StringDefault toString implementation for models
ReturnsString |
| update | () | method |
public function update(optsOrOnSuccess:Object = null, onFailure:Function = null, nestedBy:Array = null, metadata:Object = null, recursive:Boolean = false, targetServiceId:int = -1, customProcessor:Function = null):voidWrapper around Rx.models.update
ParametersoptsOrOnSuccess:Object (default = null) |
|
onFailure:Function (default = null) |
|
nestedBy:Array (default = null) |
|
metadata:Object (default = null) |
|
recursive:Boolean (default = false) |
|
targetServiceId:int (default = -1) |
|
customProcessor:Function (default = null) |
See also