|
||||||||||
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,I> com.khubla.pragmatach.plugin.ebean.EBeanDAO<T,I>
public class EBeanDAO<T,I extends Serializable>
Constructor Summary | |
---|---|
EBeanDAO(Class<T> typeClazz,
Class<I> identifierClazz)
|
Method Summary | |
---|---|
long |
count()
get the count of rows in table |
void |
delete(T t)
delete |
void |
deletebyId(I i)
delete |
com.avaje.ebean.Query<T> |
find()
find by fluent query |
T |
findById(I i)
find by id |
List<T> |
getAll()
findall |
List<T> |
getAll(int start,
int count)
get all |
protected static Set<Class<?>> |
getEntityClasses()
the annotation scanner will have run; we can just query for annotated classes |
Class<I> |
getIdentifierClazz()
|
Class<T> |
getTypeClazz()
|
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 |
Constructor Detail |
---|
public EBeanDAO(Class<T> typeClazz, Class<I> identifierClazz)
Method Detail |
---|
protected static Set<Class<?>> getEntityClasses() throws PragmatachException
PragmatachException
public long count() throws PragmatachException
DAO
PragmatachException
public void delete(T t) throws PragmatachException
PragmatachException
public void deletebyId(I i) throws PragmatachException
PragmatachException
public com.avaje.ebean.Query<T> find() throws PragmatachException
PragmatachException
public T findById(I i) throws PragmatachException
PragmatachException
public List<T> getAll() throws PragmatachException
PragmatachException
public List<T> getAll(int start, int count) throws PragmatachException
DAO
PragmatachException
public Class<I> getIdentifierClazz()
public Class<T> getTypeClazz()
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 |