Packageplayerio
Classpublic dynamic class DatabaseObject
InheritanceDatabaseObject Inheritance Object

Player.IO BigDB Database object



Public Properties
 PropertyDefined By
  key : String
[read-only] The DatabaseObject's key
DatabaseObject
  table : String
[read-only] The BigDB table that the DatabaseObject belongs to
DatabaseObject
Public Methods
 MethodDefined By
  
save(useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):void
Save the object to the database.
DatabaseObject
Property Detail
keyproperty
key:String  [read-only]

The DatabaseObject's key


Implementation
    public function get key():String
tableproperty 
table:String  [read-only]

The BigDB table that the DatabaseObject belongs to


Implementation
    public function get table():String
Method Detail
save()method
public function save(useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):void

Save the object to the database.

Parameters

useOptimisticLocks:Boolean (default = false) — If set to true, the save only succeeds if no other process has modified the object since it was loaded.
 
fullOverwrite:Boolean (default = false) — Not supported yet
 
callback:Function (default = null) — Method called when the object has been saved successfully. No values are passed to the callback method.
 
errorHandler:Function (default = null) — Method called if an error occoured while saving the DatabaseObject