public class HibRelationshipDaoImpl extends com.jamasoftware.contour.data.ContourHibernateDaoSupport implements RelationshipDao
Constructor and Description |
---|
HibRelationshipDaoImpl() |
distinctResults, doWithQuery, findQueryStringParams, findQueryStringParams, findQueryStringParamsWithSingleList, findQueryStringParamsWithTwoLists, getCount, getDomainObject, getDomainObjects, getDomainObjects, getMaxInCollectionSize, setMaxInCollectionSize, setParameterMapOnQuery, uniqueResult
public List<Document_Document> getRelationshipList(Filter filter)
getRelationshipList
in interface RelationshipDao
public long getRelationshipCount(Filter filter)
getRelationshipCount
in interface RelationshipDao
public int getExternalRelationshipCountForProject(Integer projectId)
getExternalRelationshipCountForProject
in interface RelationshipDao
public List<Document_Document> batchUpdateRelationships(Filter fieldChangeFilter, List<Document_Document> relationships)
batchUpdateRelationships
in interface RelationshipDao
public void batchDeleteRelationships(List<Document_Document> relationships)
batchDeleteRelationships
in interface RelationshipDao
public List<Document_Document> getDocumentListWithSuspectLinks(Integer projectId)
getDocumentListWithSuspectLinks
in interface RelationshipDao
public void saveRelationships(List<Document_Document> associatedDocuments)
saveRelationships
in interface RelationshipDao
public void saveRelationship(Document_Document dtod)
saveRelationship
in interface RelationshipDao
public void removeRelationship(Document_Document dtod)
removeRelationship
in interface RelationshipDao
public Document_Document getRelationship(Integer dtodId)
getRelationship
in interface RelationshipDao
public int updateSuspectRelationships(List<Integer> documentIds, boolean suspect, List<Integer> exceptedRelationshipTypes)
updateSuspectRelationships
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocument(Integer documentId, boolean isForward)
getRelationshipsForDocument
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocumentAndType(Integer documentId, Integer relatedTypeId, boolean isForward)
getRelationshipsForDocumentAndType
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocumentAndMultipleTypes(Integer documentId, List<Integer> relatedTypeIds, boolean isForward)
getRelationshipsForDocumentAndMultipleTypes
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocumentByRelationshipType(Integer docId, Integer relTypeId, Boolean isForward)
getRelationshipsForDocumentByRelationshipType
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocumentByRelationshipTypeAndRelatedDocumentType(Integer docId, Integer relTypeId, Integer docTypeId, Boolean isForward)
getRelationshipsForDocumentByRelationshipTypeAndRelatedDocumentType
in interface RelationshipDao
public long getRelationshipCountForDocument(Integer documentId, Integer relatedGroupId, boolean isForward)
getRelationshipCountForDocument
in interface RelationshipDao
public long getRelationshipCountForDocumentAndType(Integer documentId, Integer relatedTypeId, boolean isForward)
getRelationshipCountForDocumentAndType
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocuments(Collection<Integer> ids, boolean isForward)
getRelationshipsForDocuments
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocuments(Collection<Integer> allIds, boolean isForward, Integer otherSideHavingDocumentTypeId)
getRelationshipsForDocuments
in interface RelationshipDao
public List<Document_Document> getRelationshipsByIds(Collection<Integer> relationshipIds)
getRelationshipsByIds
in interface RelationshipDao
public List<DocumentType> getDocumentTypesForRelatedDocuments(Collection<Integer> allIds)
RelationshipDao
getDocumentTypesForRelatedDocuments
in interface RelationshipDao
allIds
- IDs of the specified documents.public List<DocumentType> getDocumentTypesForTracesNotInSelection(Collection<Integer> allIds, Collection<Integer> traceIds)
RelationshipDao
getDocumentTypesForTracesNotInSelection
in interface RelationshipDao
allIds
- IDs of the specified documentstraceIds
- IDs of the specified relationshipspublic List<Document_Document> getRelationshipsBetweenDocuments(Collection<Integer> docIds)
getRelationshipsBetweenDocuments
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocuments(String condition, boolean isForward)
getRelationshipsForDocuments
in interface RelationshipDao
public List<Document_Document> getRelationshipsForDocumentTypeAndRelationshipType(Integer docTypeId, Integer relTypeId)
getRelationshipsForDocumentTypeAndRelationshipType
in interface RelationshipDao
public List<Integer> getDownstreamDocumentIds(Integer docId)
getDownstreamDocumentIds
in interface RelationshipDao
public List<Integer> getUpstreamDocumentIds(Integer docId)
getUpstreamDocumentIds
in interface RelationshipDao
public Document_Document getRelationshipBetweenDocuments(Integer fromDocId, Integer toDocId)
getRelationshipBetweenDocuments
in interface RelationshipDao
public boolean relationshipExistsBetweenDocuments(Integer docIdA, Integer docIdB)
relationshipExistsBetweenDocuments
in interface RelationshipDao
public List<Document_Document> getAllRelationshipsForProject(Integer projectId)
getAllRelationshipsForProject
in interface RelationshipDao
public SearchResults<Document_Document> getRelationshipsInProject(Integer projectId, PageInfo pageInfo)
getRelationshipsInProject
in interface RelationshipDao
public Integer getAllSuspectRelationshipsForProject(Integer projectId)
getAllSuspectRelationshipsForProject
in interface RelationshipDao
public List<Document_Document> getAllRelationshipsForDocuments(Collection<Integer> docIds, boolean onlyIncludeTreeRelationships)
getAllRelationshipsForDocuments
in interface RelationshipDao
public List<Document_Document> replaceRelationshipTypeById(Integer originalTypeId, RelationshipType newType)
replaceRelationshipTypeById
in interface RelationshipDao
public List<com.jamasoftware.contour.api.reuse.service.dto.ReuseTraceDTO> getTraceDtosForDocuments(Collection<Integer> docIds, boolean forward)
getTraceDtosForDocuments
in interface RelationshipDao
public List<Document_Document> getRelationshipsWithAssociationTypes(List<Integer> associationTypeIds)
getRelationshipsWithAssociationTypes
in interface RelationshipDao
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.