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

java.lang.Object
  extended by org.kuali.rice.krad.dao.impl.DocumentDaoJpa
All Implemented Interfaces:
DocumentDao

public class DocumentDaoJpa
extends Object
implements DocumentDao

This class is the OJB implementation of the DocumentDao interface.


Constructor Summary
DocumentDaoJpa(javax.persistence.EntityManager entityManager, 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()
           
 DocumentAdHocService getDocumentAdHocService()
           
 javax.persistence.EntityManager getEntityManager()
           
<T extends Document>
T
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

DocumentDaoJpa

public DocumentDaoJpa(javax.persistence.EntityManager entityManager,
                      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()
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 © 2005-2012 The Kuali Foundation. All Rights Reserved.