Package liquibase.statement.core
Class CreateTableStatement
java.lang.Object
liquibase.statement.AbstractSqlStatement
liquibase.statement.core.CreateTableStatement
- All Implemented Interfaces:
CompoundStatement
,SqlStatement
-
Field Summary
Fields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT
-
Constructor Summary
ConstructorDescriptionCreateTableStatement
(String catalogName, String schemaName, String tableName) CreateTableStatement
(String catalogName, String schemaName, String tableName, boolean ifNotExists) CreateTableStatement
(String catalogName, String schemaName, String tableName, boolean ifNotExists, boolean rowDependencies) CreateTableStatement
(String catalogName, String schemaName, String tableName, String remarks) CreateTableStatement
(String catalogName, String schemaName, String tableName, String remarks, String tableType) CreateTableStatement
(String catalogName, String schemaName, String tableName, String remarks, String tableType, boolean ifNotExists) CreateTableStatement
(String catalogName, String schemaName, String tableName, String remarks, String tableType, boolean ifNotExists, boolean rowDependencies) -
Method Summary
Modifier and TypeMethodDescriptionaddColumn
(String columnName, LiquibaseDataType columnType) addColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue) addColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, String remarks, ColumnConstraint... constraints) addColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, ColumnConstraint[] constraints) addColumn
(String columnName, LiquibaseDataType columnType, String defaultValueConstraintName, Object defaultValue, String remarks, ColumnConstraint... constraints) addColumn
(String columnName, LiquibaseDataType columnType, ColumnConstraint[] constraints) addColumnConstraint
(AutoIncrementConstraint autoIncrementConstraint) addColumnConstraint
(ForeignKeyConstraint fkConstraint) addColumnConstraint
(NotNullConstraint notNullConstraint) addColumnConstraint
(UniqueConstraint uniqueConstraint) addPrimaryKeyColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, String remarks, ColumnConstraint... constraints) addPrimaryKeyColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, ColumnConstraint... constraints) addPrimaryKeyColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, String keyName, String tablespace, ColumnConstraint... constraints) addPrimaryKeyColumn
(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints) getColumnRemarks
(String column) getDefaultValue
(String column) getDefaultValueConstraintName
(String column) boolean
isComputed
(String columnName) boolean
boolean
void
setComputed
(String columnName) void
setIfNotExists
(boolean ifNotExists) void
setRemarks
(String remarks) void
setRowDependencies
(boolean rowDependencies) void
setSchemaName
(String schemaName) setTablespace
(String tablespace) void
setTableType
(String tableType) 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
Methods inherited from interface liquibase.statement.SqlStatement
continueOnError, skipOnUnsupported
-
Constructor Details
-
CreateTableStatement
-
CreateTableStatement
-
CreateTableStatement
-
CreateTableStatement
-
CreateTableStatement
-
CreateTableStatement
-
CreateTableStatement
-
-
Method Details
-
getCatalogName
-
getSchemaName
-
getTableName
-
getColumns
-
getTablespace
-
setTablespace
-
getRemarks
-
setRemarks
-
getPrimaryKeyConstraint
-
getForeignKeyConstraints
-
getUniqueConstraints
-
getNotNullColumns
-
addPrimaryKeyColumn
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, String keyName, String tablespace, ColumnConstraint... constraints) -
addPrimaryKeyColumn
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, String keyName, String tablespace, ColumnConstraint... constraints) -
addPrimaryKeyColumn
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, ColumnConstraint... constraints) -
addPrimaryKeyColumn
public CreateTableStatement addPrimaryKeyColumn(String columnName, LiquibaseDataType columnType, Object defaultValue, Boolean validate, boolean deferrable, boolean initiallyDeferred, String keyName, String tablespace, String remarks, ColumnConstraint... constraints) -
addColumn
-
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) -
addColumn
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, String defaultValueConstraintName, Object defaultValue, String remarks, ColumnConstraint... constraints) -
getDefaultValue
-
getDefaultValueConstraintName
-
getColumnRemarks
-
addColumnConstraint
-
addColumnConstraint
-
addColumnConstraint
-
addColumnConstraint
-
getAutoIncrementConstraints
-
getColumnTypes
-
getDefaultValues
-
getDefaultValueConstraintNames
-
setSchemaName
-
setComputed
-
isComputed
-
getTableType
-
setTableType
-
isIfNotExists
public boolean isIfNotExists() -
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
isRowDependencies
public boolean isRowDependencies() -
setRowDependencies
public void setRowDependencies(boolean rowDependencies)
-