Class ChangeDerivedRelationTypeRequest
- All Implemented Interfaces:
Serializable
This class represents the data structure used to update properties of an existing derived relation type. Only the properties provided in the request will be updated; unspecified properties will remain unchanged.
The request supports updating both basic relation type properties and path-specific information for derived relation types with intermediate nodes.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChangeDerivedRelationTypeRequest(UUID id, String publicId, String description, String sourceTypePublicId, String targetTypePublicId, String role, String coRole, PathSourceNodeRequest sourceNode, PathTargetNodeRequest targetNode, List<PathIntermediateNodeRequest> intermediateNodes) Constructs a new ChangeDerivedRelationTypeRequest with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected boolean@Size(min=1,max=255) StringcoRole()Returns the new co-role name for the derived relation type.@Size(max=4000) StringReturns the new description for the derived relation type.booleanThe co-role of the Derived Relation Type.The description of the Derived Relation Type.getId()The intermediate nodes of the Derived Relation Type.The public id of the Derived Relation Type.getRole()The role of the Derived Relation Type.The start node of the Derived Relation Type.The public id of the source type of the Derived Relation Type.The end node of the Derived Relation Type.The public id of the target type of the Derived Relation Type.inthashCode()id()Returns the unique identifier of the derived relation type to modify.Returns the new intermediate nodes list for the derived relation type.@Size(min=1,max=260) StringpublicId()Returns the new public identifier for the derived relation type.@Size(min=1,max=255) Stringrole()Returns the new role name for the derived relation type.voidThe co-role of the Derived Relation Type.voidsetDescription(String description) The description of the Derived Relation Type.voidvoidsetIntermediateNodes(List<PathIntermediateNodeRequest> intermediateNodes) The intermediate nodes of the Derived Relation Type.voidsetPublicId(String publicId) The public id of the Derived Relation Type.voidThe role of the Derived Relation Type.voidsetSourceNode(PathSourceNodeRequest sourceNode) The start node of the Derived Relation Type.voidsetSourceTypePublicId(String sourceTypePublicId) The public id of the source type of the Derived Relation Type.voidsetTargetNode(PathTargetNodeRequest targetNode) The end node of the Derived Relation Type.voidsetTargetTypePublicId(String targetTypePublicId) The public id of the target type of the Derived Relation Type.Returns the new source node configuration for the derived relation type.Returns the public ID of the source type for the derived relation type.Returns the new target node configuration for the derived relation type.Returns the public ID of the target type for the derived relation type.Creates a new ChangeDerivedRelationTypeRequest with the specified ID and all other properties from this instance.
-
Constructor Details
-
ChangeDerivedRelationTypeRequest
public ChangeDerivedRelationTypeRequest(UUID id, String publicId, String description, String sourceTypePublicId, String targetTypePublicId, String role, String coRole, PathSourceNodeRequest sourceNode, PathTargetNodeRequest targetNode, List<PathIntermediateNodeRequest> intermediateNodes) Constructs a new ChangeDerivedRelationTypeRequest with the specified parameters.This constructor creates a request to modify an existing derived relation type. Only the properties provided in the request will be updated; unspecified properties will remain unchanged in the target derived relation type.
- Parameters:
id- the unique identifier of the derived relation type to modifypublicId- the new public identifier (optional)description- the new description (optional)sourceTypePublicId- the public ID of the source type (optional)targetTypePublicId- the public ID of the target type (optional)role- the new role name (optional)coRole- the new co-role name (optional)sourceNode- the new source node configuration (optional)targetNode- the new target node configuration (optional)intermediateNodes- the new intermediate nodes list (optional)
-
ChangeDerivedRelationTypeRequest
public ChangeDerivedRelationTypeRequest()
-
-
Method Details
-
withId
Creates a new ChangeDerivedRelationTypeRequest with the specified ID and all other properties from this instance.This method is useful for creating a copy of the current request with a different ID, which is commonly needed when working with derived relation type operations.
- Parameters:
id- the new ID to use- Returns:
- a new ChangeDerivedRelationTypeRequest with the specified ID and all other properties from this instance
-
id
Returns the unique identifier of the derived relation type to modify.- Returns:
- the unique identifier
-
publicId
Returns the new public identifier for the derived relation type.- Returns:
- the public identifier, or null if not being updated
-
description
Returns the new description for the derived relation type.- Returns:
- the description, or null if not being updated
-
sourceTypePublicId
Returns the public ID of the source type for the derived relation type.- Returns:
- the source type public ID, or null if not being updated
-
targetTypePublicId
Returns the public ID of the target type for the derived relation type.- Returns:
- the target type public ID, or null if not being updated
-
role
Returns the new role name for the derived relation type.- Returns:
- the role name, or null if not being updated
-
coRole
Returns the new co-role name for the derived relation type.- Returns:
- the co-role name, or null if not being updated
-
sourceNode
Returns the new source node configuration for the derived relation type.- Returns:
- the source node configuration, or null if not being updated
-
targetNode
Returns the new target node configuration for the derived relation type.- Returns:
- the target node configuration, or null if not being updated
-
intermediateNodes
Returns the new intermediate nodes list for the derived relation type.- Returns:
- the intermediate nodes list, or null if not being updated
-
builder
-
getId
-
getPublicId
The public id of the Derived Relation Type. -
getDescription
The description of the Derived Relation Type. -
getSourceTypePublicId
The public id of the source type of the Derived Relation Type. -
getTargetTypePublicId
The public id of the target type of the Derived Relation Type. -
getRole
The role of the Derived Relation Type. -
getCoRole
The co-role of the Derived Relation Type. -
getSourceNode
The start node of the Derived Relation Type. -
getTargetNode
The end node of the Derived Relation Type. -
getIntermediateNodes
The intermediate nodes of the Derived Relation Type. -
setId
-
setPublicId
The public id of the Derived Relation Type. -
setDescription
The description of the Derived Relation Type. -
setSourceTypePublicId
The public id of the source type of the Derived Relation Type. -
setTargetTypePublicId
The public id of the target type of the Derived Relation Type. -
setRole
The role of the Derived Relation Type. -
setCoRole
The co-role of the Derived Relation Type. -
setSourceNode
The start node of the Derived Relation Type. -
setTargetNode
The end node of the Derived Relation Type. -
setIntermediateNodes
The intermediate nodes of the Derived Relation Type. -
equals
-
canEqual
-
hashCode
public int hashCode()
-