|
mobius-js | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MobiusModel
Method Summary | |
void
|
close()
Close the database connection. |
void
|
create(<object> paramsTemp)
Create a new model. |
void
|
createIndex(<object> params)
Called automatically in the bootstrapping process, creates indexes for this model. |
void
|
find(<object> query, sort, <function> callback)
Perorm a query on the database and call the closure provided with the results of the query. |
void
|
init(<object> processingStack, <class> constructor)
Base class for all models. |
void
|
loadParameters(<object> params)
Map parameters onto a new instance of this class. |
Object
|
validate(params)
Validate parameters. |
Method Detail |
void close()
void create(<object> paramsTemp)
paramsTemp
- Key value pairs representing model to create.
void createIndex(<object> params)
params
- A structure representing MongoDB indexes.
void find(<object> query, sort, <function> callback)
query
- A database query in MongoDB format.
callback
- This is called with an array containing the results of find.
order
- An order for results in MongoDB format.
void init(<object> processingStack, <class> constructor)
processingStack
- synchronous processing stack.
constructor
- constructor which can be used to create new instance of this class.
void loadParameters(<object> params)
params
- key value pairs of instance variables.
Object validate(params)
|
mobius-js | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |