|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.khubla.pragmatach.framework.dao.AbstractDAO<T,String> com.khubla.pragmatach.plugin.mongodb.MongoDBDAO<T>
public class MongoDBDAO<T>
Field Summary | |
---|---|
static String |
ID
_id |
Constructor Summary | |
---|---|
MongoDBDAO(Class<T> typeClazz)
|
Method Summary | |
---|---|
long |
count()
get the count of rows in table |
void |
delete(T t)
delete |
void |
deletebyId(String i)
delete |
List<T> |
find(com.mongodb.BasicDBObject query)
find |
List<T> |
find(String[][] terms)
find |
T |
findById(String i)
find by id |
T |
findOne(com.mongodb.BasicDBObject query)
find |
T |
findOne(String[][] terms)
find |
List<T> |
getAll()
findall |
List<T> |
getAll(int start,
int count)
get all |
Class<String> |
getIdentifierClazz()
|
Class<T> |
getTypeClazz()
|
T |
newInstance(com.mongodb.DBObject dbObject)
get an instance |
void |
reloadConfig()
do a config reload |
void |
save(T t)
save object |
void |
update(T t)
update object |
Methods inherited from class com.khubla.pragmatach.framework.dao.AbstractDAO |
---|
getPager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
Constructor Detail |
---|
public MongoDBDAO(Class<T> typeClazz)
Method Detail |
---|
public long count() throws PragmatachException
DAO
PragmatachException
public void delete(T t) throws PragmatachException
PragmatachException
public void deletebyId(String i) throws PragmatachException
PragmatachException
public List<T> find(com.mongodb.BasicDBObject query) throws PragmatachException
PragmatachException
public List<T> find(String[][] terms) throws PragmatachException
PragmatachException
public T findById(String i) throws PragmatachException
PragmatachException
public T findOne(com.mongodb.BasicDBObject query) throws PragmatachException
PragmatachException
public T findOne(String[][] terms) throws PragmatachException
PragmatachException
public List<T> getAll() throws PragmatachException
PragmatachException
public List<T> getAll(int start, int count) throws PragmatachException
DAO
PragmatachException
public Class<String> getIdentifierClazz()
public Class<T> getTypeClazz()
public T newInstance(com.mongodb.DBObject dbObject) throws PragmatachException
PragmatachException
public void reloadConfig()
DAO
public void save(T t) throws PragmatachException
PragmatachException
public void update(T t) throws PragmatachException
PragmatachException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |