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

java.lang.Object
  extended by net.sf.jsqlparser.statement.create.table.CreateTable
All Implemented Interfaces:
Statement

public class CreateTable
extends java.lang.Object
implements Statement

A "CREATE TABLE" statement


Field Summary
private  java.util.List columnDefinitions
           
private  java.util.List indexes
           
private  Table table
           
private  java.util.List tableOptionsStrings
           
 
Constructor Summary
CreateTable()
           
 
Method Summary
 void accept(StatementVisitor statementVisitor)
           
 java.util.List getColumnDefinitions()
          A list of ColumnDefinitions of this table.
 java.util.List getIndexes()
          A list of Indexes (for example "PRIMARY KEY") of this table.
 Table getTable()
          The name of the table to be created
 java.util.List getTableOptionsStrings()
          A list of options (as simple strings) of this table definition, as ("TYPE", "=", "MYISAM")
 void setColumnDefinitions(java.util.List list)
           
 void setIndexes(java.util.List list)
           
 void setTable(Table table)
           
 void setTableOptionsStrings(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

table

private Table table

tableOptionsStrings

private java.util.List tableOptionsStrings

columnDefinitions

private java.util.List columnDefinitions

indexes

private java.util.List indexes
Constructor Detail

CreateTable

public CreateTable()
Method Detail

accept

public void accept(StatementVisitor statementVisitor)
Specified by:
accept in interface Statement

getTable

public Table getTable()
The name of the table to be created


setTable

public void setTable(Table table)

getColumnDefinitions

public java.util.List getColumnDefinitions()
A list of ColumnDefinitions of this table.


setColumnDefinitions

public void setColumnDefinitions(java.util.List list)

getTableOptionsStrings

public java.util.List getTableOptionsStrings()
A list of options (as simple strings) of this table definition, as ("TYPE", "=", "MYISAM")


setTableOptionsStrings

public void setTableOptionsStrings(java.util.List list)

getIndexes

public java.util.List getIndexes()
A list of Indexes (for example "PRIMARY KEY") of this table.
Indexes created with column definitions (as in mycol INT PRIMARY KEY) are not inserted into this list.


setIndexes

public void setIndexes(java.util.List list)

toString

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