Class AddDerivedRelationTypeRequest
Object
AddDerivedRelationTypeRequest
- All Implemented Interfaces:
Serializable
A request object for creating a new derived relation type.
This class represents the data structure used to create a new derived relation type with all its required properties. Unlike regular relation types, derived relation types are defined by a path of intermediate nodes that connect the source and target types.
The request includes both basic relation type properties and the complete path definition with source, target, and intermediate nodes that define the derived relation type's behavior.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddDerivedRelationTypeRequest(UUID id, String publicId, String description, String sourceTypePublicId, String targetTypePublicId, String role, String coRole, PathSourceNodeRequest sourceNode, PathTargetNodeRequest targetNode, List<PathIntermediateNodeRequest> intermediateNodes) Constructs a new AddDerivedRelationTypeRequest with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected boolean@Size(min=1,max=255) @NotNull StringcoRole()Returns the co-role name for the target side of the relation.@Size(max=4000) StringReturns the description of the derived relation type.booleanThe co-role of the Derived Relation Type.The description of the Derived Relation Type.getId()The id of the Derived Relation Type.List<@NotNull PathIntermediateNodeRequest> 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 source node of the Derived Relation Type.The public id of the source type of the Derived Relation Type.The target 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.@NotNull @Valid List<@NotNull PathIntermediateNodeRequest> Returns the list of intermediate nodes in the path for the derived relation type.@Size(min=1,max=260) StringpublicId()Returns the public identifier of the derived relation type.@Size(min=1,max=255) @NotNull Stringrole()Returns the role name for the source side of the relation.voidThe co-role of the Derived Relation Type.voidsetDescription(String description) The description of the Derived Relation Type.voidThe id of the Derived Relation Type.voidsetIntermediateNodes(List<@NotNull 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 source 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 target node of the Derived Relation Type.voidsetTargetTypePublicId(String targetTypePublicId) The public id of the target type of the Derived Relation Type.@NotNull @Valid PathSourceNodeRequestReturns the source node configuration for the derived relation type.@Size(min=1,max=260) @NotNull StringReturns the public ID of the source type for the derived relation type.@NotNull @Valid PathTargetNodeRequestReturns the target node configuration for the derived relation type.@Size(min=1,max=260) @NotNull StringReturns the public ID of the target type for the derived relation type.toString()
-
Constructor Details
-
AddDerivedRelationTypeRequest
public AddDerivedRelationTypeRequest(UUID id, String publicId, String description, String sourceTypePublicId, String targetTypePublicId, String role, String coRole, PathSourceNodeRequest sourceNode, PathTargetNodeRequest targetNode, List<PathIntermediateNodeRequest> intermediateNodes) Constructs a new AddDerivedRelationTypeRequest with the specified parameters.This constructor creates a request to add a new derived relation type with all its required properties. The derived relation type is defined by a path of intermediate nodes that connect the source and target types.
- Parameters:
id- the unique identifier of the derived relation type (optional, will be generated if not provided)publicId- the public identifier of the derived relation type (optional, will be generated if not provided)description- the description of the derived relation type (optional)sourceTypePublicId- the public ID of the source type of the derived relation type (optional)targetTypePublicId- the public ID of the target type of the derived relation type (optional)role- the role name for the source side of the relation (required)coRole- the co-role name for the target side of the relation (required)sourceNode- the source node configuration (required)targetNode- the target node configuration (required)intermediateNodes- the list of intermediate nodes in the path (required, must not be empty)
-
AddDerivedRelationTypeRequest
public AddDerivedRelationTypeRequest()
-
-
Method Details
-
id
Returns the unique identifier of the derived relation type.- Returns:
- the unique identifier, or null if not specified (will be generated)
-
publicId
Returns the public identifier of the derived relation type.- Returns:
- the public identifier, or null if not specified (will be generated)
-
description
Returns the description of the derived relation type.- Returns:
- the description, or null if not specified
-
sourceTypePublicId
Returns the public ID of the source type for the derived relation type.- Returns:
- the source type public ID, or null if not specified
-
targetTypePublicId
Returns the public ID of the target type for the derived relation type.- Returns:
- the target type public ID, or null if not specified
-
role
Returns the role name for the source side of the relation.- Returns:
- the role name
-
coRole
Returns the co-role name for the target side of the relation.- Returns:
- the co-role name
-
sourceNode
Returns the source node configuration for the derived relation type.- Returns:
- the source node configuration
-
targetNode
Returns the target node configuration for the derived relation type.- Returns:
- the target node configuration
-
intermediateNodes
@NotNull @Valid public @NotNull @Valid List<@NotNull PathIntermediateNodeRequest> intermediateNodes()Returns the list of intermediate nodes in the path for the derived relation type.- Returns:
- the intermediate nodes list (must not be empty)
-
builder
-
getId
The id of the Derived Relation Type. If not specified, a unique id will be generated. -
getPublicId
The public id of the Derived Relation Type. If not specified, a unique public id will be generated. -
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 source node of the Derived Relation Type. -
getTargetNode
The target node of the Derived Relation Type. -
getIntermediateNodes
The intermediate nodes of the Derived Relation Type. This list must not be empty. -
setId
The id of the Derived Relation Type. If not specified, a unique id will be generated. -
setPublicId
The public id of the Derived Relation Type. If not specified, a unique public id will be generated. -
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 source node of the Derived Relation Type. -
setTargetNode
The target node of the Derived Relation Type. -
setIntermediateNodes
The intermediate nodes of the Derived Relation Type. This list must not be empty. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-