Class DocumentTypeDAOJpa
java.lang.Object
org.kuali.rice.kew.doctype.dao.impl.DocumentTypeDAOJpa
- All Implemented Interfaces:
DocumentTypeDAO
JPA implementation of DocumentTypeDAo
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(DocumentType documentType, DocumentType docTypeParent, boolean climbHierarchy) Find Document Types by document type and parent nameFind all current document typesfindAllCurrentByName(String name) Find all current with namefindByName(String name) Find Document Type by name (case sensitive by default)findByName(String name, boolean caseSensitive) Find Document Type by namefindDocumentTypeByDocumentId(String documentId) Find Document Type by document idfindDocumentTypeIdByName(String documentTypeName) Find document type id by namefindDocumentTypeNameById(String documentTypeId) Find Document type name by idgetChildDocumentTypeIds(String parentDocumentTypeId) Get Child Document Type ids by parent idjavax.persistence.EntityManagergetMaxVersionNumber(String docTypeName) Get Max version number of document typevoidincrementOptimisticLock(String documentTypeId) Increments the optimstic locking version number for the document type with the given id.voidsetDataObjectService(DataObjectService dataObjectService) voidsetEntityManager(javax.persistence.EntityManager entityManager)
-
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
Description copied from interface:DocumentTypeDAOFind Document Type by name (case sensitive by default)- Specified by:
findByNamein interfaceDocumentTypeDAO- Returns:
- DocumentType or null
-
findByName
Description copied from interface:DocumentTypeDAOFind Document Type by name- Specified by:
findByNamein interfaceDocumentTypeDAO- Returns:
- DocumentType or null
-
getMaxVersionNumber
Description copied from interface:DocumentTypeDAOGet Max version number of document type- Specified by:
getMaxVersionNumberin interfaceDocumentTypeDAO- Returns:
- max version number
-
getChildDocumentTypeIds
Description copied from interface:DocumentTypeDAOGet Child Document Type ids by parent id- Specified by:
getChildDocumentTypeIdsin interfaceDocumentTypeDAO- Returns:
- List of child document type ids
-
find
public Collection<DocumentType> find(DocumentType documentType, DocumentType docTypeParent, boolean climbHierarchy) Description copied from interface:DocumentTypeDAOFind Document Types by document type and parent name- Specified by:
findin interfaceDocumentTypeDAO- Returns:
- Collection of matching document types
-
findAllCurrent
Description copied from interface:DocumentTypeDAOFind all current document types- Specified by:
findAllCurrentin interfaceDocumentTypeDAO- Returns:
- List of current DocumentTypes
-
findAllCurrentByName
Description copied from interface:DocumentTypeDAOFind all current with name- Specified by:
findAllCurrentByNamein interfaceDocumentTypeDAO- Returns:
- List of Document Type by name
-
findDocumentTypeIdByName
Description copied from interface:DocumentTypeDAOFind document type id by name- Specified by:
findDocumentTypeIdByNamein interfaceDocumentTypeDAO- Returns:
- document type id
-
findDocumentTypeNameById
Description copied from interface:DocumentTypeDAOFind Document type name by id- Specified by:
findDocumentTypeNameByIdin interfaceDocumentTypeDAO- Returns:
- document type name
-
findDocumentTypeByDocumentId
Description copied from interface:DocumentTypeDAOFind Document Type by document id- Specified by:
findDocumentTypeByDocumentIdin interfaceDocumentTypeDAO- Returns:
- DocumentType
-
incrementOptimisticLock
Description copied from interface:DocumentTypeDAOIncrements the optimstic locking version number for the document type with the given id.- Specified by:
incrementOptimisticLockin interfaceDocumentTypeDAO- Parameters:
documentTypeId- the id of the document type for which to increment the version number
-
getDataObjectService
-
setDataObjectService
-