public class CreateTableStatement extends AbstractSqlStatement implements CompoundStatement
EMPTY_SQL_STATEMENT
Constructor and Description |
---|
CreateTableStatement(String catalogName,
String schemaName,
String tableName) |
CreateTableStatement(String catalogName,
String schemaName,
String tableName,
String remarks,
String tableType) |
continueOnError, setContinueOnError, skipOnUnsupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
continueOnError, 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 Map<String,NotNullConstraint> getNotNullColumns()
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints)
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, String keyName, String tablespace, ColumnConstraint... constraints)
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, ColumnConstraint... constraints)
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, String remarks, 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 addColumn(String columnName, LiquibaseDataType columnType, String defaultValueConstraintName, 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)
public void setComputed(String columnName)
public boolean isComputed(String columnName)
public String getTableType()
public void setTableType(String tableType)
Copyright © 2023 Liquibase.org. All rights reserved.