liquibase.ext.hibernate.diff
Class MissingIndexChangeGenerator

java.lang.Object
  extended by liquibase.diff.output.changelog.core.MissingIndexChangeGenerator
      extended by liquibase.ext.hibernate.diff.MissingIndexChangeGenerator
All Implemented Interfaces:
liquibase.diff.output.changelog.ChangeGenerator, liquibase.diff.output.changelog.MissingObjectChangeGenerator

public class MissingIndexChangeGenerator
extends liquibase.diff.output.changelog.core.MissingIndexChangeGenerator

Indexes tend to be added in the database that don't correspond to what is in Hibernate, so we suppress all dropIndex changes based on indexes defined in the database but not in hibernate.


Field Summary
 
Fields inherited from interface liquibase.diff.output.changelog.ChangeGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
 
Constructor Summary
MissingIndexChangeGenerator()
           
 
Method Summary
 liquibase.change.Change[] fixMissing(liquibase.structure.DatabaseObject missingObject, liquibase.diff.output.DiffOutputControl control, liquibase.database.Database referenceDatabase, liquibase.database.Database comparisonDatabase, liquibase.diff.output.changelog.ChangeGeneratorChain chain)
           
 int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
           
 
Methods inherited from class liquibase.diff.output.changelog.core.MissingIndexChangeGenerator
createCreateIndexChange, runAfterTypes, runBeforeTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MissingIndexChangeGenerator

public MissingIndexChangeGenerator()
Method Detail

getPriority

public int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType,
                       liquibase.database.Database database)
Specified by:
getPriority in interface liquibase.diff.output.changelog.ChangeGenerator
Overrides:
getPriority in class liquibase.diff.output.changelog.core.MissingIndexChangeGenerator

fixMissing

public liquibase.change.Change[] fixMissing(liquibase.structure.DatabaseObject missingObject,
                                            liquibase.diff.output.DiffOutputControl control,
                                            liquibase.database.Database referenceDatabase,
                                            liquibase.database.Database comparisonDatabase,
                                            liquibase.diff.output.changelog.ChangeGeneratorChain chain)
Specified by:
fixMissing in interface liquibase.diff.output.changelog.MissingObjectChangeGenerator
Overrides:
fixMissing in class liquibase.diff.output.changelog.core.MissingIndexChangeGenerator


Copyright © 2015 Liquibase.org. All rights reserved.