Package liquibase.snapshot.jvm
Class SequenceSnapshotGenerator
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.SequenceSnapshotGenerator
- All Implemented Interfaces:
SnapshotGenerator
- Direct Known Subclasses:
SequenceSnapshotGeneratorSnowflake
Snapshot generator for a SEQUENCE object in a JDBC-accessible database
-
Field Summary
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected SqlStatementgetSelectSequenceStatement(Schema schema, Database database) protected DatabaseObjectsnapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) protected BigIntegertoBigInteger(Object value, Database database) protected BooleanMethods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
SequenceSnapshotGenerator
public SequenceSnapshotGenerator()
-
-
Method Details
-
addTo
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
addToin classJdbcSnapshotGenerator- Throws:
DatabaseExceptionInvalidExampleException
-
snapshotObject
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException - Specified by:
snapshotObjectin classJdbcSnapshotGenerator- Throws:
DatabaseException
-
toBoolean
-
toBigInteger
-
getSelectSequenceStatement
-