Package com.axelor.meta.query.backend
Record Class ResolvedField
java.lang.Object
java.lang.Record
com.axelor.meta.query.backend.ResolvedField
- Record Components:
column- the entity's JSON column holding the value, for a custom field added to an entity; null for a mapped property, and for a custom model's own fields, which its backend readsselection- the selection the field's values are shown with, or null when it has none
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType) ResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType, String column, String selection, Class<?> enumType) Creates an instance of aResolvedFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecollectionrecord component.column()Returns the value of thecolumnrecord component.booleancustom()Whether this is a custom field stored in an entity's JSON column.Class<?> enumType()Returns the value of theenumTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?> javaType()Returns the value of thejavaTyperecord component.path()Returns the value of thepathrecord component.booleanReturns the value of therelationalrecord component.Returns the value of theselectionrecord component.Returns the value of thetargetModelrecord component.Returns the value of thetargetNamerecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedField
-
ResolvedField
public ResolvedField(String path, Class<?> javaType, boolean relational, boolean collection, Class<? extends Model> targetModel, String targetName, String targetType, String column, String selection, Class<?> enumType) Creates an instance of aResolvedFieldrecord class.- Parameters:
path- the value for thepathrecord componentjavaType- the value for thejavaTyperecord componentrelational- the value for therelationalrecord componentcollection- the value for thecollectionrecord componenttargetModel- the value for thetargetModelrecord componenttargetName- the value for thetargetNamerecord componenttargetType- the value for thetargetTyperecord componentcolumn- the value for thecolumnrecord componentselection- the value for theselectionrecord componentenumType- the value for theenumTyperecord component
-
-
Method Details
-
custom
public boolean custom()Whether this is a custom field stored in an entity's JSON column. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
javaType
Returns the value of thejavaTyperecord component.- Returns:
- the value of the
javaTyperecord component
-
relational
public boolean relational()Returns the value of therelationalrecord component.- Returns:
- the value of the
relationalrecord component
-
collection
public boolean collection()Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
targetModel
Returns the value of thetargetModelrecord component.- Returns:
- the value of the
targetModelrecord component
-
targetName
Returns the value of thetargetNamerecord component.- Returns:
- the value of the
targetNamerecord component
-
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
enumType
Returns the value of theenumTyperecord component.- Returns:
- the value of the
enumTyperecord component
-