public static class SimpleCatalog.SimpleColumn extends Object implements Column
Column.| Constructor and Description |
|---|
SimpleColumn(String name,
String typeName,
int ordinalPosition,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment()
Returns the comment or description of the column.
|
Integer |
getDecimalDigits()
Returns the number of decimal digits (for numeric types).
|
String |
getDefaultValue()
Returns the default value of the column.
|
String |
getName()
Returns the name of the column.
|
int |
getOrdinalPosition()
Returns the ordinal position of the column in the table (1-based).
|
Integer |
getSize()
Returns the column size (e.g., VARCHAR length, INTEGER precision).
|
String |
getTypeName()
Returns the SQL type name of the column (e.g., "VARCHAR", "INTEGER", "DECIMAL").
|
boolean |
isNullable()
Returns whether the column allows NULL values.
|
SimpleCatalog.SimpleColumn |
setComment(String comment)
Sets the comment for the column.
|
SimpleCatalog.SimpleColumn |
setDecimalDigits(Integer decimalDigits)
Sets the decimal digits of the column.
|
SimpleCatalog.SimpleColumn |
setDefaultValue(String defaultValue)
Sets the default value of the column.
|
SimpleCatalog.SimpleColumn |
setSize(Integer size)
Sets the size of the column.
|
public SimpleColumn(String name, String typeName, int ordinalPosition, boolean nullable)
public String getName()
Columnpublic String getTypeName()
ColumngetTypeName in interface Columnpublic int getOrdinalPosition()
ColumngetOrdinalPosition in interface Columnpublic boolean isNullable()
ColumnisNullable in interface Columnpublic Integer getSize()
Columnpublic Integer getDecimalDigits()
ColumngetDecimalDigits in interface Columnpublic String getDefaultValue()
ColumngetDefaultValue in interface Columnpublic String getComment()
ColumngetComment in interface Columnpublic SimpleCatalog.SimpleColumn setSize(Integer size)
size - Column sizepublic SimpleCatalog.SimpleColumn setDecimalDigits(Integer decimalDigits)
decimalDigits - Decimal digitspublic SimpleCatalog.SimpleColumn setDefaultValue(String defaultValue)
defaultValue - Default valuepublic SimpleCatalog.SimpleColumn setComment(String comment)
comment - Column comment