net.sf.jaxme.sqls
Interface Column

All Known Subinterfaces:
BinaryColumn, DB2Column, HsqlDbColumn, StringColumn
All Known Implementing Classes:
ColumnImpl, DB2ColumnImpl, HsqlDbColumnImpl

public interface Column

Author:
Jochen Wiedmann

Nested Class Summary
static interface Column.Name
           
static interface Column.Type
           
 
Method Summary
 Column.Name getName()
          Returns the columns name.
 java.lang.String getQName()
          Returns the columns fully qualified name, which is getTable().getQName() + "." + getName().
 Table getTable()
          Returns the columns table.
 Column.Type getType()
          Returns the columns type.
 boolean isBinaryColumn()
          Returns whether this Column may be casted to a BinaryColumn.
 boolean isNullable()
          Returns whether the column is nullable.
 boolean isPrimaryKeyPart()
          Returns whether this column is part of the primary key.
 boolean isStringColumn()
          Returns whether this Column may be casted to a StringColumn.
 void setNullable(boolean pNullable)
          Sets whether the column is nullable.
 

Method Detail

getTable

public Table getTable()

Returns the columns table.


getName

public Column.Name getName()

Returns the columns name.


getQName

public java.lang.String getQName()

Returns the columns fully qualified name, which is getTable().getQName() + "." + getName().


getType

public Column.Type getType()

Returns the columns type.


isPrimaryKeyPart

public boolean isPrimaryKeyPart()

Returns whether this column is part of the primary key.


setNullable

public void setNullable(boolean pNullable)

Sets whether the column is nullable. By default columns are not nullable.


isNullable

public boolean isNullable()

Returns whether the column is nullable. By default columns are not nullable.


isStringColumn

public boolean isStringColumn()

Returns whether this Column may be casted to a StringColumn.


isBinaryColumn

public boolean isBinaryColumn()

Returns whether this Column may be casted to a BinaryColumn.