org.kuali.rice.krad.dao.proxy
Class LookupDaoProxy

java.lang.Object
  extended by org.kuali.rice.krad.dao.proxy.LookupDaoProxy
All Implemented Interfaces:
LookupDao

@Transactional
public class LookupDaoProxy
extends Object
implements LookupDao


Constructor Summary
LookupDaoProxy()
           
 
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 businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly)
          Since 2.3 This version of findCollectionBySearchHelper is needed for version compatibility.
 Collection 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.
 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.
 void setLookupDaoJpa(LookupDao lookupDaoJpa)
           
 void setLookupDaoOjb(LookupDao lookupDaoOjb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupDaoProxy

public LookupDaoProxy()
Method Detail

setLookupDaoJpa

public void setLookupDaoJpa(LookupDao lookupDaoJpa)

setLookupDaoOjb

public void setLookupDaoOjb(LookupDao lookupDaoOjb)

createCriteria

public boolean createCriteria(Object example,
                              String searchValue,
                              String propertyName,
                              Object criteria)
Description copied from interface: LookupDao
Create OJB criteria based on business object, search field and value

Specified by:
createCriteria in interface LookupDao
Returns:
true if the criteria is created successfully; otherwise, return false
See Also:
LookupDao.createCriteria(java.lang.Object, java.lang.String, java.lang.String, java.lang.Object)

createCriteria

public boolean createCriteria(Object example,
                              String searchValue,
                              String propertyName,
                              boolean caseInsensitive,
                              boolean treatWildcardsAndOperatorsAsLiteral,
                              Object criteria)
Description copied from interface: LookupDao
Create OJB criteria based on business object, search field and value

Specified by:
createCriteria in interface LookupDao
Returns:
true if the criteria is created successfully; otherwise, return false
See Also:
org.kuali.rice.krad.dao.LookupDao#createCriteria(java.lang.Object, java.lang.String, java.lang.String, boolean, java.lang.Object)

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:
findCollectionBySearchHelper in interface LookupDao
Parameters:
businessObjectClass - - business object being queried on
formProps - - map of form properties
unbounded - - indicates if the search should be unbounded
usePrimaryKeyValuesOnly - - indicates if only primary key values should be used
Returns:
Object returned from the search
See Also:
LookupDao.findCollectionBySearchHelper(java.lang.Class, java.util.Map, boolean, boolean)

findCollectionBySearchHelper

public Collection findCollectionBySearchHelper(Class businessObjectClass,
                                               Map formProps,
                                               boolean unbounded,
                                               boolean usePrimaryKeyValuesOnly,
                                               Integer searchResultsLimit)
Description copied from interface: LookupDao
Retrieves a collection of objects for the businessObjectClass based on the other information passed into the method.

Specified by:
findCollectionBySearchHelper in interface LookupDao
Parameters:
businessObjectClass - - business object being queried on
formProps - - map of form properties
unbounded - - indicates if the search should be unbounded
usePrimaryKeyValuesOnly - - indicates if only primary key values should be used
searchResultsLimit - - used to limit the number of items returned
Returns:
Object returned from the search
See Also:
LookupDao.findCollectionBySearchHelper(java.lang.Class, java.util.Map, boolean, boolean, Integer)

findCountByMap

public Long findCountByMap(Object example,
                           Map formProps)
Description copied from interface: LookupDao
Returns a count of objects based on the given search parameters.

Specified by:
findCountByMap in interface LookupDao
Returns:
Long returned from the search
See Also:
LookupDao.findCountByMap(java.lang.Object, java.util.Map)

findObjectByMap

public Object findObjectByMap(Object example,
                              Map formProps)
Description copied from interface: LookupDao
Retrieves a Object based on the search criteria, which should uniquely identify a record.

Specified by:
findObjectByMap in interface LookupDao
Returns:
Object returned from the search
See Also:
LookupDao.findObjectByMap(java.lang.Object, java.util.Map)


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