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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of therefGeneration
record component.remarks()
Returns the value of theremarks
record component.Returns the value of theselfReferencingColumnName
record component.Returns the value of thetableCatalog
record component.Returns the value of thetableName
record component.Returns the value of thetableSchema
record component.Returns the value of thetableType
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetypeCatalog
record component.typeName()
Returns the value of thetypeName
record component.Returns the value of thetypeSchema
record 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 aTableMetaData
record class.- Parameters:
tableCatalog
- the value for thetableCatalog
record componenttableSchema
- the value for thetableSchema
record componenttableName
- the value for thetableName
record componenttableType
- the value for thetableType
record componentremarks
- the value for theremarks
record componenttypeCatalog
- the value for thetypeCatalog
record componenttypeSchema
- the value for thetypeSchema
record componenttypeName
- the value for thetypeName
record componentselfReferencingColumnName
- the value for theselfReferencingColumnName
record componentrefGeneration
- the value for therefGeneration
record 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 thetableCatalog
record component.- Returns:
- the value of the
tableCatalog
record component
-
tableSchema
Returns the value of thetableSchema
record component.- Returns:
- the value of the
tableSchema
record component
-
tableName
Returns the value of thetableName
record component.- Returns:
- the value of the
tableName
record component
-
tableType
Returns the value of thetableType
record component.- Returns:
- the value of the
tableType
record component
-
remarks
Returns the value of theremarks
record component.- Returns:
- the value of the
remarks
record component
-
typeCatalog
Returns the value of thetypeCatalog
record component.- Returns:
- the value of the
typeCatalog
record component
-
typeSchema
Returns the value of thetypeSchema
record component.- Returns:
- the value of the
typeSchema
record component
-
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
selfReferencingColumnName
Returns the value of theselfReferencingColumnName
record component.- Returns:
- the value of the
selfReferencingColumnName
record component
-
refGeneration
Returns the value of therefGeneration
record component.- Returns:
- the value of the
refGeneration
record component
-