Top Fields Constructors Methods
liquibase.statement.core

public Class CreateTableStatement

extends AbstractSqlStatement
implements CompoundStatement
Class Inheritance
All Implemented Interfaces
liquibase.statement.CompoundStatement, liquibase.statement.SqlStatement
Imports
liquibase.datatype.LiquibaseDataType, liquibase.statement.*, java.util.*

Field Summary

Modifier and TypeField and Description
private final Set<AutoIncrementConstraint>
private final String
private final Map<String, String>
private final List<String>
private final Map<String, LiquibaseDataType>
private final Set<String>
private final Map<String, String>
private final Map<String, Object>
private final Set<ForeignKeyConstraint>
private boolean
private final HashMap<String, NotNullConstraint>
private final Map<String, NotNullConstraint>
private PrimaryKeyConstraint
private String
private String
private final String
private String
private String
tableType

Table type used by some RDBMS (Snowflake, SAP HANA) supporting different ...

private final Set<UniqueConstraint>

Constructor Summary

AccessConstructor and Description
public
CreateTableStatement(String catalogName, String schemaName, String tableName)

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

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

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

public
CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks, String tableType, boolean ifNotExists)

Method Summary

Modifier and TypeMethod and Description
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
public CreateTableStatement
public CreateTableStatement
public CreateTableStatement
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 Set<AutoIncrementConstraint>
public String
public String
public List<String>
public Map<String, LiquibaseDataType>
public Object
public String
public Map<String, String>
public Map<String, Object>
public Set<ForeignKeyConstraint>
public Map<String, NotNullConstraint>
public PrimaryKeyConstraint
public String
public String
public String
public String
public String
public Set<UniqueConstraint>
public boolean
isComputed(String columnName)

public boolean
public void
setComputed(String columnName)

public void
setIfNotExists(boolean ifNotExists)

public void
setRemarks(String remarks)

public void
setSchemaName(String schemaName)

public CreateTableStatement
setTablespace(String tablespace)

public void
setTableType(String tableType)

Inherited from liquibase.statement.AbstractSqlStatement:
continueOnErrorsetContinueOnErrorskipOnUnsupported

Field Detail

autoIncrementConstraintsback to summary
private final Set<AutoIncrementConstraint> autoIncrementConstraints
catalogNameback to summary
private final String catalogName
columnRemarksback to summary
private final Map<String, String> columnRemarks
columnsback to summary
private final List<String> columns
columnTypesback to summary
private final Map<String, LiquibaseDataType> columnTypes
computedColumnsback to summary
private final Set<String> computedColumns
defaultValueConstraintNamesback to summary
private final Map<String, String> defaultValueConstraintNames
defaultValuesback to summary
private final Map<String, Object> defaultValues
foreignKeyConstraintsback to summary
private final Set<ForeignKeyConstraint> foreignKeyConstraints
ifNotExistsback to summary
private boolean ifNotExists
notNullColumnsback to summary
private final HashMap<String, NotNullConstraint> notNullColumns
notNullConstraintsback to summary
private final Map<String, NotNullConstraint> notNullConstraints
primaryKeyConstraintback to summary
private PrimaryKeyConstraint primaryKeyConstraint
remarksback to summary
private String remarks
schemaNameback to summary
private String schemaName
tableNameback to summary
private final String tableName
tablespaceback to summary
private String tablespace
tableTypeback to summary
private String tableType

Table type used by some RDBMS (Snowflake, SAP HANA) supporting different ... types ... of tables (e.g. column- vs. row-based)

uniqueConstraintsback to summary
private final Set<UniqueConstraint> uniqueConstraints

Constructor Detail

CreateTableStatementback to summary
public CreateTableStatement(String catalogName, String schemaName, String tableName)
CreateTableStatementback to summary
public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks)
CreateTableStatementback to summary
public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks, String tableType)
CreateTableStatementback to summary
public CreateTableStatement(String catalogName, String schemaName, String tableName, boolean ifNotExists)
CreateTableStatementback to summary
public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks, String tableType, boolean ifNotExists)

Method Detail

addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType)
addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue)
addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, ColumnConstraint[] constraints)
addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, ColumnConstraint[] constraints)
addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String remarks, ColumnConstraint... constraints)
addColumnback to summary
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, String defaultValueConstraintName, Object defaultValue, String remarks, ColumnConstraint... constraints)
addColumnConstraintback to summary
public CreateTableStatement addColumnConstraint(NotNullConstraint notNullConstraint)
addColumnConstraintback to summary
public CreateTableStatement addColumnConstraint(ForeignKeyConstraint fkConstraint)
addColumnConstraintback to summary
public CreateTableStatement addColumnConstraint(UniqueConstraint uniqueConstraint)
addColumnConstraintback to summary
public CreateTableStatement addColumnConstraint(AutoIncrementConstraint autoIncrementConstraint)
addPrimaryKeyColumnback to summary
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints)
addPrimaryKeyColumnback to summary
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, String keyName, String tablespace, ColumnConstraint... constraints)
addPrimaryKeyColumnback to summary
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, ColumnConstraint... constraints)
addPrimaryKeyColumnback to summary
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, String remarks, ColumnConstraint... constraints)
getAutoIncrementConstraintsback to summary
public Set<AutoIncrementConstraint> getAutoIncrementConstraints()
getCatalogNameback to summary
public String getCatalogName()
getColumnRemarksback to summary
public String getColumnRemarks(String column)
getColumnsback to summary
public List<String> getColumns()
getColumnTypesback to summary
public Map<String, LiquibaseDataType> getColumnTypes()
getDefaultValueback to summary
public Object getDefaultValue(String column)
getDefaultValueConstraintNameback to summary
public String getDefaultValueConstraintName(String column)
getDefaultValueConstraintNamesback to summary
public Map<String, String> getDefaultValueConstraintNames()
getDefaultValuesback to summary
public Map<String, Object> getDefaultValues()
getForeignKeyConstraintsback to summary
public Set<ForeignKeyConstraint> getForeignKeyConstraints()
getNotNullColumnsback to summary
public Map<String, NotNullConstraint> getNotNullColumns()
Annotations
@SuppressWarnings:squid:S4275
getPrimaryKeyConstraintback to summary
public PrimaryKeyConstraint getPrimaryKeyConstraint()
getRemarksback to summary
public String getRemarks()
getSchemaNameback to summary
public String getSchemaName()
getTableNameback to summary
public String getTableName()
getTablespaceback to summary
public String getTablespace()
getTableTypeback to summary
public String getTableType()
getUniqueConstraintsback to summary
public Set<UniqueConstraint> getUniqueConstraints()
isComputedback to summary
public boolean isComputed(String columnName)
isIfNotExistsback to summary
public boolean isIfNotExists()
setComputedback to summary
public void setComputed(String columnName)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setRemarksback to summary
public void setRemarks(String remarks)
setSchemaNameback to summary
public void setSchemaName(String schemaName)
setTablespaceback to summary
public CreateTableStatement setTablespace(String tablespace)
setTableTypeback to summary
public void setTableType(String tableType)