Package org.kuali.rice.krad.dao.proxy
Class LookupDaoProxy
java.lang.Object
org.kuali.rice.krad.dao.proxy.LookupDaoProxy
- All Implemented Interfaces:
LookupDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria) Create OJB criteria based on business object, search field and valuebooleancreateCriteria(Object example, String searchValue, String propertyName, Object criteria) Create OJB criteria based on business object, search field and valuefindCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly) Since 2.3 This version of findCollectionBySearchHelper is needed for version compatibility.findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Integer searchResultsLimit) Retrieves a collection of objects for the businessObjectClass based on the other information passed into the method.findCountByMap(Object example, Map formProps) Returns a count of objects based on the given search parameters.<T> TfindObjectByMap(Class<T> type, Map<String, String> formProps) Retrieves a Object based on the search criteria, which should uniquely identify a record.voidsetLookupDaoOjb(LookupDao lookupDaoOjb)
-
Constructor Details
-
LookupDaoProxy
public LookupDaoProxy()
-
-
Method Details
-
setLookupDaoOjb
-
createCriteria
public boolean createCriteria(Object example, String searchValue, String propertyName, Object criteria) Description copied from interface:LookupDaoCreate OJB criteria based on business object, search field and value- Specified by:
createCriteriain interfaceLookupDao- Returns:
- true if the criteria is created successfully; otherwise, return false
- See Also:
-
createCriteria
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria) Description copied from interface:LookupDaoCreate OJB criteria based on business object, search field and value- Specified by:
createCriteriain interfaceLookupDao- Returns:
- true if the criteria is created successfully; otherwise, return false
- See Also:
-
findCollectionBySearchHelper
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly) Since 2.3 This version of findCollectionBySearchHelper is needed for version compatibility. It allows executeSearch to behave the same way as it did prior to 2.3. In the LookupDao, the value for searchResultsLimit will be retrieved from the KNS version of LookupUtils in the LookupDao.- Specified by:
findCollectionBySearchHelperin interfaceLookupDao- Parameters:
businessObjectClass- - business object being queried onformProps- - map of form propertiesunbounded- - indicates if the search should be unboundedusePrimaryKeyValuesOnly- - indicates if only primary key values should be used- Returns:
- Object returned from the search
- See Also:
-
findCollectionBySearchHelper
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Integer searchResultsLimit) Description copied from interface:LookupDaoRetrieves a collection of objects for the businessObjectClass based on the other information passed into the method.- Specified by:
findCollectionBySearchHelperin interfaceLookupDao- Parameters:
businessObjectClass- - business object being queried onformProps- - map of form propertiesunbounded- - indicates if the search should be unboundedusePrimaryKeyValuesOnly- - indicates if only primary key values should be usedsearchResultsLimit- - used to limit the number of items returned- Returns:
- Object returned from the search
- See Also:
-
findCountByMap
Description copied from interface:LookupDaoReturns a count of objects based on the given search parameters.- Specified by:
findCountByMapin interfaceLookupDao- Returns:
- Long returned from the search
- See Also:
-
findObjectByMap
Description copied from interface:LookupDaoRetrieves a Object based on the search criteria, which should uniquely identify a record.- Specified by:
findObjectByMapin interfaceLookupDao- Returns:
- Object returned from the search
-