org.kuali.rice.krad.dao
Interface LookupDao

All Known Implementing Classes:
LookupDaoJpa, LookupDaoOjb, LookupDaoProxy

public interface LookupDao

Defines basic methods that Lookup Dao's must provide

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria)
          Create OJB criteria based on business object, search field and value
 boolean createCriteria(Object example, String searchValue, String propertyName, Object criteria)
          Create OJB criteria based on business object, search field and value
<T> Collection<T>
findCollectionBySearchHelper(Class<T> example, Map<String,String> formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly)
           
 Long findCountByMap(Object example, Map<String,String> formProps)
          Returns a count of objects based on the given search parameters.
<T> T
findObjectByMap(T example, Map<String,String> formProps)
          Retrieves a Object based on the search criteria, which should uniquely identify a record.
 

Method Detail

findCollectionBySearchHelper

<T> Collection<T> findCollectionBySearchHelper(Class<T> example,
                                               Map<String,String> formProps,
                                               boolean unbounded,
                                               boolean usePrimaryKeyValuesOnly)

findObjectByMap

<T> T findObjectByMap(T example,
                      Map<String,String> formProps)
Retrieves a Object based on the search criteria, which should uniquely identify a record.

Returns:
Object returned from the search

findCountByMap

Long findCountByMap(Object example,
                    Map<String,String> formProps)
Returns a count of objects based on the given search parameters.

Returns:
Long returned from the search

createCriteria

boolean createCriteria(Object example,
                       String searchValue,
                       String propertyName,
                       Object criteria)
Create OJB criteria based on business object, search field and value

Returns:
true if the criteria is created successfully; otherwise, return false

createCriteria

boolean createCriteria(Object example,
                       String searchValue,
                       String propertyName,
                       boolean caseInsensitive,
                       boolean treatWildcardsAndOperatorsAsLiteral,
                       Object criteria)
Create OJB criteria based on business object, search field and value

Returns:
true if the criteria is created successfully; otherwise, return false


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.