org.kuali.rice.krad.dao.impl
Class DocumentDaoOjb
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
org.kuali.rice.krad.dao.impl.DocumentDaoOjb
- All Implemented Interfaces:
- PlatformAwareDao, DocumentDao, OjbCollectionAware, org.springframework.beans.factory.InitializingBean
public class DocumentDaoOjb
- extends PlatformAwareDaoBaseOjb
- implements DocumentDao, OjbCollectionAware
This class is the OJB implementation of the DocumentDao interface.
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
businessObjectDao
protected BusinessObjectDao businessObjectDao
documentAdHocService
protected DocumentAdHocService documentAdHocService
DocumentDaoOjb
public DocumentDaoOjb(BusinessObjectDao businessObjectDao,
DocumentAdHocService documentAdHocService)
save
public <T extends Document> T save(T document)
throws org.springframework.dao.DataAccessException
- Specified by:
save
in interface DocumentDao
- Throws:
org.springframework.dao.DataAccessException
- See Also:
org.kuali.dao.DocumentDao#save(null)
findByDocumentHeaderId
public <T extends Document> T findByDocumentHeaderId(Class<T> clazz,
String id)
- Retrieve a Document of a specific type with a given document header ID.
- Specified by:
findByDocumentHeaderId
in interface DocumentDao
- Parameters:
clazz
- id
-
- Returns:
- Document with given id
findByDocumentHeaderIds
public <T extends Document> List<T> findByDocumentHeaderIds(Class<T> clazz,
List<String> idList)
- Retrieve a List of Document instances with the given ids
- Specified by:
findByDocumentHeaderIds
in interface DocumentDao
- Parameters:
clazz
- idList
-
- Returns:
- List
getBusinessObjectDao
public BusinessObjectDao getBusinessObjectDao()
- Returns the
BusinessObjectDao
- Specified by:
getBusinessObjectDao
in interface DocumentDao
- Returns:
- the
BusinessObjectDao
- See Also:
DocumentDao.getBusinessObjectDao()
setBusinessObjectDao
public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
- Sets the
BusinessObjectDao
- Parameters:
businessObjectDao
- ths BusinessObjectDao
getDocumentAdHocService
public DocumentAdHocService getDocumentAdHocService()
- Specified by:
getDocumentAdHocService
in interface DocumentDao
- Returns:
- the documentAdHocService
setDocumentAdHocService
public void setDocumentAdHocService(DocumentAdHocService dahs)
- Setter for injecting the DocumentAdHocService
- Parameters:
dahs
-
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.