net.sf.jsqlparser.statement.create.table
Class ColumnDefinition

java.lang.Object
  extended by net.sf.jsqlparser.statement.create.table.ColumnDefinition

public class ColumnDefinition
extends java.lang.Object

A column definition in a CREATE TABLE statement.
Example: mycol VARCHAR(30) NOT NULL


Field Summary
private  ColDataType colDataType
           
private  java.lang.String columnName
           
private  java.util.List columnSpecStrings
           
 
Constructor Summary
ColumnDefinition()
           
 
Method Summary
 ColDataType getColDataType()
          The ColDataType of this column definition
 java.lang.String getColumnName()
           
 java.util.List getColumnSpecStrings()
          A list of strings of every word after the datatype of the column.
 void setColDataType(ColDataType type)
           
 void setColumnName(java.lang.String string)
           
 void setColumnSpecStrings(java.util.List list)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

columnName

private java.lang.String columnName

colDataType

private ColDataType colDataType

columnSpecStrings

private java.util.List columnSpecStrings
Constructor Detail

ColumnDefinition

public ColumnDefinition()
Method Detail

getColumnSpecStrings

public java.util.List getColumnSpecStrings()
A list of strings of every word after the datatype of the column.
Example ("NOT", "NULL")


setColumnSpecStrings

public void setColumnSpecStrings(java.util.List list)

getColDataType

public ColDataType getColDataType()
The ColDataType of this column definition


setColDataType

public void setColDataType(ColDataType type)

getColumnName

public java.lang.String getColumnName()

setColumnName

public void setColumnName(java.lang.String string)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object