Package org.kuali.rice.krad.service.impl
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 Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.core.api.criteria.QueryByCriteria.BuildercreateObjectCriteriaFromMap(Object example, Map<String, String> formProps) org.kuali.rice.core.api.criteria.QueryByCriteria.BuildergenerateCriteria(Class<?> type, Map<String, String> formProps, boolean usePrimaryKeysOnly) Deprecated.org.kuali.rice.core.api.criteria.QueryByCriteria.BuildergenerateCriteria(Class<?> type, Map<String, String> formProps, List<String> wildcardAsLiteralPropertyNames, boolean usePrimaryKeysOnly) Generates QueryByCriteria for lookup search criteria obtained from the lookup form.
-
Method Details
-
generateCriteria
@Deprecated org.kuali.rice.core.api.criteria.QueryByCriteria.Builder generateCriteria(Class<?> type, Map<String, String> formProps, boolean usePrimaryKeysOnly) Deprecated.please usegenerateCriteria(Class, java.util.Map, java.util.List, boolean)insteadGenerates 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
-
generateCriteria(Class, java.util.Map, java.util.List, boolean)instead