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.

DatabaseObject.key

public
key :String [read-only]

The DatabaseObject's key

DatabaseObject.table

public
table :String [read-only]

The BigDB table that the DatabaseObject belongs to

DatabaseObject.save

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

Save the object to the database.

Arguments

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