Record Class EntityMetadata.ParentReference
java.lang.Object
java.lang.Record
io.fluxzero.sdk.modeling.EntityMetadata.ParentReference
- Record Components:
pathInParent- optional parent-relative automatic composition pathparentModelTypes- inferred or explicitly declared possible parent model types; empty for an untyped IDapiDoc- optional documentation for the list-valued automatic composition pathdeleteOnParentDeletion- whether deletion of this parent owns the child lifecycle
- Enclosing class:
EntityMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionParentReference(EntityMetadata.Property property, String pathInParent, List<Class<?>> parentModelTypes, ApiDoc apiDoc, boolean deleteOnParentDeletion) Creates an instance of aParentReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiDoc()Returns the value of theapiDocrecord component.booleanbooleanReturns 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.Class<?> Returns the statically unique parent type, ornullfor untyped and polymorphic references.Class<?> parentModelType(Object parentId) Resolves the concrete parent model type for one runtime parent ID.Returns the value of theparentModelTypesrecord component.Returns the value of thepathInParentrecord component.property()Returns the value of thepropertyrecord component.repositoryId(Object parentId) Returns the parent's exact persisted identity for a functional parent ID value.booleanReturns whether this reference can point to the supplied parent model type.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParentReference
public ParentReference(EntityMetadata.Property property, String pathInParent, List<Class<?>> parentModelTypes, ApiDoc apiDoc, boolean deleteOnParentDeletion) Creates an instance of aParentReferencerecord class.- Parameters:
property- the value for thepropertyrecord componentpathInParent- the value for thepathInParentrecord componentparentModelTypes- the value for theparentModelTypesrecord componentapiDoc- the value for theapiDocrecord componentdeleteOnParentDeletion- the value for thedeleteOnParentDeletionrecord component
-
-
Method Details
-
read
-
parentModelType
Returns the statically unique parent type, ornullfor untyped and polymorphic references. -
supports
Returns whether this reference can point to the supplied parent model type. -
parentModelType
-
repositoryId
-
automaticallyComposed
public boolean automaticallyComposed() -
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. -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
pathInParent
Returns the value of thepathInParentrecord component.- Returns:
- the value of the
pathInParentrecord component
-
parentModelTypes
Returns the value of theparentModelTypesrecord component.- Returns:
- the value of the
parentModelTypesrecord component
-
apiDoc
-
deleteOnParentDeletion
public boolean deleteOnParentDeletion()Returns the value of thedeleteOnParentDeletionrecord component.- Returns:
- the value of the
deleteOnParentDeletionrecord component
-