Package org.kuali.rice.kew.doctype.dao
Interface DocumentTypeDAO
- All Known Implementing Classes:
DocumentTypeDAOJpa
public interface DocumentTypeDAO
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionfind(DocumentType documentType, DocumentType docTypeParentName, 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 idgetMaxVersionNumber(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.
-
Method Details
-
findByName
Find Document Type by name (case sensitive by default)- Parameters:
name-- Returns:
- DocumentType or null
-
findByName
Find Document Type by name- Parameters:
name-caseSensitive-- Returns:
- DocumentType or null
-
find
Collection<DocumentType> find(DocumentType documentType, DocumentType docTypeParentName, boolean climbHierarchy) Find Document Types by document type and parent name- Parameters:
documentType-docTypeParentName-climbHierarchy-- Returns:
- Collection of matching document types
-
getMaxVersionNumber
Get Max version number of document type- Parameters:
docTypeName-- Returns:
- max version number
-
findAllCurrent
List findAllCurrent()Find all current document types- Returns:
- List of current DocumentTypes
-
findAllCurrentByName
Find all current with name- Parameters:
name-- Returns:
- List of Document Type by name
-
getChildDocumentTypeIds
Get Child Document Type ids by parent id- Parameters:
parentDocumentTypeId-- Returns:
- List of child document type ids
-
findDocumentTypeIdByName
Find document type id by name- Parameters:
documentTypeName-- Returns:
- document type id
-
findDocumentTypeNameById
Find Document type name by id- Parameters:
documentTypeId-- Returns:
- document type name
-
findDocumentTypeByDocumentId
Find Document Type by document id- Parameters:
documentId-- Returns:
- DocumentType
-
incrementOptimisticLock
Increments the optimstic locking version number for the document type with the given id.- Parameters:
documentTypeId- the id of the document type for which to increment the version number
-