Package com.tetsuwantech.atom.manager
Class GenericManager<E extends GenericEntity,K,M extends GenericModel,W extends GenericModel>
- java.lang.Object
-
- com.tetsuwantech.atom.manager.GenericManager<E,K,M,W>
-
- Direct Known Subclasses:
SubjectManager
@Named("GenericManager") public abstract class GenericManager<E extends GenericEntity,K,M extends GenericModel,W extends GenericModel> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericService<E,K>genericService
-
Constructor Summary
Constructors Constructor Description GenericManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Longcount(K where, String column)abstract LongcountAll(SubjectModel subject)protected abstract McreateModel(E entity)protected List<M>findAll(K where, String column, String orderBy)abstract List<M>findAll(W where)protected MfindFirst(K where, String column)Mget(Long id)voidremove(Long id)abstract voidsave(M model)protected List<M>search(K where, String column, String text, String[] fields)abstract List<M>search(W where, String text)
-
-
-
Field Detail
-
genericService
@Inject protected GenericService<E extends GenericEntity,K> genericService
-
-
Method Detail
-
save
public abstract void save(M model)
-
remove
public void remove(Long id)
-
countAll
public abstract Long countAll(SubjectModel subject)
-
-