T - public abstract class MongoDAO<T extends BusinessObject> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.data.mongodb.core.MongoOperations |
mongoOps |
| Constructor and Description |
|---|
MongoDAO() |
| Modifier and Type | Method and Description |
|---|---|
List<PerMonthStatistic> |
countPerMonthSince(String dateFieldName,
Date since) |
void |
create(T pObject) |
int |
delete(String pObjectId) |
List<T> |
findByFieldName(String pFieldName,
String pFieldValue) |
T |
getByFieldName(String pFieldName,
String pFieldValue) |
T |
getById(String pObjectId) |
abstract Class<T> |
getClazz() |
abstract String |
getCollection() |
List<T> |
list() |
void |
update(T pObject) |
@Autowired protected org.springframework.data.mongodb.core.MongoOperations mongoOps
Copyright © 2016. All rights reserved.