|
||||||||||
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.hibernate.HibernateDAO<T,I>
public class HibernateDAO<T,I extends Serializable>
Constructor Summary | |
---|---|
HibernateDAO(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 |
org.hibernate.Criteria |
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()
|
static org.hibernate.SessionFactory |
getSessionFactory()
|
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 HibernateDAO(Class<T> typeClazz, Class<I> identifierClazz)
Method Detail |
---|
public static org.hibernate.SessionFactory getSessionFactory()
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 org.hibernate.Criteria 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 |