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.
Defined in: transientstorage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
This class of storage is used to hold data during the current
browser session only.
|
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.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.