Class Index | File Index

Classes


Class R.storage.TransientStorage


Extends R.storage.BrowserStorage.
R.storage.TransientStorage is used to hold data that is used only while the game is active. Transient data is an alternative to using a lot of local variables or object structures to store the data.

Data is stored and retrieved using a SQL-like syntax. For information about the SQL syntax, see http://code.google.com/p/trimpath/wiki/TrimQuery
Defined in: transientstorage.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This class of storage is used to hold data during the current browser session only.
Method Summary
Method Attributes Method Name and Description
 
Get the class name of this object
 
A unique identifier for the table name.
 
Initialize the storage object to the localStorage browser object
 
Release the object back into the object pool.
Methods borrowed from class R.storage.BrowserStorage:
createTable, dropTable, execSql, getKeys, getTableData, getTableDef, getTableSize, load, save, setTableData, tableExists
Methods borrowed from class R.storage.AbstractDBStorage:
flush, getSchema, setSchema
Methods borrowed from class R.storage.AbstractStorage:
destroy, getStorageObject, loadData, saveData, setStorageObject
Methods borrowed from class R.engine.PooledObject:
clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.storage.TransientStorage(name)
This class of storage is used to hold data during the current browser session only.
Parameters:
name
{String} The name of the object
Method Detail
{String} getClassName()
Get the class name of this object
Returns:
{String} "R.storage.TransientStorage"

{String} getTableUID(name)
A unique identifier for the table name.
Parameters:
name
{String} The table name
Returns:
{String} A unique identifier

{Object} initStorageObject()
Initialize the storage object to the localStorage browser object
Returns:
{Object} The sessionStorage object

release()
Release the object back into the object pool.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:21 GMT-0400 (EDT)