public abstract class GenericDAOImpl<T extends BaseEntity> extends Object implements GenericDAO<T>
| Constructor and Description |
|---|
GenericDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
addAll(Collection<T> tList) |
T |
addNew(T t) |
int |
countByCriteria(Map<String,Object> criteriaMap,
Filter filter,
boolean strict) |
void |
delete(T t) |
List<T> |
findByCriteria(Map<String,Object> criterias,
Filter filter,
boolean strict,
int firstResult,
int maxResults,
org.hibernate.criterion.Order order) |
T |
findById(Serializable id) |
org.hibernate.SessionFactory |
getSessionFactory() |
protected String |
getUsernameInSession() |
void |
init(org.hibernate.SessionFactory factory) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
update(T t) |
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
@Autowired public void init(org.hibernate.SessionFactory factory)
public T findById(Serializable id)
findById in interface GenericDAO<T extends BaseEntity>public T addNew(T t)
addNew in interface GenericDAO<T extends BaseEntity>public Collection<T> addAll(Collection<T> tList)
addAll in interface GenericDAO<T extends BaseEntity>public void delete(T t)
delete in interface GenericDAO<T extends BaseEntity>public void update(T t)
update in interface GenericDAO<T extends BaseEntity>public List<T> findByCriteria(Map<String,Object> criterias, Filter filter, boolean strict, int firstResult, int maxResults, org.hibernate.criterion.Order order)
findByCriteria in interface GenericDAO<T extends BaseEntity>public int countByCriteria(Map<String,Object> criteriaMap, Filter filter, boolean strict)
countByCriteria in interface GenericDAO<T extends BaseEntity>protected String getUsernameInSession()
Copyright © 2015 Jamax Software. All rights reserved.