Package io.jmix.datatools.datamodel
Record Class AttributeDescriptor.ColumnDescriptor
java.lang.Object
java.lang.Record
io.jmix.datatools.datamodel.AttributeDescriptor.ColumnDescriptor
- Record Components:
tableName- table the column belongs tocolumnName- column namedbType- database type, ornullto look it up in the database metadata
- Enclosing class:
AttributeDescriptor
public static record AttributeDescriptor.ColumnDescriptor(String tableName, String columnName, @Nullable String dbType)
extends Record
Physical column of a contributed attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnDescriptor(String tableName, String columnName, @Nullable String dbType) Creates an instance of aColumnDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.@Nullable StringdbType()Returns the value of thedbTyperecord 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 thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnDescriptor
Creates an instance of aColumnDescriptorrecord class.- Parameters:
tableName- the value for thetableNamerecord componentcolumnName- the value for thecolumnNamerecord componentdbType- the value for thedbTyperecord 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). -
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
dbType
Returns the value of thedbTyperecord component.- Returns:
- the value of the
dbTyperecord component
-