Package | Description |
---|---|
sirius.db.mongo |
Thin layer above Mongo DB.
|
Modifier and Type | Method and Description |
---|---|
Finder |
Mongo.find()
Returns a fluent query builder to find one or more documents in the database
|
Finder |
Finder.limit(int limit)
Adds a limit to the query.
|
Finder |
Finder.limit(int skip,
int limit)
Adds a limit to the query.
|
Finder |
Finder.orderByAsc(Mapping field)
Adds a sort constraint to order by the given field ascending.
|
Finder |
Finder.orderByAsc(String field)
Adds a sort constraint to order by the given field ascending.
|
Finder |
Finder.orderByDesc(Mapping field)
Adds a sort constraint to order by the given field descending.
|
Finder |
Finder.orderByDesc(String field)
Adds a sort constraint to order by the given field descending.
|
Finder |
Finder.selectFields(Mapping... fieldsToReturn)
Limits the fields being returned to the given list.
|
Finder |
Finder.selectFields(String... fieldsToReturn)
Limits the fields being returned to the given list.
|
Finder |
Finder.skip(int skip)
Specifies the number of items to skip before items are added to the result.
|
Copyright © 2018. All rights reserved.