schemacrawler.schema
Interface BaseColumn

All Superinterfaces:
Comparable<NamedObject>, DatabaseObject, DependantObject, NamedObject, Serializable
All Known Subinterfaces:
Column, IndexColumn, ProcedureColumn, ResultsColumn

public interface BaseColumn
extends DependantObject

Column for tables and procedures.

Author:
Sualeh Fatehi

Method Summary
 int getDecimalDigits()
          Get the number of fractional digits.
 int getOrdinalPosition()
          Get the ordinal position of the column in the table, starting at 1.
 int getSize()
          Get the column size.
 ColumnDataType getType()
          Get the data type of column.
 String getWidth()
          Gets the width of the column, if the column width is required.
 boolean isNullable()
          Whether the column is nullable.
 
Methods inherited from interface schemacrawler.schema.DependantObject
getParent
 
Methods inherited from interface schemacrawler.schema.DatabaseObject
getSchema
 
Methods inherited from interface schemacrawler.schema.NamedObject
getAttribute, getAttributes, getFullName, getName, getRemarks, setAttribute
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDecimalDigits

int getDecimalDigits()
Get the number of fractional digits.

Returns:
Number of fractional digits

getOrdinalPosition

int getOrdinalPosition()
Get the ordinal position of the column in the table, starting at 1.

Returns:
Ordinal position of the column in the table, starting at 1

getSize

int getSize()
Get the column size. For char or date types this is the maximum number of characters, for numeric or decimal types this is precision.

Returns:
Column size

getType

ColumnDataType getType()
Get the data type of column.

Returns:
Column data type

getWidth

String getWidth()
Gets the width of the column, if the column width is required. (Column width is not significant for column types such as TIME and DATE.)

Returns:
Column width as a String

isNullable

boolean isNullable()
Whether the column is nullable.

Returns:
Whether the column is nullable


Copyright © 2003-2009 Sualeh Fatehi. All Rights Reserved.