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
public class SequenceSnapshotGenerator extends JdbcSnapshotGenerator
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 Constructor Description SequenceSnapshotGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot)
protected SqlStatement
getSelectSequenceStatement(Schema schema, Database database)
protected DatabaseObject
snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot)
protected BigInteger
toBigInteger(Object value, Database database)
protected Boolean
toBoolean(Object value, Database database)
-
Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
-
-
-
-
Method Detail
-
addTo
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
- Specified by:
addTo
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
InvalidExampleException
-
snapshotObject
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException
- Specified by:
snapshotObject
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
-
toBigInteger
protected BigInteger toBigInteger(Object value, Database database)
-
getSelectSequenceStatement
protected SqlStatement getSelectSequenceStatement(Schema schema, Database database)
-
-