public interface TableMetaData extends ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown| Modifier and Type | Method and Description |
|---|---|
int |
getColumnPosition(String columnName)
Get the position of a column (1-based) given its name.
|
int |
getDeclaredColumnWidth(int column)
Get the column width as declared in the DDL.
|
int |
getSchemaVersion()
Get the version of the schema of the table for which this metadata object
was obtained.
|
int |
getTableColumnPosition(int column)
Get the actual position of a given column in the table.
|
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritableisWrapperFor, unwrapint getTableColumnPosition(int column)
throws SQLException
column - position of the column (1-based); for a projection it is the
position of column in the projectionSQLException - if column could not be found, or there is no corresponding
mapping to a column in table (SQLState: S0022)int getColumnPosition(String columnName) throws SQLException
columnName - name of the columnSQLException - if column with given name could not be found (SQLState: 42X04)int getDeclaredColumnWidth(int column)
throws SQLException
SQLExceptionint getSchemaVersion()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.