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

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.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.


Field Summary
protected  BusinessObjectDao businessObjectDao
           
protected  DocumentAdHocService documentAdHocService
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DocumentDaoOjb(BusinessObjectDao businessObjectDao, DocumentAdHocService documentAdHocService)
           
 
Method Summary
<T extends Document>
T
findByDocumentHeaderId(Class<T> clazz, String id)
          Retrieve a Document of a specific type with a given document header ID.
<T extends Document>
List<T>
findByDocumentHeaderIds(Class<T> clazz, List<String> idList)
          Retrieve a List of Document instances with the given ids
 BusinessObjectDao getBusinessObjectDao()
          Returns the BusinessObjectDao
 DocumentAdHocService getDocumentAdHocService()
           
<T extends Document>
T
save(T document)
           
 void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
          Sets the BusinessObjectDao
 void setDocumentAdHocService(DocumentAdHocService dahs)
          Setter for injecting the DocumentAdHocService
 
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
 
Methods inherited from interface org.kuali.rice.krad.util.OjbCollectionAware
getPersistenceBrokerTemplate
 

Field Detail

businessObjectDao

protected BusinessObjectDao businessObjectDao

documentAdHocService

protected DocumentAdHocService documentAdHocService
Constructor Detail

DocumentDaoOjb

public DocumentDaoOjb(BusinessObjectDao businessObjectDao,
                      DocumentAdHocService documentAdHocService)
Method Detail

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.