public interface IGenericHandler extends IAPIHandler
| Modifier and Type | Method and Description |
|---|---|
<T extends ITransferableEntity> |
create(Class<T> entityClass,
UserContext uc,
T... entities)
Creates the.
|
<T extends ITransferableEntity> |
create(Class<T> entityClass,
UserContext uc,
T entity)
Creates the.
|
<T extends ITransferableEntity> |
delete(Class<T> entityClass,
UserContext uc,
T... entities)
Delete.
|
<T extends ITransferableEntity> |
delete(Class<T> entityClass,
UserContext uc,
T entities)
Delete.
|
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> |
deleteBy(Class<T> entityClass,
UserContext uc,
C cm)
Delete by.
|
<T extends ITransferableEntity> |
deleteById(Class<T> entityClass,
UserContext uc,
Integer id) |
<T extends ITransferableEntity> |
deleteById(Class<T> entityClass,
UserContext uc,
Long id)
Delete by id.
|
<T extends ITransferableEntity> |
getAll(Class<T> entityClass,
UserContext uc)
Gets the all.
|
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> |
getAllBy(Class<T> entityClass,
UserContext uc,
C cm)
Gets the all by.
|
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding & de.xima.cmn.criteria.interfaces.ISelectableCriteriaManager> |
getAttributes(Class<T> entityClass,
UserContext uc,
C cm)
Gets a list of attributes specified in the given criteria manager
C |
<R,T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding & de.xima.cmn.criteria.interfaces.ISelectableCriteriaManager> |
getAttributes(Class<T> entityClass,
UserContext uc,
C cm,
Class<R> resultClass)
Gets a list of attributes specified in the given criteria manager
C. the attribute values will be returned
as objects defined by the result class |
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> |
getBy(Class<T> entityClass,
UserContext uc,
C cm)
Gets the by.
|
<T extends ITransferableEntity> |
getById(Class<T> entityClass,
UserContext uc,
Integer id) |
<T extends ITransferableEntity> |
getById(Class<T> entityClass,
UserContext uc,
Long id)
Gets the by id.
|
<T extends ITransferableEntity> |
getById(String entityClass,
UserContext uc,
String id)
Gets the by id.
|
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> |
resultTotalCount(Class<T> entityClass,
UserContext uc,
C cm)
Result total count.
|
<T extends ITransferableEntity> |
update(Class<T> entityClass,
UserContext uc,
T... entities)
Update.
|
<T extends ITransferableEntity> |
update(Class<T> entityClass,
UserContext uc,
T entity)
Update.
|
getName<T extends ITransferableEntity> List<T> getAll(Class<T> entityClass, UserContext uc)
T - the generic typeentityClass - the entity classuc - the uc<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> List<T> getAllBy(Class<T> entityClass, UserContext uc, C cm)
T - the generic typeentityClass - the entity classuc - the uccm - the qcm<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> T getBy(Class<T> entityClass, UserContext uc, C cm)
T - the generic typeentityClass - the entity classuc - the uccm - the qcm<T extends ITransferableEntity> T getById(Class<T> entityClass, UserContext uc, Long id)
T - the generic typeentityClass - the entity classuc - the ucid - the id<T extends ITransferableEntity> T getById(Class<T> entityClass, UserContext uc, Integer id)
<T extends ITransferableEntity> T getById(String entityClass, UserContext uc, String id)
T - the generic typeentityClass - the entity classuc - the ucid - the id<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding & de.xima.cmn.criteria.interfaces.ISelectableCriteriaManager> List<Map<String,Serializable>> getAttributes(Class<T> entityClass, UserContext uc, C cm) throws NotSerializableException
CT - type of the entityC - type of the criteria managerentityClass - Class of the entityuc - UserContext that will be usedcm - C criteria manager specifying the filtering, sorting, paging and selection of attributesList of Tuples containing the attribute valuesNotSerializableException<R,T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding & de.xima.cmn.criteria.interfaces.ISelectableCriteriaManager> List<R> getAttributes(Class<T> entityClass, UserContext uc, C cm, Class<R> resultClass)
C. the attribute values will be returned
as objects defined by the result classR - type of result objectT - type of the entityC - type of the criteria managerentityClass - Class of the entityuc - UserContext that will be usedcm - C criteria manager specifying the filtering, sorting, paging and selection of attributesresultClass - Class of the result objectsList of Rs containing the attribute values<T extends ITransferableEntity> T[] create(Class<T> entityClass, UserContext uc, T... entities)
T - the generic typeentityClass - the entity classuc - the ucentities - the entities<T extends ITransferableEntity> T create(Class<T> entityClass, UserContext uc, T entity)
T - the generic typeentityClass - the entity classuc - the ucentity - the entity<T extends ITransferableEntity> T[] update(Class<T> entityClass, UserContext uc, T... entities)
T - the generic typeentityClass - the entity classuc - the ucentities - the entities<T extends ITransferableEntity> T update(Class<T> entityClass, UserContext uc, T entity)
T - the generic typeentityClass - the entity classuc - the ucentity - the entity<T extends ITransferableEntity> Boolean delete(Class<T> entityClass, UserContext uc, T... entities)
T - the generic typeentityClass - the entity classuc - the ucentities - the entities<T extends ITransferableEntity> Boolean delete(Class<T> entityClass, UserContext uc, T entities)
T - the generic typeentityClass - the entity classuc - the ucentities - the entities<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.ISortableCriteriaManager & de.xima.cmn.criteria.interfaces.IPageableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> Boolean deleteBy(Class<T> entityClass, UserContext uc, C cm)
T - the generic typeentityClass - the entity classuc - the uccm - the qcm<T extends ITransferableEntity> Boolean deleteById(Class<T> entityClass, UserContext uc, Long id)
T - the generic typeentityClass - the entity classuc - the ucid - the id<T extends ITransferableEntity> Boolean deleteById(Class<T> entityClass, UserContext uc, Integer id)
<T extends ITransferableEntity,C extends de.xima.cmn.criteria.interfaces.IFilterableCriteriaManager & de.xima.cmn.criteria.interfaces.IQueryHintProviding> Integer resultTotalCount(Class<T> entityClass, UserContext uc, C cm)
T - the generic typeentityClass - the entity classuc - the uccm - the qcmCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.