GODPAPER | All Packages | All Classes | Index | Frames No Frames |
DatabaseObject

Package | playerio
Class | public dynamic class DatabaseObject
Inheritance | DatabaseObject Object

Player.IO BigDB Database object

Public Properties

| 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

Public Methods

| Method | Defined By
--- | --- | ---
|  | save(useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):void Save the object to the database. | DatabaseObject

Property Detail

key | property

`key:String` [read-only]

The DatabaseObject's key

Implementation
`public function get key():String`

table | property |

`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

Thu Jan 16 2014, 01:11 PM +08:00