Interface LookupCriteriaGenerator


public interface LookupCriteriaGenerator
Handles generating QueryByCriteria for lookups from a given Map of the properties submitted on the lookup form.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • generateCriteria

      @Deprecated org.kuali.rice.core.api.criteria.QueryByCriteria.Builder generateCriteria(Class<?> type, Map<String,String> formProps, boolean usePrimaryKeysOnly)
      Generates QueryByCriteria for lookup search criteria obtained from the lookup form.
      Parameters:
      type -
      formProps -
      usePrimaryKeysOnly -
      Returns:
    • generateCriteria

      org.kuali.rice.core.api.criteria.QueryByCriteria.Builder generateCriteria(Class<?> type, Map<String,String> formProps, List<String> wildcardAsLiteralPropertyNames, boolean usePrimaryKeysOnly)
      Generates QueryByCriteria for lookup search criteria obtained from the lookup form.

      This implementation better isolates the UIFramework from the lookup service.

      Parameters:
      type - the class name of the object on which the lookup is performed.
      formProps - a Map containing the form properties to be used as search criteria.
      wildcardAsLiteralPropertyNames - list of properties that have wildcards disabled, any wildcard characters are treated as literals.
      usePrimaryKeysOnly - determines whether only primary keys are used in search
      Returns:
      QueryByCriteria.Builder
    • createObjectCriteriaFromMap

      org.kuali.rice.core.api.criteria.QueryByCriteria.Builder createObjectCriteriaFromMap(Object example, Map<String,String> formProps)