PlayerIO

The fastest way to build online games without breaking a sweat.

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
commit ():void

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

Save the object to the database.

public
toString ():String

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.commit

public
commit ():void

DatabaseObject.save

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

Save the object to the database.

Arguments

useOptimisticLock:Boolean (Default = false)
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

DatabaseObject.toString

public
toString ():String