public interface ColumnMetaData
SqlResource,
TableMetaData| Modifier and Type | Method and Description |
|---|---|
String |
getColumnLabel()
Returns column label, a string identified in double quotes after columns in the select clause in the SQL Resource
definition query.
|
String |
getColumnName()
Returns column name, as it is known by the database.
|
int |
getColumnNumber()
Returns column number in the in the select clause in the SQL Resource definition query.
|
int |
getColumnType()
Returns column type from java.sql.Types.
|
String |
getColumnTypeName()
Returns column type name as given by the database JDBC driver.
|
String |
getDatabaseName()
Returns database name.
|
String |
getQualifiedColumnName()
Returns fully qualified column name in database-specific form for use in SQL statements.
|
String |
getQualifiedTableName()
Returns fully qualified table name in database-specific form for use in SQL statements.
|
String |
getTableName()
Returns table name.
|
TableMetaData.TableRole |
getTableRole()
Returns role of table in the SQL Resource.
|
boolean |
isCharOrDateTimeType()
Returns true if column is a character string or date, time or timestamp.
|
boolean |
isNonqueriedForeignKey()
Returns true for foreign key columns not declared in the SQL Resource query but added by the framework.
|
boolean |
isPrimaryKey()
Returns true if the column is a primary key.
|
boolean |
isReadOnly()
Returns true if the column is read-only, for example derived from SQL function or a database view.
|
String getColumnLabel()
String getColumnName()
int getColumnNumber()
int getColumnType()
TypesString getColumnTypeName()
String getDatabaseName()
String getQualifiedColumnName()
database.table.column, for example sakila.film.film_id. PostgreSQL uses the form
database.schema.table.column, for example sakila.public.film.film_id.String getQualifiedTableName()
database.table, for example sakila.film. PostgreSQL uses the form
database.schema.table, for example sakila.public.film.String getTableName()
TableMetaData.TableRole getTableRole()
boolean isCharOrDateTimeType()
boolean isNonqueriedForeignKey()
boolean isPrimaryKey()
boolean isReadOnly()
Copyright © 2011 restSQL Project Contributors