|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.dao.impl.LookupDaoJpa
public class LookupDaoJpa
This class is the JPA implementation of the LookupDao interface.
Constructor Summary | |
---|---|
LookupDaoJpa()
|
Method Summary | |
---|---|
protected void |
addInactivateableFromToActiveCriteria(Object example,
String activeSearchValue,
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,
Criteria criteria,
Map searchValues)
Translates criteria for current status to a sub-query on active begin date |
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)
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. |
Criteria |
getCollectionCriteriaFromMap(PersistableBusinessObject example,
Map formProps)
|
Criteria |
getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass,
Map formProps)
|
javax.persistence.EntityManager |
getEntityManager()
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setDateTimeService(DateTimeService dateTimeService)
|
void |
setEntityManager(javax.persistence.EntityManager entityManager)
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookupDaoJpa()
Method Detail |
---|
public Long findCountByMap(Object example, Map formProps)
LookupDao
findCountByMap
in interface LookupDao
public Collection findCollectionBySearchHelper(Class businessObjectClass, Map formProps, boolean unbounded, boolean usePrimaryKeyValuesOnly)
findCollectionBySearchHelper
in interface LookupDao
public Criteria getCollectionCriteriaFromMap(PersistableBusinessObject example, Map formProps)
public Criteria getCollectionCriteriaFromMapUsingPrimaryKeysOnly(Class businessObjectClass, Map formProps)
public boolean createCriteria(Object example, String searchValue, String propertyName, Object criteria)
LookupDao
createCriteria
in interface LookupDao
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria)
LookupDao
createCriteria
in interface LookupDao
public boolean createCriteria(Object example, String searchValue, String propertyName, boolean caseInsensitive, boolean treatWildcardsAndOperatorsAsLiteral, Object criteria, Map searchValues)
public Object findObjectByMap(Object example, Map formProps)
LookupDao
findObjectByMap
in interface LookupDao
LookupDao.findObjectByMap(java.lang.Object,
java.util.Map)
protected void addInactivateableFromToActiveCriteria(Object example, String activeSearchValue, Criteria criteria, Map searchValues)
example
- - business object being queried onactiveSearchValue
- - value for the active search field, should convert to booleancriteria
- - Criteria object being builtsearchValues
- - Map containing all search keys and valuesprotected void addInactivateableFromToCurrentCriteria(Object example, String currentSearchValue, Criteria criteria, Map searchValues)
example
- - business object being queried oncurrentSearchValue
- - value for the current search field, should convert to booleancriteria
- - Criteria object being builtpublic void setDateTimeService(DateTimeService dateTimeService)
dateTimeService
- the dateTimeService to setpublic javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the entityManager to setpublic void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |