public class CreateTableStatement extends AbstractSqlStatement
Constructor and Description |
---|
CreateTableStatement(String catalogName,
String schemaName,
String tableName) |
CreateTableStatement(String catalogName,
String schemaName,
String tableName,
String remarks) |
continueOnError, setContinueOnError, skipOnUnsupported
public CreateTableStatement(String catalogName, String schemaName, String tableName)
public String getCatalogName()
public String getSchemaName()
public String getTableName()
public String getTablespace()
public CreateTableStatement setTablespace(String tablespace)
public String getRemarks()
public void setRemarks(String remarks)
public PrimaryKeyConstraint getPrimaryKeyConstraint()
public Set<ForeignKeyConstraint> getForeignKeyConstraints()
public Set<UniqueConstraint> getUniqueConstraints()
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints)
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType)
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue)
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, ColumnConstraint[] constraints)
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, ColumnConstraint[] constraints)
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String remarks, ColumnConstraint... constraints)
public CreateTableStatement addColumnConstraint(NotNullConstraint notNullConstraint)
public CreateTableStatement addColumnConstraint(ForeignKeyConstraint fkConstraint)
public CreateTableStatement addColumnConstraint(UniqueConstraint uniqueConstraint)
public CreateTableStatement addColumnConstraint(AutoIncrementConstraint autoIncrementConstraint)
public Set<AutoIncrementConstraint> getAutoIncrementConstraints()
public Map<String,LiquibaseDataType> getColumnTypes()
public void setSchemaName(String schemaName)
Copyright © 2016 Liquibase.org. All rights reserved.