public class DocumentTypeDAOJpa extends Object implements DocumentTypeDAO
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
DocumentTypeDAOJpa() |
| Modifier and Type | Method and Description |
|---|---|
Collection<DocumentType> |
find(DocumentType documentType,
DocumentType docTypeParent,
boolean climbHierarchy)
Find Document Types by document type and parent name
|
List<DocumentType> |
findAllCurrent()
Find all current document types
|
List<DocumentType> |
findAllCurrentByName(String name)
Find all current with name
|
DocumentType |
findByName(String name)
Find Document Type by name (case sensitive by default)
|
DocumentType |
findByName(String name,
boolean caseSensitive)
Find Document Type by name
|
DocumentType |
findDocumentTypeByDocumentId(String documentId)
Find Document Type by document id
|
String |
findDocumentTypeIdByName(String documentTypeName)
Find document type id by name
|
String |
findDocumentTypeNameById(String documentTypeId)
Find Document type name by id
|
String |
findParentNameByName(String documentTypeName) |
List<String> |
getChildDocumentTypeIds(String parentDocumentTypeId)
Get Child Document Type ids by parent id
|
DataObjectService |
getDataObjectService() |
javax.persistence.EntityManager |
getEntityManager() |
Integer |
getMaxVersionNumber(String docTypeName)
Get Max version number of document type
|
void |
incrementOptimisticLock(String documentTypeId)
Increments the optimstic locking version number for the document type with the given id.
|
void |
setDataObjectService(DataObjectService dataObjectService) |
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public static final org.apache.log4j.Logger LOG
public DocumentTypeDAOJpa()
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager - the entityManager to setpublic DocumentType findByName(String name)
DocumentTypeDAOfindByName in interface DocumentTypeDAOpublic DocumentType findByName(String name, boolean caseSensitive)
DocumentTypeDAOfindByName in interface DocumentTypeDAOpublic Integer getMaxVersionNumber(String docTypeName)
DocumentTypeDAOgetMaxVersionNumber in interface DocumentTypeDAOpublic List<String> getChildDocumentTypeIds(String parentDocumentTypeId)
DocumentTypeDAOgetChildDocumentTypeIds in interface DocumentTypeDAOpublic Collection<DocumentType> find(DocumentType documentType, DocumentType docTypeParent, boolean climbHierarchy)
DocumentTypeDAOfind in interface DocumentTypeDAOpublic List<DocumentType> findAllCurrent()
DocumentTypeDAOfindAllCurrent in interface DocumentTypeDAOpublic List<DocumentType> findAllCurrentByName(String name)
DocumentTypeDAOfindAllCurrentByName in interface DocumentTypeDAOpublic String findDocumentTypeIdByName(String documentTypeName)
DocumentTypeDAOfindDocumentTypeIdByName in interface DocumentTypeDAOpublic String findDocumentTypeNameById(String documentTypeId)
DocumentTypeDAOfindDocumentTypeNameById in interface DocumentTypeDAOpublic DocumentType findDocumentTypeByDocumentId(String documentId)
DocumentTypeDAOfindDocumentTypeByDocumentId in interface DocumentTypeDAOpublic void incrementOptimisticLock(String documentTypeId)
DocumentTypeDAOincrementOptimisticLock in interface DocumentTypeDAOdocumentTypeId - the id of the document type for which to increment the version numberpublic String findParentNameByName(String documentTypeName)
findParentNameByName in interface DocumentTypeDAOpublic DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2017 The Kuali Foundation. All rights reserved.