liquibase.change
Class AlterSequenceChange
java.lang.Object
liquibase.change.AbstractChange
liquibase.change.AlterSequenceChange
- All Implemented Interfaces:
- Change
public class AlterSequenceChange
- extends AbstractChange
Modifies properties of an existing sequence.
| Methods inherited from class liquibase.change.AbstractChange |
canRollBack, createInverses, executeRollbackStatements, executeStatements, generateRollbackStatements, getChangeName, getChangeSet, getFileOpener, getMD5Sum, getTagName, saveRollbackStatement, saveStatements, setChangeSet, setFileOpener, setUp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlterSequenceChange
public AlterSequenceChange()
getSchemaName
public java.lang.String getSchemaName()
setSchemaName
public void setSchemaName(java.lang.String schemaName)
getSequenceName
public java.lang.String getSequenceName()
setSequenceName
public void setSequenceName(java.lang.String sequenceName)
getIncrementBy
public java.lang.Integer getIncrementBy()
setIncrementBy
public void setIncrementBy(java.lang.Integer incrementBy)
getMaxValue
public java.lang.Integer getMaxValue()
setMaxValue
public void setMaxValue(java.lang.Integer maxValue)
getMinValue
public java.lang.Integer getMinValue()
setMinValue
public void setMinValue(java.lang.Integer minValue)
isOrdered
public java.lang.Boolean isOrdered()
setOrdered
public void setOrdered(java.lang.Boolean ordered)
validate
public void validate(Database database)
throws InvalidChangeDefinitionException
- Throws:
InvalidChangeDefinitionException
generateStatements
public SqlStatement[] generateStatements(Database database)
throws UnsupportedChangeException
- Description copied from interface:
Change
- Generates the SQL statements required to run the change
- Parameters:
database - databasethe target Database associated to this change's statements
- Returns:
- an array of
Strings with the statements
- Throws:
UnsupportedChangeException - if this change is not supported by the Database passed as argument
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- Description copied from interface:
Change
- Confirmation message to be displayed after the change is executed
- Returns:
- a
String containing the message after the change is executed
createNode
public org.w3c.dom.Element createNode(org.w3c.dom.Document currentChangeLogFileDOM)
- Description copied from interface:
Change
- Creates an XML element (of type
Node) of the change object, and adds it
to the Document object passed as argument
- Parameters:
currentChangeLogFileDOM - the current Document where this element is being added
- Returns:
- the
Node object created
getAffectedDatabaseObjects
public java.util.Set<DatabaseObject> getAffectedDatabaseObjects()