Record Class EntityMetadata.ParentRelationship
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.ParentRelationship
- Enclosing class:
EntityMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionParentRelationship(String parentId, Class<?> parentType, String pathInParent, boolean deleteOnParentDeletion) Creates an instance of aParentRelationshiprecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.api.modeling.ModelRelationshipConverts this structural relationship to its commit-wire value.io.fluxzero.common.api.modeling.ModelRelationshipasCommitRelationship(String modelNamePrefix) Converts this relationship using an already application-scoped Model-name prefix.io.fluxzero.common.api.modeling.ModelGraphEdgeasGraphEdge(String childId) Converts this structural relationship to one transient Graph edge.io.fluxzero.common.api.modeling.ModelGraphEdgeasGraphEdge(String childId, String modelNamePrefix) Converts this relationship using an already application-scoped Model-name prefix.booleanReturns the value of thedeleteOnParentDeletionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.parentId()Returns the value of theparentIdrecord component.Class<?> Returns the value of theparentTyperecord component.Returns the value of thepathInParentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParentRelationship
public ParentRelationship(String parentId, Class<?> parentType, String pathInParent, boolean deleteOnParentDeletion) Creates an instance of aParentRelationshiprecord class.- Parameters:
parentId- the value for theparentIdrecord componentparentType- the value for theparentTyperecord componentpathInParent- the value for thepathInParentrecord componentdeleteOnParentDeletion- the value for thedeleteOnParentDeletionrecord component
-
-
Method Details
-
asCommitRelationship
public io.fluxzero.common.api.modeling.ModelRelationship asCommitRelationship()Converts this structural relationship to its commit-wire value. -
asCommitRelationship
public io.fluxzero.common.api.modeling.ModelRelationship asCommitRelationship(String modelNamePrefix) Converts this relationship using an already application-scoped Model-name prefix. -
asGraphEdge
Converts this structural relationship to one transient Graph edge. -
asGraphEdge
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
parentId
Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
parentType
Returns the value of theparentTyperecord component.- Returns:
- the value of the
parentTyperecord component
-
pathInParent
Returns the value of thepathInParentrecord component.- Returns:
- the value of the
pathInParentrecord component
-
deleteOnParentDeletion
public boolean deleteOnParentDeletion()Returns the value of thedeleteOnParentDeletionrecord component.- Returns:
- the value of the
deleteOnParentDeletionrecord component
-