public interface FamilyQuery extends OsidCatalogQuery
This is the query interface for searching for families. Each method
specifies an AND
term while multiple invocations of the
same method produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAncestorFamilyIdTerms()
Clears the ancestor family
Id terms. |
void |
clearAncestorFamilyTerms()
Clears the ancestor family terms.
|
void |
clearDescendantFamilyIdTerms()
Clears the descendant family
Id terms. |
void |
clearDescendantFamilyTerms()
Clears the descendant family terms.
|
void |
clearRelationshipIdTerms()
Clears the relationship
Id terms. |
void |
clearRelationshipTerms()
Clears the relationship terms.
|
FamilyQuery |
getAncestorFamilyQuery()
Gets the query interface for a family.
|
FamilyQuery |
getDescendantFamilyQuery()
Gets the query interface for a family.
|
FamilyQueryRecord |
getFamilyQueryRecord(Type familyRecordType)
Gets the family query record corresponding to the given
Family
record Type. |
RelationshipQuery |
getRelationshipQuery()
Gets the query interface for a relationship.
|
void |
matchAncestorFamilyId(Id familyId,
boolean match)
Sets the family
Id for this query to match families
that have the specified family as an ancestor. |
void |
matchAnyAncestorFamily(boolean match)
Matches families with any ancestor.
|
void |
matchAnyDescendantFamily(boolean match)
Matches families with any decendant.
|
void |
matchAnyRelationship(boolean match)
Matches families with any relationship.
|
void |
matchDescendantFamilyId(Id familyId,
boolean match)
Sets the family
Id for this query to match families
that have the specified family as a descednant. |
void |
matchRelationshipId(Id relationshipId,
boolean match)
Matches a relationship
Id. |
boolean |
supportsAncestorFamilyQuery()
Tests if a
FamilyQuery is available. |
boolean |
supportsDescendantFamilyQuery()
Tests if a
FamilyQuery is available. |
boolean |
supportsRelationshipQuery()
Tests if a relationship query is available.
|
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipPeerIdTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
void matchRelationshipId(Id relationshipId, boolean match)
Id.
matchRelationshipId
in interface OsidObjectQuery
relationshipId
- a relationship Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- relationshipId
is null
mandatory
- This method must be implemented. void clearRelationshipIdTerms()
Id
terms.clearRelationshipIdTerms
in interface OsidObjectQuery
mandatory
- This method must be implemented. boolean supportsRelationshipQuery()
supportsRelationshipQuery
in interface OsidObjectQuery
true
if a relationship query is available,
false
otherwisemandatory
- This method must be implemented. RelationshipQuery getRelationshipQuery()
getRelationshipQuery
in interface OsidObjectQuery
UnimplementedException
-
supportsRelationshipQuery()
is false
optional
- This method must be implemented if
supportsRelationshipQuery()
is true.
void matchAnyRelationship(boolean match)
matchAnyRelationship
in interface OsidObjectQuery
match
- true
to match families with any
relationship, false
to match families with no
relationshipmandatory
- This method must be implemented. void clearRelationshipTerms()
clearRelationshipTerms
in interface OsidObjectQuery
mandatory
- This method must be implemented. void matchAncestorFamilyId(Id familyId, boolean match)
Id
for this query to match families
that have the specified family as an ancestor.familyId
- a family Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- familyId
is
null
mandatory
- This method must be implemented. void clearAncestorFamilyIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAncestorFamilyQuery()
FamilyQuery
is available. true
if a family query interface is available,
false
otherwisemandatory
- This method must be implemented. FamilyQuery getAncestorFamilyQuery()
OR
term.UnimplementedException
-
supportsAncestorFamilyQuery()
is false
optional
- This method must be implemented if
supportsAncestorFamilyQuery()
is true.
void matchAnyAncestorFamily(boolean match)
match
- true
to match families with any ancestor,
false
to match root familiesmandatory
- This method must be implemented. void clearAncestorFamilyTerms()
mandatory
- This method must be implemented. void matchDescendantFamilyId(Id familyId, boolean match)
Id
for this query to match families
that have the specified family as a descednant.familyId
- a family Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- familyId
is
null
mandatory
- This method must be implemented. void clearDescendantFamilyIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDescendantFamilyQuery()
FamilyQuery
is available. true
if a family query interface is available,
false
otherwisemandatory
- This method must be implemented. FamilyQuery getDescendantFamilyQuery()
OR
term.UnimplementedException
-
supportsDescendantFamilyQuery()
is false
optional
- This method must be implemented if
supportsDescendantFamilyQuery()
is true.
void matchAnyDescendantFamily(boolean match)
match
- true
to match families with any
decendants, false
to match leaf familiesmandatory
- This method must be implemented. void clearDescendantFamilyTerms()
mandatory
- This method must be implemented. FamilyQueryRecord getFamilyQueryRecord(Type familyRecordType) throws OperationFailedException, PermissionDeniedException
Family
record Type.
Multiple record retrievals produce
a nested boolean OR
term.familyRecordType
- a family record typeNullArgumentException
- familyRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(familyRecordType)
is false
mandatory
- This method must be implemented.