Interface AdditionalCriteriaProvider

All Known Implementing Classes:
HasTenantAdditionalCriteriaProvider, SoftDeleteAdditionalCriteriaProvider

public interface AdditionalCriteriaProvider
Provides the additional criteria for the query.
  • Method Details

    • requiresAdditionalCriteria

      boolean requiresAdditionalCriteria(Class<?> entityClass)
      Checks if the class needs additional criteria.
      Parameters:
      entityClass - a class.
      Returns:
      true if a query to this class requires additional criteria.
    • getAdditionalCriteria

      String getAdditionalCriteria(Class<?> entityClass)
      Returns the additional criteria.
      Returns:
      The string of this additional criteria
    • getCriteriaParameters

      @Nullable Map<String,Object> getCriteriaParameters()
      Returns parameters of the additional criteria.
      Returns:
      The map of parameters, entered in the additional criteria.