Package org.h2.bnf.context
Class DbColumn
java.lang.Object
org.h2.bnf.context.DbColumn
Keeps the meta data information of a column.
This class is used by the H2 Console.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DbColumn
(DbContents contents, ResultSet rs, boolean procedureColumn) -
Method Summary
Modifier and TypeMethodDescriptionstatic DbColumn
getColumn
(DbContents contents, ResultSet rs) Create a column from a DatabaseMetaData.getColumns row.getName()
int
static DbColumn
getProcedureColumn
(DbContents contents, ResultSet rs) Create a column from a DatabaseMetaData.getProcedureColumns row.
-
Field Details
-
name
-
quotedName
-
dataType
-
position
private final int position
-
-
Constructor Details
-
DbColumn
- Throws:
SQLException
-
-
Method Details
-
getProcedureColumn
Create a column from a DatabaseMetaData.getProcedureColumns row.- Parameters:
contents
- the database contentsrs
- the result set- Returns:
- the column
- Throws:
SQLException
- on failure
-
getColumn
Create a column from a DatabaseMetaData.getColumns row.- Parameters:
contents
- the database contentsrs
- the result set- Returns:
- the column
- Throws:
SQLException
- on failure
-
getDataType
- Returns:
- The data type name (including precision and the NOT NULL flag if applicable).
-
getName
- Returns:
- The column name.
-
getQuotedName
- Returns:
- The quoted table name.
-
getPosition
public int getPosition()- Returns:
- Column index
-