public class DocumentDaoJpa extends Object implements DocumentDao
Constructor and Description |
---|
DocumentDaoJpa(javax.persistence.EntityManager entityManager,
BusinessObjectDao businessObjectDao,
DocumentAdHocService documentAdHocService) |
Modifier and Type | Method and Description |
---|---|
<T extends Document> |
findByDocumentHeaderId(Class<T> clazz,
String id)
Retrieve a Document of a specific type with a given document header ID.
|
<T extends Document> |
findByDocumentHeaderIds(Class<T> clazz,
List<String> idList)
Retrieve a List of Document instances with the given ids
|
BusinessObjectDao |
getBusinessObjectDao() |
DocumentAdHocService |
getDocumentAdHocService() |
javax.persistence.EntityManager |
getEntityManager() |
<T extends Document> |
save(T document) |
void |
setBusinessObjectDao(BusinessObjectDao businessObjectDao) |
void |
setDocumentAdHocService(DocumentAdHocService dahs)
Setter for injecting the DocumentAdHocService
|
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public DocumentDaoJpa(javax.persistence.EntityManager entityManager, BusinessObjectDao businessObjectDao, DocumentAdHocService documentAdHocService)
public <T extends Document> T save(T document) throws org.springframework.dao.DataAccessException
save
in interface DocumentDao
org.springframework.dao.DataAccessException
org.kuali.dao.DocumentDao#save(null)
public <T extends Document> T findByDocumentHeaderId(Class<T> clazz, String id)
findByDocumentHeaderId
in interface DocumentDao
clazz
- id
- public <T extends Document> List<T> findByDocumentHeaderIds(Class<T> clazz, List<String> idList)
findByDocumentHeaderIds
in interface DocumentDao
clazz
- idList
- public BusinessObjectDao getBusinessObjectDao()
getBusinessObjectDao
in interface DocumentDao
public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the entityManager to setpublic DocumentAdHocService getDocumentAdHocService()
getDocumentAdHocService
in interface DocumentDao
public void setDocumentAdHocService(DocumentAdHocService dahs)
dahs
- Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.