public class TableInfo
extends java.lang.Object
Constructor and Description |
---|
TableInfo(java.lang.String name,
java.util.List<ColumnInfo> columns)
Construct a TableInfo object with a table name and columns.
|
TableInfo(java.lang.String name,
java.util.List<ColumnInfo> columns,
SchemaInfo schema)
Construct a TableInfo object with its columns and the schema it belongs to.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ColumnInfo> |
getColumns() |
java.lang.String |
getName() |
SchemaInfo |
getSchema() |
public TableInfo(java.lang.String name, java.util.List<ColumnInfo> columns, SchemaInfo schema)
Construct a TableInfo object with its columns and the schema it belongs to.
name
- A String representation of the table name.columns
- A list of ColumnInfo
objects representing columns belonging to the
table.schema
- A SchemaInfo
object that the table belongs topublic TableInfo(java.lang.String name, java.util.List<ColumnInfo> columns)
Construct a TableInfo object with a table name and columns. This method is to be used when the target connection's database does have a notion of a schema.
name
- A String representation of the table name.columns
- A list of ColumnInfo
objects representing columns belonging to the
table.public java.util.List<ColumnInfo> getColumns()
ColumnInfo
objects belonging to the table.public java.lang.String getName()
public SchemaInfo getSchema()
SchemaInfo
object that the table belongs to. Returns null if schema does
not exist.