Record Class TableMetadata
java.lang.Object
java.lang.Record
org.huiche.core.metadata.TableMetadata
- Record Components:
table- 表名columns- 列id- ID列(仅唯一主键时才有,联合主键时无)instantiator- 实例化器,传入map对象,返回实例化后的对象extractor- 对象值提取器,传入java对象,返回map键值对
public record TableMetadata(String table, List<ColumnMetadata> columns, ColumnMetadata id, Instantiator instantiator, Extractor extractor)
extends Record
表元数据
- Author:
- Maning
-
Constructor Summary
ConstructorsConstructorDescriptionTableMetadata(String table, List<ColumnMetadata> columns, ColumnMetadata id, Instantiator instantiator, Extractor extractor) Creates an instance of aTableMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextractorrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinstantiatorrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableMetadata
public TableMetadata(String table, List<ColumnMetadata> columns, ColumnMetadata id, Instantiator instantiator, Extractor extractor) Creates an instance of aTableMetadatarecord class.- Parameters:
table- the value for thetablerecord componentcolumns- the value for thecolumnsrecord componentid- the value for theidrecord componentinstantiator- the value for theinstantiatorrecord componentextractor- the value for theextractorrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
table
-
columns
-
id
-
instantiator
Returns the value of theinstantiatorrecord component.- Returns:
- the value of the
instantiatorrecord component
-
extractor
-