Class HibernateSnapshotGenerator

    • Field Summary

      • Fields inherited from interface liquibase.snapshot.SnapshotGenerator

        PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected HibernateSnapshotGenerator​(Class<? extends liquibase.structure.DatabaseObject> defaultFor)  
      protected HibernateSnapshotGenerator​(Class<? extends liquibase.structure.DatabaseObject> defaultFor, Class<? extends liquibase.structure.DatabaseObject>[] addsTo)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Class<? extends liquibase.structure.DatabaseObject>[] addsTo()  
      protected abstract void addTo​(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot)  
      protected org.hibernate.mapping.Table findHibernateTable​(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)  
      int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)  
      Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()  
      liquibase.structure.DatabaseObject snapshot​(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain)  
      protected abstract liquibase.structure.DatabaseObject snapshotObject​(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)  
    • Constructor Detail

      • HibernateSnapshotGenerator

        protected HibernateSnapshotGenerator​(Class<? extends liquibase.structure.DatabaseObject> defaultFor)
      • HibernateSnapshotGenerator

        protected HibernateSnapshotGenerator​(Class<? extends liquibase.structure.DatabaseObject> defaultFor,
                                             Class<? extends liquibase.structure.DatabaseObject>[] addsTo)
    • Method Detail

      • replaces

        public Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()
        Specified by:
        replaces in interface liquibase.snapshot.SnapshotGenerator
      • getPriority

        public final int getPriority​(Class<? extends liquibase.structure.DatabaseObject> objectType,
                                     liquibase.database.Database database)
        Specified by:
        getPriority in interface liquibase.snapshot.SnapshotGenerator
      • addsTo

        public final Class<? extends liquibase.structure.DatabaseObject>[] addsTo()
        Specified by:
        addsTo in interface liquibase.snapshot.SnapshotGenerator
      • snapshot

        public final liquibase.structure.DatabaseObject snapshot​(liquibase.structure.DatabaseObject example,
                                                                 liquibase.snapshot.DatabaseSnapshot snapshot,
                                                                 liquibase.snapshot.SnapshotGeneratorChain chain)
                                                          throws liquibase.exception.DatabaseException,
                                                                 liquibase.snapshot.InvalidExampleException
        Specified by:
        snapshot in interface liquibase.snapshot.SnapshotGenerator
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException
      • snapshotObject

        protected abstract liquibase.structure.DatabaseObject snapshotObject​(liquibase.structure.DatabaseObject example,
                                                                             liquibase.snapshot.DatabaseSnapshot snapshot)
                                                                      throws liquibase.exception.DatabaseException,
                                                                             liquibase.snapshot.InvalidExampleException
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException
      • addTo

        protected abstract void addTo​(liquibase.structure.DatabaseObject foundObject,
                                      liquibase.snapshot.DatabaseSnapshot snapshot)
                               throws liquibase.exception.DatabaseException,
                                      liquibase.snapshot.InvalidExampleException
        Throws:
        liquibase.exception.DatabaseException
        liquibase.snapshot.InvalidExampleException
      • findHibernateTable

        protected org.hibernate.mapping.Table findHibernateTable​(liquibase.structure.DatabaseObject example,
                                                                 liquibase.snapshot.DatabaseSnapshot snapshot)
                                                          throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException