Package io.jmix.datatools.datamodel
Record Class DataModel
java.lang.Object
java.lang.Record
io.jmix.datatools.datamodel.DataModel
public record DataModel(String entityName, String dataStore, EntityModel entityModel, Map<RelationType,List<Relation>> relations, String entityDescription, List<AttributeModel> attributeModels)
extends Record
Represents the data model for an entity, encapsulating its metadata, attributes, and relationships.
-
Constructor Summary
ConstructorsConstructorDescriptionDataModel(String entityName, String dataStore, EntityModel entityModel, Map<RelationType, List<Relation>> relations, String entityDescription, List<AttributeModel> attributeModels) Creates an instance of aDataModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributeModelsrecord component.Returns the value of thedataStorerecord component.Returns the value of theentityDescriptionrecord component.Returns the value of theentityModelrecord component.Returns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therelationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataModel
public DataModel(String entityName, String dataStore, EntityModel entityModel, Map<RelationType, List<Relation>> relations, String entityDescription, List<AttributeModel> attributeModels) Creates an instance of aDataModelrecord class.- Parameters:
entityName- the value for theentityNamerecord componentdataStore- the value for thedataStorerecord componententityModel- the value for theentityModelrecord componentrelations- the value for therelationsrecord componententityDescription- the value for theentityDescriptionrecord componentattributeModels- the value for theattributeModelsrecord 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). -
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
dataStore
Returns the value of thedataStorerecord component.- Returns:
- the value of the
dataStorerecord component
-
entityModel
Returns the value of theentityModelrecord component.- Returns:
- the value of the
entityModelrecord component
-
relations
Returns the value of therelationsrecord component.- Returns:
- the value of the
relationsrecord component
-
entityDescription
Returns the value of theentityDescriptionrecord component.- Returns:
- the value of the
entityDescriptionrecord component
-
attributeModels
Returns the value of theattributeModelsrecord component.- Returns:
- the value of the
attributeModelsrecord component
-