Top Description Fields Constructors Methods
liquibase.change.core

public Class AlterSequenceChange

extends AbstractChange
Class Inheritance
Annotations
@DatabaseChange
name:alterSequence
description:Alter properties of an existing sequence
priority:1
appliesTo:sequence
Imports
liquibase.change.*, liquibase.database.Database, liquibase.snapshot.SnapshotGeneratorFactory, liquibase.statement.SqlStatement, liquibase.statement.core.AlterSequenceStatement, liquibase.structure.core.Sequence, java.math.BigInteger

Modifies properties of an existing sequence. StartValue is not allowed since we cannot alter the starting sequence number

Field Summary

Modifier and TypeField and Description
private BigInteger
private String
private Boolean
private String
private BigInteger
private BigInteger
private BigInteger
private Boolean
private String
private String
Inherited from liquibase.change.AbstractChange:
NODENAME_COLUMN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ChangeStatus
checkStatus(Database database)

Overrides liquibase.change.AbstractChange.checkStatus.

Implements liquibase.change.Change.checkStatus.

Validate that this change executed successfully against the given database.

public SqlStatement[]
generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

public BigInteger
public String
public String
getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed.

public Boolean
public String
public BigInteger
public BigInteger
public BigInteger
public String
public String
public String
public Boolean
public void
public void
setCatalogName(String catalogName)

public void
public void
setDataType(String dataType)

public void
public void
public void
public void
public void
setSchemaName(String schemaName)

public void
setSequenceName(String sequenceName)

Inherited from liquibase.change.AbstractChange:
createChangeMetaDatacreateChangeParameterMetadatacreateDescriptionMetaDatacreateEmptyColumnConfigcreateExampleValueMetaDatacreateInversescreateMustEqualExistingMetaDatacreateRequiredDatabasesMetaDatacreateSerializationTypeMetaDatacreateSinceMetaDatacreateSupportedDatabasesMetaDatacustomLoadLogicequalsfinishInitializationgenerateCheckSumgenerateRollbackStatementsgenerateRollbackStatementsVolatilegenerateStatementsVolatilegetAffectedDatabaseObjectsgetChangeSetgetDescriptiongetExcludedFieldFiltersgetResourceAccessorgetSerializableFieldNamespacegetSerializableFieldsgetSerializableFieldTypegetSerializableFieldValuegetSerializedObjectNamehashCodeisInvalidPropertyloadmodifyserializeserializeValuesetChangeSetsetResourceAccessorshouldExecuteChangesupportssupportsRollbacktoStringvalidatewarn

Field Detail

cacheSizeback to summary
private BigInteger cacheSize
catalogNameback to summary
private String catalogName
cycleback to summary
private Boolean cycle
dataTypeback to summary
private String dataType
incrementByback to summary
private BigInteger incrementBy
maxValueback to summary
private BigInteger maxValue
minValueback to summary
private BigInteger minValue
orderedback to summary
private Boolean ordered
schemaNameback to summary
private String schemaName
sequenceNameback to summary
private String sequenceName

Constructor Detail

AlterSequenceChangeback to summary
public AlterSequenceChange()

Method Detail

checkStatusback to summary
public ChangeStatus checkStatus(Database database)

Overrides liquibase.change.AbstractChange.checkStatus.

Implements liquibase.change.Change.checkStatus.

Doc from liquibase.change.Change.checkStatus.

Validate that this change executed successfully against the given database. This will check that the update completed at a high level plus check details of the change. For example, a change to add a column will check that the column exists plus data type, default values, etc.

Annotations
@Override
generateStatementsback to summary
public SqlStatement[] generateStatements(Database database)

Implements liquibase.change.Change.generateStatements.

Doc from liquibase.change.Change.generateStatements.

Generates the SqlStatement objects required to run the change for the given database.

NOTE: This method may be called multiple times throughout the changelog execution process and may be called in documentation generation and other integration points as well.

If this method reads from the current database state or uses any other logic that will be affected by whether previous changeSets have ran or not, you must return true from generateStatementsVolatile.
Annotations
@Override
getCacheSizeback to summary
public BigInteger getCacheSize()
Annotations
@DatabaseChangeProperty
description:Number of values to fetch per query
getCatalogNameback to summary
public String getCatalogName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:sequence.catalog
since:3.0
description:Name of the database catalog
getConfirmationMessageback to summary
public String getConfirmationMessage()

Implements liquibase.change.Change.getConfirmationMessage.

Doc from liquibase.change.Change.getConfirmationMessage.

Confirmation message to be displayed after the change is executed. Should include relevant configuration settings to make it as helpful as possible. This method may be called outside the changelog execution process, such as in documentation generation.

Annotations
@Override
getCycleback to summary
public Boolean getCycle()
Annotations
@DatabaseChangeProperty
description:Whether the sequence cycles when it hits its max value
getDataTypeback to summary
public String getDataType()
Annotations
@DatabaseChangeProperty
description:Data type of the sequence
getIncrementByback to summary
public BigInteger getIncrementBy()
Annotations
@DatabaseChangeProperty
description:New amount the sequence should increment by at each call
getMaxValueback to summary
public BigInteger getMaxValue()
Annotations
@DatabaseChangeProperty
description:New maximum value for the sequence
getMinValueback to summary
public BigInteger getMinValue()
Annotations
@DatabaseChangeProperty
description:New minimum value for the sequence
getSchemaNameback to summary
public String getSchemaName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:sequence.schema
description:Name of the database schema
getSequenceNameback to summary
public String getSequenceName()
Annotations
@DatabaseChangeProperty
mustEqualExisting:sequence
description:Name of the sequence
getSerializedObjectNamespaceback to summary
public String getSerializedObjectNamespace()

Overrides liquibase.change.AbstractChange.getSerializedObjectNamespace.

Implements liquibase.serializer.LiquibaseSerializable.getSerializedObjectNamespace.

Annotations
@Override
isOrderedback to summary
public Boolean isOrdered()
Annotations
@DatabaseChangeProperty
description:Whether the sequence is generated in the requested order
setCacheSizeback to summary
public void setCacheSize(BigInteger cacheSize)
setCatalogNameback to summary
public void setCatalogName(String catalogName)
setCycleback to summary
public void setCycle(Boolean cycle)
setDataTypeback to summary
public void setDataType(String dataType)
setIncrementByback to summary
public void setIncrementBy(BigInteger incrementBy)
setMaxValueback to summary
public void setMaxValue(BigInteger maxValue)
setMinValueback to summary
public void setMinValue(BigInteger minValue)
setOrderedback to summary
public void setOrdered(Boolean ordered)
setSchemaNameback to summary
public void setSchemaName(String schemaName)
setSequenceNameback to summary
public void setSequenceName(String sequenceName)