Methods
| Modifier and Type |
Method and Description |
protected void |
addIndex(String field,
boolean asc,
boolean background) |
protected void |
addIndexes() |
protected List<T> |
convertIterable(Iterable<T> as) |
org.jongo.Jongo |
createJongo(com.mongodb.DB db) |
void |
delete(String id) |
void |
delete(T object) |
T |
findById(String id) |
protected List<T> |
findByQuery(String query,
Object... params) |
protected T |
findFirstByQuery(String query,
String sort,
Object... params) |
List<T> |
findList() |
protected List<T> |
findSortedByQuery(String query,
String sort,
Object... params) |
protected abstract String |
getCollectionName() |
protected abstract Class<T> |
getEntityClass() |
void |
init() |
protected <T> Iterable<T> |
mapReduce(String map,
String reduce,
com.mongodb.DBObject query,
IObjectConverter<T> conv) |
protected <T> Iterable<T> |
mapReduce(String map,
String reduce,
IObjectConverter<T> conv) |
T |
save(T object) |