Interface EdgeQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable
This is the query for searching edges. Each method match specifies an
AND term while multiple invocations of the same method produce a
nested OR.
Like all OsidQueries, EdgeQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the directional terms.voidClears the cost terms.voidClears the related nodeIdterms.voidClears the related node terms.voidClears the directional terms.voidClears the distance terms.voidClears the graphIdterms.voidClears the graph terms.voidClears the same node terms.voidClears the nodeIdterms.voidClears the node terms.Gets the query for a related node.getEdgeQueryRecord(Type edgeRecordType) Gets the edge query record corresponding to the givenEdgerecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a graph.Gets the query for a node.voidmatchAnyCost(boolean match) Matches edges that has any cost assigned.voidmatchAnyDistance(boolean match) Matches edges that has any distance assigned.voidmatchBiDirectional(boolean match) Matches bi-directional edges.voidmatchCost(BigDecimal from, BigDecimal to, boolean match) Matches edges that have the specified cost inclusive.voidmatchDestinationNodeId(Id nodeId, boolean match) Sets the related nodeIdfor this query to match edges assigned to nodes.voidmatchDirectional(boolean match) Matches directional edges.voidmatchDistance(BigDecimal from, BigDecimal to, boolean match) Matches edges that have the specified distance inclusive.voidmatchGraphId(Id graphId, boolean match) Sets the graphIdfor this query to match edges assigned to graphs.voidmatchSameNode(boolean match) Matches edges between the same node.voidmatchSourceNodeId(Id nodeId, boolean match) Sets the nodeIdfor this query to match edges assigned to nodes.booleanTests if aNodeQueryis available.booleanTests if aGraphQueryis available.booleanTests if aNodeQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeMethods inherited from interface OsidRelationshipQuery
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryMethods inherited from interface OsidTemporalQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
-
Method Details
-
matchSourceNodeId
Sets the nodeIdfor this query to match edges assigned to nodes.- Parameters:
nodeId- the nodeIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-nodeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSourceNodeIdTerms
void clearSourceNodeIdTerms()Clears the nodeIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSourceNodeQuery
boolean supportsSourceNodeQuery()Tests if aNodeQueryis available.- Returns:
trueif a node query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSourceNodeQuery
NodeQuery getSourceNodeQuery()Gets the query for a node. Multiple retrievals produce a nestedORterm.- Returns:
- the node query
- Throws:
UnimplementedException-supportsSourceNodeQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSourceNodeQuery()} is {@code true}.
-
clearSourceNodeTerms
void clearSourceNodeTerms()Clears the node terms.- Compliance:
mandatory- This method must be implemented.
-
matchDestinationNodeId
Sets the related nodeIdfor this query to match edges assigned to nodes.- Parameters:
nodeId- the nodeIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-nodeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDestinationNodeIdTerms
void clearDestinationNodeIdTerms()Clears the related nodeIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsDestinationNodeQuery
boolean supportsDestinationNodeQuery()Tests if aNodeQueryis available.- Returns:
trueif a node query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDestinationNodeQuery
NodeQuery getDestinationNodeQuery()Gets the query for a related node. Multiple retrievals produce a nestedORterm.- Returns:
- the node query
- Throws:
UnimplementedException-supportsDestinationNodeQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDestinationNodeQuery()} is {@code true}.
-
clearDestinationNodeTerms
void clearDestinationNodeTerms()Clears the related node terms.- Compliance:
mandatory- This method must be implemented.
-
matchSameNode
void matchSameNode(boolean match) Matches edges between the same node.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearSameNodeTerms
void clearSameNodeTerms()Clears the same node terms.- Compliance:
mandatory- This method must be implemented.
-
matchDirectional
void matchDirectional(boolean match) Matches directional edges.- Parameters:
match-trueto match directional edges,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearDirectionalTerms
void clearDirectionalTerms()Clears the directional terms.- Compliance:
mandatory- This method must be implemented.
-
matchBiDirectional
void matchBiDirectional(boolean match) Matches bi-directional edges.- Parameters:
match-trueto match bi-directional edges,falseto match uni-directional edges- Compliance:
mandatory- This method must be implemented.
-
clearBiDirectionalTerms
void clearBiDirectionalTerms()Clears the directional terms.- Compliance:
mandatory- This method must be implemented.
-
matchCost
Matches edges that have the specified cost inclusive.- Parameters:
from- starting rangeto- ending rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-tois less thanfrom- Compliance:
mandatory- This method must be implemented.
-
matchAnyCost
void matchAnyCost(boolean match) Matches edges that has any cost assigned.- Parameters:
match-trueto match edges with any cost,falseto match edges with no cost assigned- Compliance:
mandatory- This method must be implemented.
-
clearCostTerms
void clearCostTerms()Clears the cost terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistance
Matches edges that have the specified distance inclusive.- Parameters:
from- starting rangeto- ending rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-tois less thanfrom- Compliance:
mandatory- This method must be implemented.
-
matchAnyDistance
void matchAnyDistance(boolean match) Matches edges that has any distance assigned.- Parameters:
match-trueto match edges with any distance,falseto match edges with no distance assigned- Compliance:
mandatory- This method must be implemented.
-
clearDistanceTerms
void clearDistanceTerms()Clears the distance terms.- Compliance:
mandatory- This method must be implemented.
-
matchGraphId
Sets the graphIdfor this query to match edges assigned to graphs.- Parameters:
graphId- the graphIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-graphIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGraphIdTerms
void clearGraphIdTerms()Clears the graphIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGraphQuery
boolean supportsGraphQuery()Tests if aGraphQueryis available.- Returns:
trueif a graph query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGraphQuery
GraphQuery getGraphQuery()Gets the query for a graph. Multiple retrievals produce a nestedORterm.- Returns:
- the graph query
- Throws:
UnimplementedException-supportsGraphQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsGraphQuery()} is {@code true}.
-
clearGraphTerms
void clearGraphTerms()Clears the graph terms.- Compliance:
mandatory- This method must be implemented.
-
getEdgeQueryRecord
Gets the edge query record corresponding to the givenEdgerecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
edgeRecordType- an edge record type- Returns:
- the edge query record
- Throws:
NullArgumentException-edgeRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(edgeRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-