Class DocumentTypeDAOJpa

java.lang.Object
org.kuali.rice.kew.doctype.dao.impl.DocumentTypeDAOJpa
All Implemented Interfaces:
DocumentTypeDAO

public class DocumentTypeDAOJpa extends Object implements DocumentTypeDAO
JPA implementation of DocumentTypeDAo
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • LOG

      public static final org.apache.logging.log4j.Logger LOG
  • Constructor Details

    • DocumentTypeDAOJpa

      public DocumentTypeDAOJpa()
  • Method Details

    • getEntityManager

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

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

      public DocumentType findByName(String name)
      Description copied from interface: DocumentTypeDAO
      Find Document Type by name (case sensitive by default)
      Specified by:
      findByName in interface DocumentTypeDAO
      Parameters:
      name -
      Returns:
      DocumentType or null
    • findByName

      public DocumentType findByName(String name, boolean caseSensitive)
      Description copied from interface: DocumentTypeDAO
      Find Document Type by name
      Specified by:
      findByName in interface DocumentTypeDAO
      Parameters:
      name -
      caseSensitive -
      Returns:
      DocumentType or null
    • getMaxVersionNumber

      public Integer getMaxVersionNumber(String docTypeName)
      Description copied from interface: DocumentTypeDAO
      Get Max version number of document type
      Specified by:
      getMaxVersionNumber in interface DocumentTypeDAO
      Parameters:
      docTypeName -
      Returns:
      max version number
    • getChildDocumentTypeIds

      public List<String> getChildDocumentTypeIds(String parentDocumentTypeId)
      Description copied from interface: DocumentTypeDAO
      Get Child Document Type ids by parent id
      Specified by:
      getChildDocumentTypeIds in interface DocumentTypeDAO
      Parameters:
      parentDocumentTypeId -
      Returns:
      List of child document type ids
    • find

      public Collection<DocumentType> find(DocumentType documentType, DocumentType docTypeParent, boolean climbHierarchy)
      Description copied from interface: DocumentTypeDAO
      Find Document Types by document type and parent name
      Specified by:
      find in interface DocumentTypeDAO
      Parameters:
      documentType -
      docTypeParent -
      climbHierarchy -
      Returns:
      Collection of matching document types
    • findAllCurrent

      public List<DocumentType> findAllCurrent()
      Description copied from interface: DocumentTypeDAO
      Find all current document types
      Specified by:
      findAllCurrent in interface DocumentTypeDAO
      Returns:
      List of current DocumentTypes
    • findAllCurrentByName

      public List<DocumentType> findAllCurrentByName(String name)
      Description copied from interface: DocumentTypeDAO
      Find all current with name
      Specified by:
      findAllCurrentByName in interface DocumentTypeDAO
      Parameters:
      name -
      Returns:
      List of Document Type by name
    • findDocumentTypeIdByName

      public String findDocumentTypeIdByName(String documentTypeName)
      Description copied from interface: DocumentTypeDAO
      Find document type id by name
      Specified by:
      findDocumentTypeIdByName in interface DocumentTypeDAO
      Parameters:
      documentTypeName -
      Returns:
      document type id
    • findDocumentTypeNameById

      public String findDocumentTypeNameById(String documentTypeId)
      Description copied from interface: DocumentTypeDAO
      Find Document type name by id
      Specified by:
      findDocumentTypeNameById in interface DocumentTypeDAO
      Parameters:
      documentTypeId -
      Returns:
      document type name
    • findDocumentTypeByDocumentId

      public DocumentType findDocumentTypeByDocumentId(String documentId)
      Description copied from interface: DocumentTypeDAO
      Find Document Type by document id
      Specified by:
      findDocumentTypeByDocumentId in interface DocumentTypeDAO
      Parameters:
      documentId -
      Returns:
      DocumentType
    • incrementOptimisticLock

      public void incrementOptimisticLock(String documentTypeId)
      Description copied from interface: DocumentTypeDAO
      Increments the optimstic locking version number for the document type with the given id.
      Specified by:
      incrementOptimisticLock in interface DocumentTypeDAO
      Parameters:
      documentTypeId - the id of the document type for which to increment the version number
    • getDataObjectService

      public org.kuali.rice.krad.data.DataObjectService getDataObjectService()
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)