Class FindRelationshipRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.GetOptions
org.odpi.openmetadata.frameworks.openmetadata.search.PagingOptions
org.odpi.openmetadata.frameworks.openmetadata.search.QueryOptions
org.odpi.openmetadata.commonservices.ffdc.rest.ResultsRequestBody
org.odpi.openmetadata.frameworkservices.omf.rest.FindRelationshipRequestBody
- All Implemented Interfaces:
RequestIdService
FindRelationshipRequestBody provides a structure for passing the properties for the find relationships request.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorFindRelationshipRequestBody(QueryOptions template) Copy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the list of entity guids used to match end 1 of the relationships.Return the name of the type that the entity at end 1 of the relationship must belong to.Return the list of entity guids used to match end 2 of the relationships.Return the name of the type that the entity at end 2 of the relationship must belong to.Return the end matching search criteria.Return the subtype names to limit the results of the find request.Return the type of relationship that the caller is searching for.Return the details of the property values that must be true for the returned metadata elements.inthashCode()Return hash code for this objectvoidsetEnd1EntityGUIDs(List<String> end1EntityGUIDs) Set up the list of entity guids used to match end 1 of the relationships.voidsetEnd1EntityTypeName(String end1EntityTypeName) Set up the name of the type that the entity at end 1 of the relationship must belong to.voidsetEnd2EntityGUIDs(List<String> end2EntityGUIDs) Set up the list of entity guids used to match end 2 of the relationships.voidsetEnd2EntityTypeName(String end2EntityTypeName) Set up the name of the type that the entity at end 2 of the relationship must belong to.voidsetEndMatchCriteria(EndMatchCriteria endMatchCriteria) Set the end matching search criteria.voidsetRelationshipSubtypeNames(List<String> relationshipSubtypeNames) Set up the subtype names to limit the results of the find request.voidsetRelationshipTypeName(String relationshipTypeName) Set up the type of relationship that the caller is searching for.voidsetSearchProperties(SearchProperties searchProperties) Set up the details of the property values that must be true for the returned metadata elements.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.QueryOptions
getAnchorDomainName, getAnchorGUID, getAnchorScopeGUID, getGovernanceZoneFilter, getIncludeOnlyClassifiedElements, getLimitResultsByStatus, getMetadataElementSubtypeNames, getSequencingOrder, getSequencingProperty, getSkipClassifiedElements, getSkipSubtypes, setAnchorDomainName, setAnchorGUID, setAnchorScopeGUID, setGovernanceZoneFilter, setIncludeOnlyClassifiedElements, setLimitResultsByStatus, setMetadataElementSubtypeNames, setSequencingOrder, setSequencingProperty, setSkipClassifiedElements, setSkipSubtypesMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.PagingOptions
getPageSize, getStartFrom, setPageSize, setStartFromMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.GetOptions
getAsOfTime, getGraphQueryDepth, getIncludeOnlyRelationships, getMaxMermaidNodeCount, getMetadataElementTypeName, getRelationshipsPageSize, getSkipRelationships, setAsOfTime, setGraphQueryDepth, setIncludeOnlyRelationships, setMaxMermaidNodeCount, setMetadataElementTypeName, setRelationshipsPageSize, setSkipRelationshipsMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getRequestId, setEffectiveTime, setForDuplicateProcessing, setForLineage, setRequestId
-
Constructor Details
-
FindRelationshipRequestBody
public FindRelationshipRequestBody()Default constructor -
FindRelationshipRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
FindRelationshipRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getRelationshipTypeName
Return the type of relationship that the caller is searching for.- Returns:
- open metadata type name
-
setRelationshipTypeName
Set up the type of relationship that the caller is searching for.- Parameters:
relationshipTypeName- open metadata type name
-
getRelationshipSubtypeNames
Return the subtype names to limit the results of the find request.- Returns:
List<String>open metadata type names
-
setRelationshipSubtypeNames
Set up the subtype names to limit the results of the find request.- Parameters:
relationshipSubtypeNames-List<String>open metadata type names
-
getSearchProperties
Return the details of the property values that must be true for the returned metadata elements.- Returns:
- property specification
-
setSearchProperties
Set up the details of the property values that must be true for the returned metadata elements.- Parameters:
searchProperties- property specification
-
getEnd1EntityGUIDs
Return the list of entity guids used to match end 1 of the relationships.- Returns:
- list of guids
-
setEnd1EntityGUIDs
Set up the list of entity guids used to match end 1 of the relationships.- Parameters:
end1EntityGUIDs- list of guids
-
getEnd1EntityTypeName
Return the name of the type that the entity at end 1 of the relationship must belong to. Subtypes of the named type match too. This is optional, and independent of the end 1 guids: naming the type on its own, with no guids, asks for the relationships that start at any entity of that type.- Returns:
- type name
-
setEnd1EntityTypeName
Set up the name of the type that the entity at end 1 of the relationship must belong to.- Parameters:
end1EntityTypeName- type name
-
getEnd2EntityGUIDs
Return the list of entity guids used to match end 2 of the relationships.- Returns:
- list of guids
-
setEnd2EntityGUIDs
Set up the list of entity guids used to match end 2 of the relationships.- Parameters:
end2EntityGUIDs- list of guids
-
getEnd2EntityTypeName
Return the name of the type that the entity at end 2 of the relationship must belong to. Subtypes of the named type match too. This is optional, and independent of the end 2 guids: naming the type on its own, with no guids, asks for the relationships that end at any entity of that type.- Returns:
- type name
-
setEnd2EntityTypeName
Set up the name of the type that the entity at end 2 of the relationship must belong to.- Parameters:
end2EntityTypeName- type name
-
getEndMatchCriteria
Return the end matching search criteria.- Returns:
- SearchClassifications
-
setEndMatchCriteria
Set the end matching search criteria.- Parameters:
endMatchCriteria- to set as search criteria
-
toString
JSON-style toString.- Overrides:
toStringin classResultsRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classQueryOptions- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classQueryOptions- Returns:
- int hash code
-