Package liquibase.statement.core
Class CreateTableStatement
- java.lang.Object
-
- liquibase.statement.AbstractSqlStatement
-
- liquibase.statement.core.CreateTableStatement
-
- All Implemented Interfaces:
CompoundStatement
,SqlStatement
public class CreateTableStatement extends AbstractSqlStatement implements CompoundStatement
-
-
Field Summary
-
Fields inherited from interface liquibase.statement.SqlStatement
EMPTY_SQL_STATEMENT
-
-
Constructor Summary
Constructors Constructor Description CreateTableStatement(String catalogName, String schemaName, String tableName)
CreateTableStatement(String catalogName, String schemaName, String tableName, boolean ifNotExists)
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)
-
Method Summary
-
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 Detail
-
CreateTableStatement
public CreateTableStatement(String catalogName, String schemaName, String tableName)
-
CreateTableStatement
public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks)
-
CreateTableStatement
public CreateTableStatement(String catalogName, String schemaName, String tableName, String remarks, String tableType)
-
CreateTableStatement
public CreateTableStatement(String catalogName, String schemaName, String tableName, boolean ifNotExists)
-
-
Method Detail
-
getCatalogName
public String getCatalogName()
-
getSchemaName
public String getSchemaName()
-
getTableName
public String getTableName()
-
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 Map<String,NotNullConstraint> 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
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)
-
addColumn
public CreateTableStatement addColumn(String columnName, LiquibaseDataType columnType, String defaultValueConstraintName, Object defaultValue, String remarks, ColumnConstraint... constraints)
-
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()
-
setSchemaName
public void setSchemaName(String schemaName)
-
setComputed
public void setComputed(String columnName)
-
isComputed
public boolean isComputed(String columnName)
-
getTableType
public String getTableType()
-
setTableType
public void setTableType(String tableType)
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
-