Jaxer.DBPersistor : Object
Return to: Jaxer Framework index

A database-based persistor for Jaxer Container objects (session, sessionPage, etc.)

Platform Support

Jaxer Server Framework Jaxer Client Framework
0.9 no

Constructors

Constructor Action Jaxer Server Framework Jaxer Client Framework
Jaxer.DBPersistor Constructor() : Jaxer.DBPersistor
A database-based persistor for Jaxer Container objects (session, sessionPage, etc.)

(Advanced)
Show Details 0.9 no

Jaxer.DBPersistor() : Jaxer.DBPersistor

A database-based persistor for Jaxer Container objects (session, sessionPage, etc.)

(Advanced)

Returns
Jaxer.DBPersistor Returns an instance of DBPersistor.

Visibility
advanced

Functions

Method Action Jaxer Server Framework Jaxer Client Framework
load(String type, String key, String name) : Object
Retrieve a given container type's and name's property, by name

(Advanced)
Show Details 0.9 no

Parameters
String type The type of the container
String key The key for the specific instance of the container (e.g. the sessionPage ontainer is per page, and the page's key is used here)
String name The name of the property to query for

Returns
Object The value of the requested property, or the empty object if there is none

loadAll(String type, String key) : Object
Load all the name-value properties at once for the given container type and key

(Advanced)
Show Details 0.9 no

Parameters
String type The type of the container
String key The key for the specific instance of the container (e.g. the sessionPage container is per page, and the page's key is used here)

Returns
Object A hashmap of name-value pairs

persist(String type, String key, String name, Object data) : void
Persist a particular property (by name) for the given container type and key

(Advanced)
Show Details 0.9 no

Parameters
String type The type of the container
String key The key for the specific instance of the container (e.g. the sessionPage container is per page, and the page's key is used here)
String name The name of the property to persist
Object data The value to persist for this property

remove(String type, String key, String name) : void
Completely remove the given property from the database

(Advanced)
Show Details 0.9 no

Parameters
String type The type of the container
String key The key for the specific instance of the container (e.g. the sessionPage container is per page, and the page's key is used here)
String name The name of the property to remove

static createSchema() : void
Creates the database schema needed to persist containers

(Advanced)
No Details 0.9 no
aptana_docs