Class SequenceSnapshotGenerator

  • All Implemented Interfaces:
    liquibase.snapshot.SnapshotGenerator

    public class SequenceSnapshotGenerator
    extends HibernateSnapshotGenerator
    Sequence snapshots are not yet supported, but this class needs to be implemented in order to prevent the default SequenceSnapshotGenerator from running.
    • Constructor Detail

      • SequenceSnapshotGenerator

        public SequenceSnapshotGenerator()
    • Method Detail

      • snapshotObject

        protected liquibase.structure.DatabaseObject snapshotObject​(liquibase.structure.DatabaseObject example,
                                                                    liquibase.snapshot.DatabaseSnapshot snapshot)
                                                             throws liquibase.exception.DatabaseException,
                                                                    liquibase.snapshot.InvalidExampleException
        Specified by:
        snapshotObject in class HibernateSnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException
      • addTo

        protected void addTo​(liquibase.structure.DatabaseObject foundObject,
                             liquibase.snapshot.DatabaseSnapshot snapshot)
                      throws liquibase.exception.DatabaseException,
                             liquibase.snapshot.InvalidExampleException
        Specified by:
        addTo in class HibernateSnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException