liquibase.statement.core
Class CreateTableStatement

java.lang.Object
  extended by liquibase.statement.AbstractSqlStatement
      extended by liquibase.statement.core.CreateTableStatement
All Implemented Interfaces:
SqlStatement

public class CreateTableStatement
extends AbstractSqlStatement


Constructor Summary
CreateTableStatement(String catalogName, String schemaName, String tableName)
           
CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks)
           
 
Method Summary
 CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType)
           
 CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, ColumnConstraint[] constraints)
           
 CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue)
           
 CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, ColumnConstraint[] constraints)
           
 CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String remarks, ColumnConstraint... constraints)
           
 CreateTableStatement addColumnConstraint(AutoIncrementConstraint autoIncrementConstraint)
           
 CreateTableStatement addColumnConstraint(ForeignKeyConstraint fkConstraint)
           
 CreateTableStatement addColumnConstraint(NotNullConstraint notNullConstraint)
           
 CreateTableStatement addColumnConstraint(UniqueConstraint uniqueConstraint)
           
 CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints)
           
 Set<AutoIncrementConstraint> getAutoIncrementConstraints()
           
 String getCatalogName()
           
 String getColumnRemarks(String column)
           
 List<String> getColumns()
           
 Map<String,LiquibaseDataType> getColumnTypes()
           
 Object getDefaultValue(String column)
           
 Map<String,Object> getDefaultValues()
           
 Set<ForeignKeyConstraint> getForeignKeyConstraints()
           
 Set<String> getNotNullColumns()
           
 PrimaryKeyConstraint getPrimaryKeyConstraint()
           
 String getRemarks()
           
 String getSchemaName()
           
 String getTableName()
           
 String getTablespace()
           
 Set<UniqueConstraint> getUniqueConstraints()
           
 void setRemarks(String remarks)
           
 void setSchemaName(String schemaName)
           
 CreateTableStatement setTablespace(String tablespace)
           
 
Methods inherited from class liquibase.statement.AbstractSqlStatement
continueOnError, setContinueOnError, skipOnUnsupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTableStatement

public CreateTableStatement(String catalogName,
                            String schemaName,
                            String tableName)

CreateTableStatement

public CreateTableStatement(String catalogName,
                            String schemaName,
                            String tableName,
                            String remarks)
Method Detail

getCatalogName

public String getCatalogName()

getSchemaName

public String getSchemaName()

getTableName

public String getTableName()

getColumns

public List<String> getColumns()

getTablespace

public String getTablespace()

setTablespace

public CreateTableStatement setTablespace(String tablespace)

getRemarks

public String getRemarks()

setRemarks

public void setRemarks(String remarks)

getPrimaryKeyConstraint

public PrimaryKeyConstraint getPrimaryKeyConstraint()

getForeignKeyConstraints

public Set<ForeignKeyConstraint> getForeignKeyConstraints()

getUniqueConstraints

public Set<UniqueConstraint> getUniqueConstraints()

getNotNullColumns

public Set<String> getNotNullColumns()

addPrimaryKeyColumn

public CreateTableStatement addPrimaryKeyColumn(String columnName,
                                                LiquibaseDataType columnType,
                                                Object defaultValue,
                                                String keyName,
                                                String tablespace,
                                                ColumnConstraint... constraints)

addColumn

public CreateTableStatement addColumn(String columnName,
                                      LiquibaseDataType columnType)

addColumn

public CreateTableStatement addColumn(String columnName,
                                      LiquibaseDataType columnType,
                                      Object defaultValue)

addColumn

public CreateTableStatement addColumn(String columnName,
                                      LiquibaseDataType columnType,
                                      ColumnConstraint[] constraints)

addColumn

public CreateTableStatement addColumn(String columnName,
                                      LiquibaseDataType columnType,
                                      Object defaultValue,
                                      ColumnConstraint[] constraints)

addColumn

public CreateTableStatement addColumn(String columnName,
                                      LiquibaseDataType columnType,
                                      Object defaultValue,
                                      String remarks,
                                      ColumnConstraint... constraints)

getDefaultValue

public Object getDefaultValue(String column)

getColumnRemarks

public String getColumnRemarks(String column)

addColumnConstraint

public CreateTableStatement addColumnConstraint(NotNullConstraint notNullConstraint)

addColumnConstraint

public CreateTableStatement addColumnConstraint(ForeignKeyConstraint fkConstraint)

addColumnConstraint

public CreateTableStatement addColumnConstraint(UniqueConstraint uniqueConstraint)

addColumnConstraint

public CreateTableStatement addColumnConstraint(AutoIncrementConstraint autoIncrementConstraint)

getAutoIncrementConstraints

public Set<AutoIncrementConstraint> getAutoIncrementConstraints()

getColumnTypes

public Map<String,LiquibaseDataType> getColumnTypes()

getDefaultValues

public Map<String,Object> getDefaultValues()

setSchemaName

public void setSchemaName(String schemaName)


Copyright © 2016 Liquibase.org. All rights reserved.