org.kuali.rice.krad.dao.impl
Class LookupDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
              extended by org.kuali.rice.krad.dao.impl.LookupDaoOjb
All Implemented Interfaces:
PlatformAwareDao, LookupDao, org.springframework.beans.factory.InitializingBean

public class LookupDaoOjb
extends PlatformAwareDaoBaseOjb
implements LookupDao

OJB implementation of the LookupDao interface


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LookupDaoOjb()
           
 
Method Summary
protected  void addInactivateableFromToActiveCriteria(Object example, String activeSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues)
          Translates criteria for active status to criteria on the active from and to fields
protected  void addInactivateableFromToCurrentCriteria(Object example, String currentSearchValue, org.apache.ojb.broker.query.Criteria criteria, Map searchValues)
          Translates criteria for current status to criteria on the active from field
 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, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria, Map searchValues)
           
 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)
           
 Long findCountByMap(Object example, Map formProps)
          Find count of records meeting criteria based on the object and map.
<T> T
findObjectByMap(T example, Map<String,String> formProps)
          Retrieves a Object based on the search criteria, which should uniquely identify a record.
 org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMap(BusinessObject example, Map formProps)
          Builds up criteria object based on the object and map.
 org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass, Map formProps)
           
 void setDataDictionaryService(DataDictionaryService dataDictionaryService)
           
 void setDateTimeService(DateTimeService dateTimeService)
           
 void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
           
 
Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupDaoOjb

public LookupDaoOjb()
Method Detail

findCollectionBySearchHelper

public Collection findCollectionBySearchHelper(Class businessObjectClass,
                                               Map formProps,
                                               boolean unbounded,
                                               boolean usePrimaryKeyValuesOnly)
Specified by:
findCollectionBySearchHelper in interface LookupDao

getCollectionCriteriaFromMap

public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMap(BusinessObject example,
                                                                         Map formProps)
Builds up criteria object based on the object and map.


getCollectionCriteriaFromMapUsingPrimaryKeysOnly

public org.apache.ojb.broker.query.Criteria getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass,
                                                                                             Map formProps)

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

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

createCriteria

public boolean createCriteria(Object example,
                              String searchValue,
                              String propertyName,
                              boolean caseInsensitive,
                              boolean treatWildcardsAndOperatorsAsLiteral,
                              Object criteria,
                              Map searchValues)

findCountByMap

public Long findCountByMap(Object example,
                           Map formProps)
Find count of records meeting criteria based on the object and map.

Specified by:
findCountByMap in interface LookupDao
Returns:
Long returned from the search

findObjectByMap

public <T> T findObjectByMap(T example,
                             Map<String,String> 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)

addInactivateableFromToActiveCriteria

protected void addInactivateableFromToActiveCriteria(Object example,
                                                     String activeSearchValue,
                                                     org.apache.ojb.broker.query.Criteria criteria,
                                                     Map searchValues)
Translates criteria for active status to criteria on the active from and to fields

Parameters:
example - - business object being queried on
activeSearchValue - - value for the active search field, should convert to boolean
criteria - - Criteria object being built
searchValues - - Map containing all search keys and values

addInactivateableFromToCurrentCriteria

protected void addInactivateableFromToCurrentCriteria(Object example,
                                                      String currentSearchValue,
                                                      org.apache.ojb.broker.query.Criteria criteria,
                                                      Map searchValues)
Translates criteria for current status to criteria on the active from field

Parameters:
example - - business object being queried on
currentSearchValue - - value for the current search field, should convert to boolean
criteria - - Criteria object being built

setDateTimeService

public void setDateTimeService(DateTimeService dateTimeService)

setPersistenceStructureService

public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)

setDataDictionaryService

public void setDataDictionaryService(DataDictionaryService dataDictionaryService)


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