public interface TableMetaData
SqlResource
,
ColumnMetaData
Modifier and Type | Interface and Description |
---|---|
static class |
TableMetaData.TableRole
Represents all of the roles a table may plan in a SQL Resource.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnMetaData column)
Adds normal column.
|
void |
addPrimaryKey(ColumnMetaData column)
Adds primary key column.
|
Map<String,ColumnMetaData> |
getColumns()
Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name).
|
String |
getDatabaseName()
Returns database name.
|
List<ColumnMetaData> |
getPrimaryKeys()
Returns ordered list of columns that are primary keys.
|
String |
getQualifiedTableName()
Returns fully qualified table name in database-specific form for use in SQL statements.
|
String |
getRowAlias()
Returns row alias.
|
String |
getRowSetAlias()
Returns row set alias.
|
String |
getTableAlias()
Deprecated.
As of 0.8.11 use
getRowAlias() |
String |
getTableName()
Returns table name.
|
TableMetaData.TableRole |
getTableRole()
Returns role of table in the SQL Resource.
|
boolean |
isChild()
Returns true if the SQL Resource role is child.
|
boolean |
isParent()
Returns true if the SQL Resource role is parent.
|
void |
setAliases(String alias,
String rowAlias,
String rowSetAlias)
Sets all the row and row set aliases.
|
void |
setAttributes(String tableName,
String qualifedTableName,
String databaseName,
TableMetaData.TableRole tableRole)
Sets attributes.
|
void |
setTableAlias(String tableAlias)
Deprecated.
As of 0.8.11 use
setAliases(String, String, String) |
void addColumn(ColumnMetaData column)
void addPrimaryKey(ColumnMetaData column)
Map<String,ColumnMetaData> getColumns()
String getDatabaseName()
List<ColumnMetaData> getPrimaryKeys()
String getQualifiedTableName()
database.table
, for example sakila.film
. PostgreSQL uses the form
database.schema.table
, for example sakila.public.film
.String getRowAlias()
String getRowSetAlias()
@Deprecated String getTableAlias()
getRowAlias()
String getTableName()
TableMetaData.TableRole getTableRole()
boolean isChild()
boolean isParent()
void setAliases(String alias, String rowAlias, String rowSetAlias)
void setAttributes(String tableName, String qualifedTableName, String databaseName, TableMetaData.TableRole tableRole)
@Deprecated void setTableAlias(String tableAlias)
setAliases(String, String, String)
Copyright © 2011-2018 restSQL Project Contributors