Package com.tetsuwantech.atom.database
Class GenericServiceImpl<E extends GenericEntity,K>
- java.lang.Object
-
- com.tetsuwantech.atom.database.GenericServiceImpl<E,K>
-
- All Implemented Interfaces:
GenericService<E,K>
- Direct Known Subclasses:
AuditServiceImpl,SecureServiceImpl,SubjectServiceImpl
@Named("GenericService") public abstract class GenericServiceImpl<E extends GenericEntity,K> extends Object implements GenericService<E,K>
-
-
Constructor Summary
Constructors Constructor Description GenericServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longcount(K where)Longcount(K where, String column)voidcreate(E object)List<E>findAll()List<E>findAll(K where)List<E>findAll(K where, String column)List<E>findAll(K where, String column, String orderBy)EfindFirst(K where)EfindFirst(K where, String column)Eget(Long id)voidremove(Long id)Esave(E object)List<E>search(K where, String column, String text, String[] fields)
-
-
-
Method Detail
-
create
public void create(E object)
- Specified by:
createin interfaceGenericService<E extends GenericEntity,K>
-
save
public E save(E object)
- Specified by:
savein interfaceGenericService<E extends GenericEntity,K>
-
get
public E get(Long id)
- Specified by:
getin interfaceGenericService<E extends GenericEntity,K>
-
remove
public void remove(Long id)
- Specified by:
removein interfaceGenericService<E extends GenericEntity,K>
-
findAll
public List<E> findAll()
- Specified by:
findAllin interfaceGenericService<E extends GenericEntity,K>
-
findAll
public List<E> findAll(K where)
- Specified by:
findAllin interfaceGenericService<E extends GenericEntity,K>
-
findAll
public List<E> findAll(K where, String column)
- Specified by:
findAllin interfaceGenericService<E extends GenericEntity,K>
-
findAll
public List<E> findAll(K where, String column, String orderBy)
- Specified by:
findAllin interfaceGenericService<E extends GenericEntity,K>
-
findFirst
public E findFirst(K where)
- Specified by:
findFirstin interfaceGenericService<E extends GenericEntity,K>
-
findFirst
public E findFirst(K where, String column)
- Specified by:
findFirstin interfaceGenericService<E extends GenericEntity,K>
-
count
public Long count(K where)
- Specified by:
countin interfaceGenericService<E extends GenericEntity,K>
-
count
public Long count(K where, String column)
- Specified by:
countin interfaceGenericService<E extends GenericEntity,K>
-
-