Player.IO

Build fun, powerful & scalable online and mobile games with the reliable backend your users expect

Sign Up | Sign In

ActionScript3 Reference

actionscript 3 DatabaseObject class informationClass DatabaseObject

Namespace: playerio
Language: ActionScript 3

Player.IO BigDB Database object

Properties

 
public
key :String [read-only]

The DatabaseObject's key

public
table :String [read-only]

The BigDB table that the DatabaseObject belongs to

Methods

 
public
save (useOptimisticLocks:Boolean = false, fullOverwrite:Boolean = false, callback:Function = null, errorHandler:Function = null):void

Save the object to the database.

key

The DatabaseObject's key

Return Value

table

The BigDB table that the DatabaseObject belongs to

Return Value

save

Save the object to the database.

Arguments

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