org.kuali.rice.kew.documentlink.dao.impl
Class DocumentLinkDAOJpaImpl

java.lang.Object
  extended by org.kuali.rice.kew.documentlink.dao.impl.DocumentLinkDAOJpaImpl
All Implemented Interfaces:
DocumentLinkDAO

public class DocumentLinkDAOJpaImpl
extends Object
implements DocumentLinkDAO

This is a description of what this class does - g1zhang don't forget to fill this in.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
DocumentLinkDAOJpaImpl()
           
 
Method Summary
 void deleteDocmentLinksByDocId(String docId)
          double delete all links from orgn doc
 void deleteDocumentLink(DocumentLink link)
          double delete a link
 DocumentLink getDocumentLink(Long documentLinkId)
           
 javax.persistence.EntityManager getEntityManager()
           
 DocumentLink getLinkedDocument(DocumentLink link)
          get a link from orgn doc
 List<DocumentLink> getLinkedDocumentsByDocId(String docId)
          get all links from orgn doc
 List<DocumentLink> getOutgoingLinkedDocumentsByDocId(String docId)
           
 void saveDocumentLink(DocumentLink link)
          add double link
 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

DocumentLinkDAOJpaImpl

public DocumentLinkDAOJpaImpl()
Method Detail

getEntityManager

public javax.persistence.EntityManager getEntityManager()

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)

deleteDocmentLinksByDocId

public void deleteDocmentLinksByDocId(String docId)
double delete all links from orgn doc

Specified by:
deleteDocmentLinksByDocId in interface DocumentLinkDAO
See Also:
org.kuali.rice.kew.documentlink.dao.DocumentLinkDAO#deleteDocmentLinksByDocId(java.lang.Long)

deleteDocumentLink

public void deleteDocumentLink(DocumentLink link)
double delete a link

Specified by:
deleteDocumentLink in interface DocumentLinkDAO
See Also:
DocumentLinkDAO.deleteDocumentLink(org.kuali.rice.kew.documentlink.DocumentLink)

getLinkedDocument

public DocumentLink getLinkedDocument(DocumentLink link)
get a link from orgn doc

Specified by:
getLinkedDocument in interface DocumentLinkDAO
See Also:
DocumentLinkDAO.getLinkedDocument(org.kuali.rice.kew.documentlink.DocumentLink)

getLinkedDocumentsByDocId

public List<DocumentLink> getLinkedDocumentsByDocId(String docId)
get all links from orgn doc

Specified by:
getLinkedDocumentsByDocId in interface DocumentLinkDAO
See Also:
org.kuali.rice.kew.documentlink.dao.DocumentLinkDAO#getLinkedDocumentsByDocId(java.lang.Long)

getOutgoingLinkedDocumentsByDocId

public List<DocumentLink> getOutgoingLinkedDocumentsByDocId(String docId)
Specified by:
getOutgoingLinkedDocumentsByDocId in interface DocumentLinkDAO

saveDocumentLink

public void saveDocumentLink(DocumentLink link)
add double link

Specified by:
saveDocumentLink in interface DocumentLinkDAO
See Also:
DocumentLinkDAO.saveDocumentLink(org.kuali.rice.kew.documentlink.DocumentLink)

getDocumentLink

public DocumentLink getDocumentLink(Long documentLinkId)
Specified by:
getDocumentLink in interface DocumentLinkDAO


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.