org.kuali.rice.kns.dao
Interface LookupDao

All Known Implementing Classes:
LookupDaoJpa, LookupDaoOjb, LookupDaoProxy

public interface LookupDao

This interface defines basic methods that Lookup Dao's must provide


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
 Collection findCollectionBySearchHelper(Class example, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly)
           
 Collection findCollectionBySearchHelper(Class example, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly, Object additionalCriteria)
           
 Long findCountByMap(Object example, Map formProps)
          Returns a count of objects based on the given search parameters.
 Object findObjectByMap(Object example, Map formProps)
          Retrieves a Object based on the search criteria, which should uniquely identify a record.
 

Method Detail

findCollectionBySearchHelper

Collection findCollectionBySearchHelper(Class example,
                                        Map formProps,
                                        boolean unbounded,
                                        boolean usePrimaryKeyValuesOnly)

findCollectionBySearchHelper

Collection findCollectionBySearchHelper(Class example,
                                        Map formProps,
                                        boolean unbounded,
                                        boolean usePrimaryKeyValuesOnly,
                                        Object additionalCriteria)

findObjectByMap

Object findObjectByMap(Object example,
                       Map 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 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 © 2004-2011 The Kuali Foundation. All Rights Reserved.