Interface Column
- All Known Implementing Classes:
SimpleCatalog.SimpleColumn
public interface Column
Represents a column in a database table.
This is a standalone version that can be used independently of Apache Calcite.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the comment or description of the column.Returns the number of decimal digits (for numeric types).Returns the default value of the column.getName()Returns the name of the column.intReturns the ordinal position of the column in the table (1-based).getSize()Returns the column size (e.g., VARCHAR length, INTEGER precision).Returns the SQL type name of the column (e.g., "VARCHAR", "INTEGER", "DECIMAL").booleanReturns whether the column allows NULL values.
-
Method Details
-
getName
Returns the name of the column.- Returns:
- Column name
-
getTypeName
Returns the SQL type name of the column (e.g., "VARCHAR", "INTEGER", "DECIMAL").- Returns:
- SQL type name
-
getOrdinalPosition
int getOrdinalPosition()Returns the ordinal position of the column in the table (1-based).- Returns:
- Ordinal position
-
isNullable
boolean isNullable()Returns whether the column allows NULL values.- Returns:
- true if nullable, false otherwise
-
getSize
Returns the column size (e.g., VARCHAR length, INTEGER precision).- Returns:
- Column size, or null if not applicable
-
getDecimalDigits
Returns the number of decimal digits (for numeric types).- Returns:
- Decimal digits, or null if not applicable
-
getDefaultValue
Returns the default value of the column.- Returns:
- Default value, or null if none
-
getComment
Returns the comment or description of the column.- Returns:
- Column comment, or null if none
-