Interface EntityHandler
public interface EntityHandler
Globals Handler to access MasterEntities
- Since:
- 10.0.16
-
Method Summary
Modifier and TypeMethodDescription<T extends MasterEntity>
TReturns the instance of the MasterEntity with the matching id.<T extends MasterEntity>
TReturns the instance of the MasterEntity with the matching predicate.<T extends MasterEntity>
List<T> get
(Class<T> masterEntityClass, Predicate<T> p, Comparator<? super T> sortComparator) Returns a list of the instances of the MasterEntities with the matching predicate, or all, if no predicate is provided.default <T extends MasterEntity>
List<T> getEntities
(Class<T> masterEntityClass) Returns a list of the not deleted instances of the MasterEntities.
-
Method Details
-
get
Returns the instance of the MasterEntity with the matching id.- Type Parameters:
T
- the type of the master entity- Parameters:
masterEntityClass
- the interface representing the MasterEntityid
- the id of the entity to be returned- Returns:
- the entity
- Since:
- 10.0.16
-
get
Returns the instance of the MasterEntity with the matching predicate.- Type Parameters:
T
- the type of the master entity- Parameters:
masterEntityClass
- the interface representing the MasterEntity.p
- the predicate to match- Returns:
- the entity
- Since:
- 10.0.16
-
get
<T extends MasterEntity> List<T> get(Class<T> masterEntityClass, Predicate<T> p, Comparator<? super T> sortComparator) Returns a list of the instances of the MasterEntities with the matching predicate, or all, if no predicate is provided.- Type Parameters:
T
- the type of the master entity- Parameters:
masterEntityClass
- the interface representing the MasterEntity.p
- the predicate to matchsortComparator
- the comparator for sorting- Returns:
- the list of matching entities
- Since:
- 10.0.16
-
getEntities
Returns a list of the not deleted instances of the MasterEntities.- Type Parameters:
T
- the type of the master entity- Parameters:
masterEntityClass
- the interface representing the MasterEntity.- Returns:
- the list of matching, not deleted entities
- Since:
- 10.0.108
-