Class Index | File Index

Classes


Class R.storage.PersistentStorage


Extends R.storage.BrowserStorage.
R.storage.PersistentStorage is used to maintain data between browser sessions. The schema and data tables will persist in the user's browser between restarts. This is a good place to store configuration data, high score tables, and other data which needs to be maintained.

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: persistentstorage.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This class of storage is used to persist data between browser sessions.
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.PersistentStorage(name)
This class of storage is used to persist data between browser sessions.
Parameters:
name
{String} The name of the object
Method Detail
{String} getClassName()
Get the class name of this object
Returns:
{String} "R.storage.PersistentStorage"

{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 localStorage 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)