com.jamasoftware.contour.dao
Interface RelationshipDao
public interface RelationshipDao
|
Method Summary |
void |
batchDeleteRelationships(java.util.List<Document_Document> results)
|
void |
batchUpdateRelationships(Filter fieldChangeFilter,
java.util.List<Document_Document> relationships)
|
java.util.List<Document_Document> |
getAllRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids)
|
java.util.List<Document_Document> |
getAllRelationshipsForProject(java.lang.Integer projectId)
|
java.util.List<java.lang.Object[]> |
getDocumentListWithSuspectLinks(java.lang.Integer projectId)
|
java.util.List<java.lang.Integer> |
getDownstreamDocumentIds(java.lang.Integer docId)
|
java.util.List<java.lang.Integer> |
getOutOfSyncCopiesDocumentIds(java.lang.Integer projectId)
|
java.util.List<Document_Document> |
getOutOfSyncRelationshipsForCopiesInProject(java.lang.Integer projectId)
|
java.util.List<Document_Document> |
getOutOfSyncRelationshipsForDocument(java.lang.Integer docId,
boolean isForward,
boolean onlyOutOfSync)
|
java.util.List<Document_Document> |
getOutOfSyncRelationshipsForDocument(java.lang.Integer docId,
boolean isForward,
java.lang.Integer itemSyncStatusId)
|
Document_Document |
getRelationship(java.lang.Integer dtodId)
|
long |
getRelationshipCount(Filter filter)
|
long |
getRelationshipCountForDocument(java.lang.Integer documentId,
java.lang.Integer relatedGroupId,
boolean isForward)
|
long |
getRelationshipCountForDocumentAndType(java.lang.Integer documentId,
java.lang.Integer relatedTypeId,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipList(Filter filter)
|
java.util.List<Document_Document> |
getRelationshipsBetweenDocuments(java.lang.Integer fromDocId,
java.lang.Integer toDocId)
|
java.util.List<Document_Document> |
getRelationshipsForDocument(java.lang.Integer documentId,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocumentAndMultipleTypes(java.lang.Integer documentParentId,
java.util.List<java.lang.Integer> typeIds,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocumentAndType(java.lang.Integer documentId,
java.lang.Integer relatedTypeId,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocumentByRelationshipType(java.lang.Integer docId,
java.lang.Integer relTypeId,
java.lang.Boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids,
boolean isForward,
java.lang.Integer otherSideHavingDocumentTypeId)
|
java.util.List<Document_Document> |
getRelationshipsForDocuments(java.lang.String condition,
boolean isForward)
|
java.util.List<Document_Document> |
getRelationshipsForDocumentTypeAndRelationshipType(java.lang.Integer docTypeId,
java.lang.Integer relTypeId)
|
java.util.Map<java.lang.Integer,java.lang.Boolean> |
getSyncMap(java.util.List<java.lang.Integer> documentIds)
Check if the documents with the specified IDs are sync items. |
Document_Document |
getSyncMasterRelationship(java.lang.Integer copyDocumentId)
|
java.util.List<java.lang.Integer> |
getUpstreamDocumentIds(java.lang.Integer docId)
|
boolean |
isSyncItem(java.lang.Integer documentId)
|
boolean |
relationshipExistsBetweenDocuments(java.lang.Integer docIdA,
java.lang.Integer docIdB)
|
void |
removeRelationship(Document_Document dtod)
|
void |
replaceRelationshipTypeById(java.lang.Integer originalTypeId,
RelationshipType newType)
|
void |
saveAttachmentRelationship(Document_DocAttach dtod)
|
void |
saveRelationship(Document_Document dtod)
|
void |
saveRelationships(java.util.Collection<Document_Document> associatedDocuments)
|
int |
updateSuspectRelationships(java.util.List<java.lang.Integer> documentIds,
boolean suspect,
java.util.List<java.lang.Integer> exceptedRelationshipTypes)
|
removeRelationship
void removeRelationship(Document_Document dtod)
updateSuspectRelationships
int updateSuspectRelationships(java.util.List<java.lang.Integer> documentIds,
boolean suspect,
java.util.List<java.lang.Integer> exceptedRelationshipTypes)
saveRelationships
void saveRelationships(java.util.Collection<Document_Document> associatedDocuments)
saveRelationship
void saveRelationship(Document_Document dtod)
saveAttachmentRelationship
void saveAttachmentRelationship(Document_DocAttach dtod)
getRelationship
Document_Document getRelationship(java.lang.Integer dtodId)
getDocumentListWithSuspectLinks
java.util.List<java.lang.Object[]> getDocumentListWithSuspectLinks(java.lang.Integer projectId)
getRelationshipsForDocument
java.util.List<Document_Document> getRelationshipsForDocument(java.lang.Integer documentId,
boolean isForward)
getRelationshipsForDocumentAndType
java.util.List<Document_Document> getRelationshipsForDocumentAndType(java.lang.Integer documentId,
java.lang.Integer relatedTypeId,
boolean isForward)
getRelationshipsForDocumentAndMultipleTypes
java.util.List<Document_Document> getRelationshipsForDocumentAndMultipleTypes(java.lang.Integer documentParentId,
java.util.List<java.lang.Integer> typeIds,
boolean isForward)
getRelationshipsForDocumentByRelationshipType
java.util.List<Document_Document> getRelationshipsForDocumentByRelationshipType(java.lang.Integer docId,
java.lang.Integer relTypeId,
java.lang.Boolean isForward)
getOutOfSyncRelationshipsForDocument
java.util.List<Document_Document> getOutOfSyncRelationshipsForDocument(java.lang.Integer docId,
boolean isForward,
boolean onlyOutOfSync)
getOutOfSyncRelationshipsForDocument
java.util.List<Document_Document> getOutOfSyncRelationshipsForDocument(java.lang.Integer docId,
boolean isForward,
java.lang.Integer itemSyncStatusId)
getOutOfSyncRelationshipsForCopiesInProject
java.util.List<Document_Document> getOutOfSyncRelationshipsForCopiesInProject(java.lang.Integer projectId)
getOutOfSyncCopiesDocumentIds
java.util.List<java.lang.Integer> getOutOfSyncCopiesDocumentIds(java.lang.Integer projectId)
getAllRelationshipsForDocuments
java.util.List<Document_Document> getAllRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids)
getRelationshipsForDocuments
java.util.List<Document_Document> getRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids,
boolean isForward)
getRelationshipsForDocuments
java.util.List<Document_Document> getRelationshipsForDocuments(java.util.Collection<java.lang.Integer> ids,
boolean isForward,
java.lang.Integer otherSideHavingDocumentTypeId)
getRelationshipsForDocuments
java.util.List<Document_Document> getRelationshipsForDocuments(java.lang.String condition,
boolean isForward)
getRelationshipsForDocumentTypeAndRelationshipType
java.util.List<Document_Document> getRelationshipsForDocumentTypeAndRelationshipType(java.lang.Integer docTypeId,
java.lang.Integer relTypeId)
getRelationshipList
java.util.List<Document_Document> getRelationshipList(Filter filter)
getRelationshipCountForDocument
long getRelationshipCountForDocument(java.lang.Integer documentId,
java.lang.Integer relatedGroupId,
boolean isForward)
getRelationshipCountForDocumentAndType
long getRelationshipCountForDocumentAndType(java.lang.Integer documentId,
java.lang.Integer relatedTypeId,
boolean isForward)
getRelationshipCount
long getRelationshipCount(Filter filter)
batchUpdateRelationships
void batchUpdateRelationships(Filter fieldChangeFilter,
java.util.List<Document_Document> relationships)
batchDeleteRelationships
void batchDeleteRelationships(java.util.List<Document_Document> results)
getDownstreamDocumentIds
java.util.List<java.lang.Integer> getDownstreamDocumentIds(java.lang.Integer docId)
getUpstreamDocumentIds
java.util.List<java.lang.Integer> getUpstreamDocumentIds(java.lang.Integer docId)
getRelationshipsBetweenDocuments
java.util.List<Document_Document> getRelationshipsBetweenDocuments(java.lang.Integer fromDocId,
java.lang.Integer toDocId)
relationshipExistsBetweenDocuments
boolean relationshipExistsBetweenDocuments(java.lang.Integer docIdA,
java.lang.Integer docIdB)
getAllRelationshipsForProject
java.util.List<Document_Document> getAllRelationshipsForProject(java.lang.Integer projectId)
isSyncItem
boolean isSyncItem(java.lang.Integer documentId)
getSyncMap
java.util.Map<java.lang.Integer,java.lang.Boolean> getSyncMap(java.util.List<java.lang.Integer> documentIds)
- Check if the documents with the specified IDs are sync items.
- Parameters:
documentIds - the document IDs
- Returns:
- a Map from document id to Boolean. The size of the map is the count of distinctive document IDs.
getSyncMasterRelationship
Document_Document getSyncMasterRelationship(java.lang.Integer copyDocumentId)
replaceRelationshipTypeById
void replaceRelationshipTypeById(java.lang.Integer originalTypeId,
RelationshipType newType)
Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.