org.kuali.rice.kns.dao.impl
Class DocumentDaoJpa
java.lang.Object
org.kuali.rice.kns.dao.impl.DocumentDaoJpa
- All Implemented Interfaces:
- DocumentDao
public class DocumentDaoJpa
- extends Object
- implements DocumentDao
This class is the OJB implementation of the DocumentDao interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
businessObjectDao
private BusinessObjectDao businessObjectDao
documentAdHocService
private DocumentAdHocService documentAdHocService
entityManager
private javax.persistence.EntityManager entityManager
DocumentDaoJpa
public DocumentDaoJpa(javax.persistence.EntityManager entityManager,
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()
- Specified by:
getBusinessObjectDao
in interface DocumentDao
setBusinessObjectDao
public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
getEntityManager
public javax.persistence.EntityManager getEntityManager()
- Returns:
- the entityManager
setEntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager)
- Parameters:
entityManager
- the entityManager to set
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 © 2004-2011 The Kuali Foundation. All Rights Reserved.