org.sql.generation.api.grammar.definition.table
Interface ColumnDefinition

All Superinterfaces:
TableElement, org.atp.api.Typeable<TableElement>

public interface ColumnDefinition
extends TableElement

This syntax element represents the column definition of the table definition statement.

Author:
Stanislav Muhametsin
See Also:
TableDefinition

Method Summary
 String getColumnName()
          Returns the name of this column.
 SQLDataType getDataType()
          Returns the data type of this column.
 String getDefault()
          Returns the default clause for this column.
 Boolean mayBeNull()
          Returns true if this column may have NULL values, otherwise (when NOT NULL constraints is present) returns false.
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Method Detail

getColumnName

String getColumnName()
Returns the name of this column.

Returns:
The name of this column.

getDataType

SQLDataType getDataType()
Returns the data type of this column.

Returns:
The data type of this column.

getDefault

String getDefault()
Returns the default clause for this column. May be null if no default value is defined.

Returns:
The default clause for this column. May be null if no default value is defined.

mayBeNull

Boolean mayBeNull()
Returns true if this column may have NULL values, otherwise (when NOT NULL constraints is present) returns false.

Returns:
true if this column may have NULL values; false otherwise.


Copyright © 2010-2011. All Rights Reserved.