liquibase.change.core
Class CreateSequenceChange

java.lang.Object
  extended by liquibase.change.AbstractChange
      extended by liquibase.change.core.CreateSequenceChange
All Implemented Interfaces:
Change

public class CreateSequenceChange
extends AbstractChange

Creates a new sequence.


Constructor Summary
CreateSequenceChange()
           
 
Method Summary
protected  Change[] createInverses()
           
 SqlStatement[] generateStatements(Database database)
          Generates the SQL statements required to run the change
 String getConfirmationMessage()
           
 Boolean getCycle()
           
 BigInteger getIncrementBy()
           
 BigInteger getMaxValue()
           
 BigInteger getMinValue()
           
 String getSchemaName()
           
 String getSequenceName()
           
 BigInteger getStartValue()
           
 Boolean isOrdered()
           
 void setCycle(Boolean cycle)
           
 void setIncrementBy(BigInteger incrementBy)
           
 void setMaxValue(BigInteger maxValue)
           
 void setMinValue(BigInteger minValue)
           
 void setOrdered(Boolean ordered)
           
 void setSchemaName(String schemaName)
           
 void setSequenceName(String sequenceName)
           
 void setStartValue(BigInteger startValue)
           
 
Methods inherited from class liquibase.change.AbstractChange
generateCheckSum, generateRollbackStatements, getAffectedDatabaseObjects, getChangeLogParameters, getChangeMetaData, getChangeSet, getResourceAccessor, init, requiresUpdatedDatabaseMetadata, setChangeLogParameters, setChangeSet, setPriority, setResourceAccessor, supports, supportsRollback, validate, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSequenceChange

public CreateSequenceChange()
Method Detail

getSchemaName

public String getSchemaName()

setSchemaName

public void setSchemaName(String schemaName)

getSequenceName

public String getSequenceName()

setSequenceName

public void setSequenceName(String sequenceName)

getStartValue

public BigInteger getStartValue()

setStartValue

public void setStartValue(BigInteger startValue)

getIncrementBy

public BigInteger getIncrementBy()

setIncrementBy

public void setIncrementBy(BigInteger incrementBy)

getMaxValue

public BigInteger getMaxValue()

setMaxValue

public void setMaxValue(BigInteger maxValue)

getMinValue

public BigInteger getMinValue()

setMinValue

public void setMinValue(BigInteger minValue)

isOrdered

public Boolean isOrdered()

setOrdered

public void setOrdered(Boolean ordered)

getCycle

public Boolean getCycle()

setCycle

public void setCycle(Boolean cycle)

generateStatements

public SqlStatement[] generateStatements(Database database)
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

createInverses

protected Change[] createInverses()
Overrides:
createInverses in class AbstractChange

getConfirmationMessage

public String getConfirmationMessage()
Returns:
Confirmation message to be displayed after the change is executed


Copyright © 2012 Liquibase.org. All Rights Reserved.