|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.shared.service.GenericServiceHibernateImpl<T>
@Transactional public class GenericServiceHibernateImpl<T extends DomainObject>
GenericService based on hibernate
| Constructor Summary | |
|---|---|
GenericServiceHibernateImpl(Class<T> type)
Constructor |
|
| Method Summary | |
|---|---|
org.hibernate.Criteria |
createCriteria()
|
void |
delete(T o)
|
void |
detachFromSession(T o)
|
List<T> |
findAll()
|
protected List<T> |
findByCriteria(org.hibernate.criterion.Criterion... criterion)
Convenience method for subclasses to find domain objects that match the Criterion's |
protected List<T> |
findByCriteriaOrdered(List<org.hibernate.criterion.Criterion> criterionList,
List<org.hibernate.criterion.Order> orderList)
Convenicence method for subclasses to find domain objects that match the list of Criterion's in the given order |
List<T> |
findByExample(T exampleInstance)
|
List<T> |
findByExample(T exampleInstance,
String[] excludes)
|
T |
findById(Long id)
Find by primary key |
int |
getCount()
|
Class<T> |
getPersistentClass()
|
protected org.hibernate.classic.Session |
getSession()
|
void |
saveOrUpdate(Collection<T> coll)
|
Long |
saveOrUpdate(T t)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericServiceHibernateImpl(Class<T> type)
type - the clazz| Method Detail |
|---|
public void delete(T o)
delete in interface GenericService<T extends DomainObject>public void detachFromSession(T o)
detachFromSession in interface GenericService<T extends DomainObject>public List<T> findAll()
findAll in interface GenericService<T extends DomainObject>public List<T> findByExample(T exampleInstance)
findByExample in interface GenericService<T extends DomainObject>
public List<T> findByExample(T exampleInstance,
String[] excludes)
findByExample in interface GenericService<T extends DomainObject>protected List<T> findByCriteria(org.hibernate.criterion.Criterion... criterion)
criterion - array of Criterion's
protected List<T> findByCriteriaOrdered(List<org.hibernate.criterion.Criterion> criterionList,
List<org.hibernate.criterion.Order> orderList)
criterionList - List of Criterion'sorderList - List of Order's
public T findById(Long id)
GenericService
findById in interface GenericService<T extends DomainObject>id - the entity primary key
public int getCount()
getCount in interface GenericService<T extends DomainObject>public Class<T> getPersistentClass()
getPersistentClass in interface GenericService<T extends DomainObject>public Long saveOrUpdate(T t)
saveOrUpdate in interface GenericService<T extends DomainObject>public void saveOrUpdate(Collection<T> coll)
saveOrUpdate in interface GenericService<T extends DomainObject>protected org.hibernate.classic.Session getSession()
public org.hibernate.Criteria createCriteria()
createCriteria in interface GenericService<T extends DomainObject>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||