| Package | playerio |
| Class | public dynamic class DatabaseObject |
| Inheritance | DatabaseObject Object |
| Property | Defined By | ||
|---|---|---|---|
| key : String [read-only]
The DatabaseObject's key
| DatabaseObject | ||
| table : String [read-only]
The BigDB table that the DatabaseObject belongs to
| DatabaseObject | ||
| Method | Defined By | ||
|---|---|---|---|
save(useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):void
Save the object to the database. | DatabaseObject | ||
| key | property |
key:String [read-only] The DatabaseObject's key
public function get key():String| table | property |
table:String [read-only] The BigDB table that the DatabaseObject belongs to
public function get table():String| save | () | method |
public function save(useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):voidSave 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
|