| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.dao.impl.DocumentDaoJpa
public class DocumentDaoJpa
This class is the OJB implementation of the DocumentDao interface.
| Constructor Summary | |
|---|---|
| DocumentDaoJpa(javax.persistence.EntityManager entityManager,
                             BusinessObjectDao businessObjectDao,
                             DocumentAdHocService documentAdHocService) | |
| Method Summary | ||
|---|---|---|
| 
 | findByDocumentHeaderId(Class<T> clazz,
                                             String id)Retrieve a Document of a specific type with a given document header ID. | |
| 
 | 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() | |
| 
 | save(T document) | |
|  void | setBusinessObjectDao(BusinessObjectDao businessObjectDao) | |
|  void | setDocumentAdHocService(DocumentAdHocService dahs)Setter for injecting the DocumentAdHocService | |
|  void | setEntityManager(javax.persistence.EntityManager entityManager) | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DocumentDaoJpa(javax.persistence.EntityManager entityManager,
                      BusinessObjectDao businessObjectDao,
                      DocumentAdHocService documentAdHocService)
| Method Detail | 
|---|
public <T extends Document> T save(T document)
                        throws org.springframework.dao.DataAccessException
save in interface DocumentDaoorg.springframework.dao.DataAccessExceptionorg.kuali.dao.DocumentDao#save(null)
public <T extends Document> T findByDocumentHeaderId(Class<T> clazz,
                                                     String id)
findByDocumentHeaderId in interface DocumentDaoclazz - id - 
public <T extends Document> List<T> findByDocumentHeaderIds(Class<T> clazz,
                                                            List<String> idList)
findByDocumentHeaderIds in interface DocumentDaoclazz - idList - 
public BusinessObjectDao getBusinessObjectDao()
getBusinessObjectDao in interface DocumentDaopublic 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 DocumentDaopublic void setDocumentAdHocService(DocumentAdHocService dahs)
dahs - | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||