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.
Defined in: persistentstorage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
This class of storage is used to persist data between browser sessions.
|
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
|
getTableUID(name)
A unique identifier for the table name.
|
|
Initialize the storage object to the localStorage browser object
|
|
release()
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.