Class Changeset
java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.xml.Changeset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAddColumn
(String tableName) addColumn
(Element parent, String name, String value, LiquibaseConstants.ValueType valueType, @Nullable String remarks) addColumn
(Element parent, String name, String dataType, @Nullable String remarks, CustomChangelog.DefaultValue defaultval) addColumnExists
(Element parent, String tableName, String columnName) void
addCommentNode
(String text) void
addContextAttribute
(ChangelogContext context) void
addContextAttribute
(String contextName) addCreateTable
(String tableName) addCustomChange
(String clazz, @Nullable Map<String, String> params) void
addDropColumn
(String tableName, String columnName) void
addDropDefault
(String tableName, String columnName) Adds adropDefaultValue
tag to the current changeset.void
addDropTable
(String tableName) void
addDropUniqueConstraint
(String tableName, String constraintName) void
addForeignKeyConstraint
(String tableName, String columnNames, String referencedTableName, String referencedColumnNames) void
addForeignKeyExists
(Element parent, String fkey, @Nullable String foreignKeyTableName) void
addModifyDataType
(String tableName, String columnName, String newDataType) void
addNotNullConstraint
(String tableName, String columnName, @Nullable String columnDataType, @Nullable String remarks) addPrecondition
(LiquibaseConstants.PreconditionsValue onFail, LiquibaseConstants.PreconditionsValue onError) void
addPrimaryKey
(String tableName, String... columns) addRenameColumn
(String tableName, String oldColumn, String newColumn) void
void
addSqlCheck
(Element parent, String expectedResult, String sql) addTableExists
(Element parent, String tableName) void
addUniqueConstraint
(String tableName, String columnNames) void
addUniqueConstraintExists
(Element parent, String tableName, String columnNames) void
dropNotNullConstraint
(String tableName, String columnName) void
dropPrimaryKey
(String tableName) Returns the xml element representing this changeset.boolean
void
setId
(ChangesetId id) void
setPrimaryKey
(Element column) void
setRunOnChange
(boolean flag)
-
Constructor Details
-
Changeset
-
-
Method Details
-
getChangesetId
-
setId
-
hasPrecondition
public boolean hasPrecondition() -
addPrecondition
public Element addPrecondition(@Nullable LiquibaseConstants.PreconditionsValue onFail, @Nullable LiquibaseConstants.PreconditionsValue onError) -
addContextAttribute
-
addContextAttribute
-
setRunOnChange
public void setRunOnChange(boolean flag) -
addUniqueConstraint
-
addUniqueConstraintExists
-
addDropUniqueConstraint
-
addNot
-
addAnd
-
addOr
-
addTableExists
-
addColumnExists
-
addSqlCheck
-
addAddColumn
-
addRenameColumn
-
addDropColumn
-
addCreateTable
-
addDropTable
-
addColumn
-
addColumn
-
setPrimaryKey
- Throws:
DbRefactoringException
-
addNotNullConstraint
-
dropNotNullConstraint
-
addForeignKeyConstraint
-
addInsert
-
addUpdate
-
addDropDefault
Adds adropDefaultValue
tag to the current changeset. -
addCommentNode
-
addSql
-
addPrimaryKey
-
dropPrimaryKey
-
addForeignKeyExists
-
addCustomChange
-
addModifyDataType
-
getElement
Returns the xml element representing this changeset.
-