Class ColumnSnapshotGenerator

java.lang.Object
liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
liquibase.ext.hibernate.snapshot.ColumnSnapshotGenerator
All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator

public class ColumnSnapshotGenerator extends HibernateSnapshotGenerator
Columns are snapshotted along with with Tables in TableSnapshotGenerator but this class needs to be here to keep the default ColumnSnapshotGenerator from running. Ideally the column logic would be moved out of the TableSnapshotGenerator to better work in situations where the object types to snapshot are being controlled, but that is not the case yet.
  • Field Summary

    Fields inherited from interface liquibase.snapshot.SnapshotGenerator

    PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot)
     
    Class<? extends liquibase.snapshot.SnapshotGenerator>[]
     
    protected void
    snapshotColumn(liquibase.structure.core.Column column, liquibase.snapshot.DatabaseSnapshot snapshot)
     
    protected liquibase.structure.DatabaseObject
    snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)
     
    protected liquibase.structure.core.DataType
    toDataType(String hibernateType, Integer sqlTypeCode)
     

    Methods inherited from class liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator

    addsTo, findHibernateTable, getPriority, snapshot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ColumnSnapshotGenerator

      public ColumnSnapshotGenerator()
  • Method Details

    • 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
    • snapshotColumn

      protected void snapshotColumn(liquibase.structure.core.Column column, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException
      Throws:
      liquibase.exception.DatabaseException
    • toDataType

      protected liquibase.structure.core.DataType toDataType(String hibernateType, Integer sqlTypeCode) throws liquibase.exception.DatabaseException
      Throws:
      liquibase.exception.DatabaseException
    • replaces

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