java.lang.Object
java.lang.Record
org.itsallcode.jdbc.metadata.TableMetaData
- Record Components:
tableCatalog- table catalog (may benull)tableSchema- table schema (may benull)tableName- table nametableType- table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".remarks- explanatory comment on the table (may benull)typeCatalog- the types catalog (may benull)typeSchema- the types schema (may benull)typeName- type name (may benull)selfReferencingColumnName- name of the designated "identifier" column of a typed table (may benull)refGeneration- specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may benull)
public record TableMetaData(String tableCatalog, String tableSchema, String tableName, String tableType, String remarks, String typeCatalog, String typeSchema, String typeName, String selfReferencingColumnName, String refGeneration)
extends Record
Description of a table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therefGenerationrecord component.remarks()Returns the value of theremarksrecord component.Returns the value of theselfReferencingColumnNamerecord component.Returns the value of thetableCatalogrecord component.Returns the value of thetableNamerecord component.Returns the value of thetableSchemarecord component.Returns the value of thetableTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeCatalogrecord component.typeName()Returns the value of thetypeNamerecord component.Returns the value of thetypeSchemarecord component.
-
Constructor Details
-
TableMetaData
public TableMetaData(String tableCatalog, String tableSchema, String tableName, String tableType, String remarks, String typeCatalog, String typeSchema, String typeName, String selfReferencingColumnName, String refGeneration) Creates an instance of aTableMetaDatarecord class.- Parameters:
tableCatalog- the value for thetableCatalogrecord componenttableSchema- the value for thetableSchemarecord componenttableName- the value for thetableNamerecord componenttableType- the value for thetableTyperecord componentremarks- the value for theremarksrecord componenttypeCatalog- the value for thetypeCatalogrecord componenttypeSchema- the value for thetypeSchemarecord componenttypeName- the value for thetypeNamerecord componentselfReferencingColumnName- the value for theselfReferencingColumnNamerecord componentrefGeneration- the value for therefGenerationrecord 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
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). -
tableCatalog
Returns the value of thetableCatalogrecord component.- Returns:
- the value of the
tableCatalogrecord component
-
tableSchema
Returns the value of thetableSchemarecord component.- Returns:
- the value of the
tableSchemarecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
tableType
Returns the value of thetableTyperecord component.- Returns:
- the value of the
tableTyperecord component
-
remarks
Returns the value of theremarksrecord component.- Returns:
- the value of the
remarksrecord component
-
typeCatalog
Returns the value of thetypeCatalogrecord component.- Returns:
- the value of the
typeCatalogrecord component
-
typeSchema
Returns the value of thetypeSchemarecord component.- Returns:
- the value of the
typeSchemarecord component
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
selfReferencingColumnName
Returns the value of theselfReferencingColumnNamerecord component.- Returns:
- the value of the
selfReferencingColumnNamerecord component
-
refGeneration
Returns the value of therefGenerationrecord component.- Returns:
- the value of the
refGenerationrecord component
-