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 Long
count(K where, String column)
abstract Long
countAll(SubjectModel subject)
protected abstract M
createModel(E entity)
protected List<M>
findAll(K where, String column, String orderBy)
abstract List<M>
findAll(W where)
protected M
findFirst(K where, String column)
M
get(Long id)
void
remove(Long id)
abstract void
save(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)
-
-