uk.org.ogsadai.converters.databaseschema
Interface ColumnMetaData

All Known Implementing Classes:
ColumnMetaDataImpl

public interface ColumnMetaData

Metadata for a column in a database table.

Author:
The OGSA-DAI Team.

Method Summary
 int getColumnSize()
          Returns the column size.
 int getDataType()
          Returns the java type of the column.
 int getDecimalDigits()
          Returns the number of decimal digits in this column if the column type is a numerical type.
 java.lang.String getFullName()
          Returns the full name of the column.
 java.lang.String getName()
          Returns the name of the column.
 int getPosition()
          Returns the ordinal position (column number) of this column in the table.
 java.lang.String getSQLType()
          Returns the SQL type of this column.
 TableMetaData getTable()
          Returns the table that this column belongs to.
 boolean isNullable()
          Indicates whether this column can contain NULL values.
 boolean isPrimaryKey()
          Returns the primary key property of this column
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the column.

Returns:
name.

getFullName

public java.lang.String getFullName()
Returns the full name of the column.

Returns:
full name of the column.

getDataType

public int getDataType()
Returns the java type of the column.

Returns:
Java type of this column.

getSQLType

public java.lang.String getSQLType()
Returns the SQL type of this column.

Returns:
SQL type.

getColumnSize

public int getColumnSize()
Returns the column size.

Returns:
column size.

getPosition

public int getPosition()
Returns the ordinal position (column number) of this column in the table.

Returns:
column number.

isPrimaryKey

public boolean isPrimaryKey()
Returns the primary key property of this column

Returns:
true if this columns forms part of the primary key.

getDecimalDigits

public int getDecimalDigits()
Returns the number of decimal digits in this column if the column type is a numerical type.

Returns:
number of decimal digits or -1 if this operation is not applicable to the column type.

isNullable

public boolean isNullable()
Indicates whether this column can contain NULL values.

Returns:
true if the column is nullable, false otherwise.

getTable

public TableMetaData getTable()
Returns the table that this column belongs to.

Returns:
table meta data.