public interface GenericService<T extends DomainObject>
DomainObject| Modifier and Type | Method and Description |
|---|---|
org.hibernate.Criteria |
createCriteria() |
void |
delete(T o) |
void |
detachFromSession(T o) |
List<T> |
findAll() |
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() |
void |
saveOrUpdate(Collection<T> coll) |
Long |
saveOrUpdate(T t) |
T findById(Long id)
id - the entity primary keyvoid delete(T o)
void detachFromSession(T o)
int getCount()
void saveOrUpdate(Collection<T> coll)
org.hibernate.Criteria createCriteria()
Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.