Class CreateTable

java.lang.Object
net.sf.jsqlparser.statement.create.table.CreateTable
All Implemented Interfaces:
Serializable, Model, Statement

public class CreateTable extends Object implements Statement
See Also:
  • Field Details

    • table

      private Table table
    • unlogged

      private boolean unlogged
    • createOptionsStrings

      private List<String> createOptionsStrings
    • tableOptionsStrings

      private List<String> tableOptionsStrings
    • columnDefinitions

      private List<ColumnDefinition> columnDefinitions
    • columns

      private List<String> columns
    • indexes

      private List<Index> indexes
    • select

      private Select select
    • likeTable

      private Table likeTable
    • selectParenthesis

      private boolean selectParenthesis
    • ifNotExists

      private boolean ifNotExists
    • orReplace

      private boolean orReplace
    • rowMovement

      private RowMovement rowMovement
    • interleaveIn

      private SpannerInterleaveIn interleaveIn
  • Constructor Details

    • CreateTable

      public CreateTable()
  • Method Details

    • accept

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

      public Table getTable()
    • setTable

      public void setTable(Table table)
    • isUnlogged

      public boolean isUnlogged()
    • setUnlogged

      public void setUnlogged(boolean unlogged)
    • getColumnDefinitions

      public List<ColumnDefinition> getColumnDefinitions()
      Returns:
      a list of ColumnDefinitions of this table.
    • setColumnDefinitions

      public void setColumnDefinitions(List<ColumnDefinition> list)
    • getColumns

      public List<String> getColumns()
    • setColumns

      public void setColumns(List<String> columns)
    • getTableOptionsStrings

      public List<String> getTableOptionsStrings()
      Returns:
      a list of options (as simple strings) of this table definition, as ("TYPE", "=", "MYISAM")
    • setTableOptionsStrings

      public void setTableOptionsStrings(List<String> tableOptionsStrings)
    • getCreateOptionsStrings

      public List<String> getCreateOptionsStrings()
    • setCreateOptionsStrings

      public void setCreateOptionsStrings(List<String> createOptionsStrings)
    • getIndexes

      public List<Index> getIndexes()
      Returns:
      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(List<Index> list)
    • getSelect

      public Select getSelect()
    • setSelect

      public void setSelect(Select select, boolean parenthesis)
    • getLikeTable

      public Table getLikeTable()
    • setLikeTable

      public void setLikeTable(Table likeTable, boolean parenthesis)
    • isIfNotExists

      public boolean isIfNotExists()
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • isOrReplace

      public boolean isOrReplace()
    • setOrReplace

      public void setOrReplace(boolean orReplace)
    • isSelectParenthesis

      public boolean isSelectParenthesis()
    • setSelectParenthesis

      public void setSelectParenthesis(boolean selectParenthesis)
    • getRowMovement

      public RowMovement getRowMovement()
    • setRowMovement

      public void setRowMovement(RowMovement rowMovement)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withTable

      public CreateTable withTable(Table table)
    • withUnlogged

      public CreateTable withUnlogged(boolean unlogged)
    • withCreateOptionsStrings

      public CreateTable withCreateOptionsStrings(List<String> createOptionsStrings)
    • withSelectParenthesis

      public CreateTable withSelectParenthesis(boolean selectParenthesis)
    • withIfNotExists

      public CreateTable withIfNotExists(boolean ifNotExists)
    • withRowMovement

      public CreateTable withRowMovement(RowMovement rowMovement)
    • withTableOptionsStrings

      public CreateTable withTableOptionsStrings(List<String> tableOptionsStrings)
    • withColumnDefinitions

      public CreateTable withColumnDefinitions(List<ColumnDefinition> columnDefinitions)
    • withColumns

      public CreateTable withColumns(List<String> columns)
    • withIndexes

      public CreateTable withIndexes(List<Index> indexes)
    • addCreateOptionsStrings

      public CreateTable addCreateOptionsStrings(String... createOptionsStrings)
    • addCreateOptionsStrings

      public CreateTable addCreateOptionsStrings(Collection<String> createOptionsStrings)
    • addColumnDefinitions

      public CreateTable addColumnDefinitions(ColumnDefinition... columnDefinitions)
    • addColumnDefinitions

      public CreateTable addColumnDefinitions(Collection<? extends ColumnDefinition> columnDefinitions)
    • addColumns

      public CreateTable addColumns(String... columns)
    • addColumns

      public CreateTable addColumns(Collection<String> columns)
    • addIndexes

      public CreateTable addIndexes(Index... indexes)
    • addIndexes

      public CreateTable addIndexes(Collection<? extends Index> indexes)
    • getSpannerInterleaveIn

      public SpannerInterleaveIn getSpannerInterleaveIn()
    • setSpannerInterleaveIn

      public void setSpannerInterleaveIn(SpannerInterleaveIn spannerInterleaveIn)
    • withSpannerInterleaveIn

      public CreateTable withSpannerInterleaveIn(SpannerInterleaveIn spannerInterleaveIn)