public class HibDocumentNodeDaoImpl extends com.jamasoftware.contour.data.ContourHibernateDaoSupport implements DocumentNodeDao
DocumentNodeDao
Constructor and Description |
---|
HibDocumentNodeDaoImpl() |
distinctResults, doWithQuery, findQueryStringParams, findQueryStringParams, findQueryStringParamsWithSingleList, findQueryStringParamsWithTwoLists, getCount, getDomainObject, getDomainObjects, getDomainObjects, getMaxInCollectionSize, setMaxInCollectionSize, setParameterMapOnQuery, uniqueResult
public DocumentNode getDocumentNode(Integer documentNodeId)
DocumentNodeDao
DocumentNode
by its idgetDocumentNode
in interface DocumentNodeDao
documentNodeId
- The id of a nodepublic DocumentNode getDocumentNode(Integer scope, Integer refId)
DocumentNodeDao
DocumentNode
by scope/ref.getDocumentNode
in interface DocumentNodeDao
scope
- The scoperefId
- The referenced idpublic List<DocumentNode> getDocumentNodesByIds(Collection<Integer> ids)
getDocumentNodesByIds
in interface DocumentNodeDao
public DocumentNode getDocumentNodeForBaseLine(Integer scope, Integer refId, Integer baseLineId)
DocumentNodeDao
DocumentNode
by scope/ref for a BaseLine
.getDocumentNodeForBaseLine
in interface DocumentNodeDao
scope
- The scoperefId
- The referenced idbaseLineId
- An id of a baselinepublic List<DocumentNode> getRootBaseLineNodes(Integer baseLineId)
DocumentNodeDao
getRootBaseLineNodes
in interface DocumentNodeDao
baseLineId
- The id of a BaseLine
public void saveDocumentNode(DocumentNode node)
DocumentNodeDao
DocumentNode
saveDocumentNode
in interface DocumentNodeDao
node
- The node to save (will be assigned an id)public void deleteDocumentNode(DocumentNode node)
DocumentNodeDao
DocumentNode
deleteDocumentNode
in interface DocumentNodeDao
node
- The node to deletepublic Integer getDocumentNodeId(Integer scope, Integer refId)
DocumentNodeDao
getDocumentNodeId
in interface DocumentNodeDao
scope
- The scoperefId
- The referenced idpublic List<DocumentNode> repointBaselinedNodes(Version version)
DocumentNodeDao
repointBaselinedNodes
in interface DocumentNodeDao
version
- The version to update DocumentNode
pointers forpublic List<Integer> getAllBaselineDocumentNodeIds(List<Integer> baselineIds)
getAllBaselineDocumentNodeIds
in interface DocumentNodeDao
public DocumentNode getOrCreateProjectNode(Integer projectId)
getOrCreateProjectNode
in interface DocumentNodeDao
public Iterable<DocumentNode> getAllChildrenWithParentIds(Collection<Integer> allParentIds)
getAllChildrenWithParentIds
in interface DocumentNodeDao
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.