org.kuali.rice.kew.routeheader.dao.impl
Class DocumentRouteHeaderDAOJpaImpl

java.lang.Object
  extended by org.kuali.rice.kew.routeheader.dao.impl.DocumentRouteHeaderDAOJpaImpl
All Implemented Interfaces:
DocumentRouteHeaderDAO

public class DocumentRouteHeaderDAOJpaImpl
extends Object
implements DocumentRouteHeaderDAO


Constructor Summary
DocumentRouteHeaderDAOJpaImpl()
           
 
Method Summary
 void clearRouteHeaderSearchValues(Long routeHeaderId)
           
 void deleteRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 Collection findByDocTypeAndAppId(String documentTypeName, String appId)
           
 Collection findPendingByResponsibilityIds(Set responsibilityIds)
           
 DocumentRouteHeaderValue findRouteHeader(Long routeHeaderId)
           
 DocumentRouteHeaderValue findRouteHeader(Long routeHeaderId, boolean clearCache)
           
 Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<Long> routeHeaderIds)
           
 Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<Long> routeHeaderIds, boolean clearCache)
           
 String getAppDocId(Long documentId)
           
 DocumentRouteHeaderValueContent getContent(Long routeHeaderId)
           
 String getDocumentStatus(Long documentId)
           
 javax.persistence.EntityManager getEntityManager()
           
 Long getNextRouteHeaderId()
           
protected  DatabasePlatform getPlatform()
           
 String getServiceNamespaceByDocumentId(Long documentId)
           
 boolean hasSearchableAttributeValue(Long documentId, String searchableAttributeKey, String searchableAttributeValue)
           
 void lockRouteHeader(Long routeHeaderId, boolean wait)
          "Locks" the route header at the datasource level.
 void save(SearchableAttributeValue searchableAttributeValue)
           
 void saveRouteHeader(DocumentRouteHeaderValue routeHeader)
           
 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

DocumentRouteHeaderDAOJpaImpl

public DocumentRouteHeaderDAOJpaImpl()
Method Detail

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

saveRouteHeader

public void saveRouteHeader(DocumentRouteHeaderValue routeHeader)
Specified by:
saveRouteHeader in interface DocumentRouteHeaderDAO

getContent

public DocumentRouteHeaderValueContent getContent(Long routeHeaderId)
Specified by:
getContent in interface DocumentRouteHeaderDAO

clearRouteHeaderSearchValues

public void clearRouteHeaderSearchValues(Long routeHeaderId)
Specified by:
clearRouteHeaderSearchValues in interface DocumentRouteHeaderDAO

lockRouteHeader

public void lockRouteHeader(Long routeHeaderId,
                            boolean wait)
Description copied from interface: DocumentRouteHeaderDAO
"Locks" the route header at the datasource level.

Specified by:
lockRouteHeader in interface DocumentRouteHeaderDAO

findRouteHeader

public DocumentRouteHeaderValue findRouteHeader(Long routeHeaderId)
Specified by:
findRouteHeader in interface DocumentRouteHeaderDAO

findRouteHeader

public DocumentRouteHeaderValue findRouteHeader(Long routeHeaderId,
                                                boolean clearCache)
Specified by:
findRouteHeader in interface DocumentRouteHeaderDAO

findRouteHeaders

public Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<Long> routeHeaderIds)
Specified by:
findRouteHeaders in interface DocumentRouteHeaderDAO

findRouteHeaders

public Collection<DocumentRouteHeaderValue> findRouteHeaders(Collection<Long> routeHeaderIds,
                                                             boolean clearCache)
Specified by:
findRouteHeaders in interface DocumentRouteHeaderDAO

deleteRouteHeader

public void deleteRouteHeader(DocumentRouteHeaderValue routeHeader)
Specified by:
deleteRouteHeader in interface DocumentRouteHeaderDAO

getNextRouteHeaderId

public Long getNextRouteHeaderId()
Specified by:
getNextRouteHeaderId in interface DocumentRouteHeaderDAO

getPlatform

protected DatabasePlatform getPlatform()

findPendingByResponsibilityIds

public Collection findPendingByResponsibilityIds(Set responsibilityIds)
Specified by:
findPendingByResponsibilityIds in interface DocumentRouteHeaderDAO

hasSearchableAttributeValue

public boolean hasSearchableAttributeValue(Long documentId,
                                           String searchableAttributeKey,
                                           String searchableAttributeValue)
Specified by:
hasSearchableAttributeValue in interface DocumentRouteHeaderDAO

getServiceNamespaceByDocumentId

public String getServiceNamespaceByDocumentId(Long documentId)
Specified by:
getServiceNamespaceByDocumentId in interface DocumentRouteHeaderDAO

getDocumentStatus

public String getDocumentStatus(Long documentId)
Specified by:
getDocumentStatus in interface DocumentRouteHeaderDAO

getAppDocId

public String getAppDocId(Long documentId)
Specified by:
getAppDocId in interface DocumentRouteHeaderDAO

save

public void save(SearchableAttributeValue searchableAttributeValue)
Specified by:
save in interface DocumentRouteHeaderDAO

findByDocTypeAndAppId

public Collection findByDocTypeAndAppId(String documentTypeName,
                                        String appId)
Specified by:
findByDocTypeAndAppId in interface DocumentRouteHeaderDAO


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