Package io.jmix.dynmodel.meta
Record Class DynamicEntityDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicEntityDefinition
- Record Components:
name- entity namestore- physical store nameattributes- entity attributesuniqueConstraints- entity unique constraintsviews- entity-owned dynamic viewsresourceRoles- entity resource-role grantsvalidation- entity validation definitionmessages- localized entity captions
public record DynamicEntityDefinition(String name, @Nullable String store, List<DynamicAttributeDefinition> attributes, List<DynamicUniqueConstraintDefinition> uniqueConstraints, List<DynamicViewDefinition> views, @Nullable DynamicEntityAccessDefinition resourceRoles, @Nullable DynamicValidationDefinition<DynamicEntityConstraintDefinition> validation, @Nullable Map<String,String> messages)
extends Record
Defines a runtime dynamic model entity.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicEntityDefinition(String name, @Nullable String store, List<DynamicAttributeDefinition> attributes, List<DynamicUniqueConstraintDefinition> uniqueConstraints, List<DynamicViewDefinition> views, @Nullable DynamicEntityAccessDefinition resourceRoles, @Nullable DynamicValidationDefinition<DynamicEntityConstraintDefinition> validation, @Nullable Map<String, String> messages) Creates an instance of aDynamicEntityDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.name()Returns the value of thenamerecord component.@Nullable DynamicEntityAccessDefinitionReturns the value of theresourceRolesrecord component.@Nullable Stringstore()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueConstraintsrecord component.Returns the value of thevalidationrecord component.views()Returns the value of theviewsrecord component.
-
Constructor Details
-
DynamicEntityDefinition
public DynamicEntityDefinition(String name, @Nullable String store, List<DynamicAttributeDefinition> attributes, List<DynamicUniqueConstraintDefinition> uniqueConstraints, List<DynamicViewDefinition> views, @Nullable DynamicEntityAccessDefinition resourceRoles, @Nullable DynamicValidationDefinition<DynamicEntityConstraintDefinition> validation, @Nullable Map<String, String> messages) Creates an instance of aDynamicEntityDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentstore- the value for thestorerecord componentattributes- the value for theattributesrecord componentuniqueConstraints- the value for theuniqueConstraintsrecord componentviews- the value for theviewsrecord componentresourceRoles- the value for theresourceRolesrecord componentvalidation- the value for thevalidationrecord componentmessages- the value for themessagesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
uniqueConstraints
Returns the value of theuniqueConstraintsrecord component.- Returns:
- the value of the
uniqueConstraintsrecord component
-
views
Returns the value of theviewsrecord component.- Returns:
- the value of the
viewsrecord component
-
resourceRoles
Returns the value of theresourceRolesrecord component.- Returns:
- the value of the
resourceRolesrecord component
-
validation
Returns the value of thevalidationrecord component.- Returns:
- the value of the
validationrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-