Package io.jmix.eclipselink.persistence
Interface AdditionalCriteriaProvider
- All Known Implementing Classes:
HasTenantAdditionalCriteriaProvider
,SoftDeleteAdditionalCriteriaProvider
public interface AdditionalCriteriaProvider
Provides the additional criteria for the query.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalCriteria
(Class<?> entityClass) Returns the additional criteria.Returns parameters of the additional criteria.boolean
requiresAdditionalCriteria
(Class<?> entityClass) Checks if the class needs additional criteria.
-
Method Details
-
requiresAdditionalCriteria
Checks if the class needs additional criteria.- Parameters:
entityClass
- a class.- Returns:
- true if a query to this class requires additional criteria.
-
getAdditionalCriteria
Returns the additional criteria.- Returns:
- The string of this additional criteria
-
getCriteriaParameters
Returns parameters of the additional criteria.- Returns:
- The map of parameters, entered in the additional criteria.
-