Class SqlTableMetadata
java.lang.Object
io.micronaut.data.model.schema.sql.metadata.SqlTableMetadata
SQL table metadata extracted from the underlying table in the database.
-
Constructor Summary
ConstructorsConstructorDescriptionSqlTableMetadata
(String catalog, String schema, String name) Constructs a new instance of SqlTableMetadata with the specified table name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(SqlColumnMetadata column) Adds a new column to the table metadata.@Nullable SqlColumnMetadata
Retrieves the SQL column metadata associated with the specified column name.getName()
Returns the name of the SQL table represented by this metadata object.
-
Constructor Details
-
SqlTableMetadata
Constructs a new instance of SqlTableMetadata with the specified table name.- Parameters:
catalog
- the catalog where table belongs, can be nullschema
- the schema where table belongs. can be nullname
- the name of the SQL table
-
-
Method Details
-
addColumn
Adds a new column to the table metadata.- Parameters:
column
- the column metadata to add
-
getName
Returns the name of the SQL table represented by this metadata object.- Returns:
- the name of the SQL table
-
getColumn
Retrieves the SQL column metadata associated with the specified column name.- Parameters:
name
- the name of the column to retrieve- Returns:
- the SQL column metadata, or null if no such column exists
-