liquibase.sdk.supplier.change
Class AbstractChangeSupplier<T extends Change>

java.lang.Object
  extended by liquibase.sdk.supplier.change.AbstractChangeSupplier<T>
All Implemented Interfaces:
ChangeSupplier<T>
Direct Known Subclasses:
AddAutoIncrementChangeSupplier, AddColumnChangeSupplier, AddDefaultValueChangeSupplier, AddForeignKeyConstraintChangeSupplier, AddLookupTableChangeSupplier, AddNotNullConstraintChangeSupplier, AddPrimaryKeyChangeSupplier, AddUniqueConstraintChangeSupplier, AlterSequenceChangeSupplier, CreateIndexChangeSupplier, CreateProcedureChangeSupplier, CreateSequenceChangeSupplier, CreateTableChangeSupplier, CreateViewChangeSupplier, CustomChangeWrapperSupplier, DeleteDataChangeSupplier, DropAllForeignKeyConstraintsChangeSupplier, DropColumnChangeSupplier, DropDefaultValueChangeSupplier, DropForeignKeyConstraintChangeSupplier, DropIndexChangeSupplier, DropNotNullConstraintChangeSupplier, DropPrimaryKeyChangeSupplier, DropProcedureChangeSupplier, DropSequenceChangeSupplier, DropTableChangeSupplier, DropUniqueConstraintChangeSupplier, DropViewChangeSupplier, EmptyChangeSupplier, ExecuteShellCommandChangeSupplier, InsertDataChangeSupplier, LoadDataChangeSupplier, LoadUpdateDataChangeSupplier, MergeColumnChangeSupplier, ModifyDataTypeChangeSupplier, RawSQLChangeSupplier, RenameColumnChangeSupplier, RenameSequenceChangeSupplier, RenameTableChangeSupplier, RenameViewChangeSupplier, SQLFileChangeSupplier, StopChangeSupplier, TagDatabaseChangeSupplier, UpdateDataChangeSupplier

public abstract class AbstractChangeSupplier<T extends Change>
extends Object
implements ChangeSupplier<T>


Constructor Summary
protected AbstractChangeSupplier(Class<? extends Change> changeClass)
           
 
Method Summary
protected  AddColumnConfigSupplier getAddColumnConfigSupplier()
           
 Collection<Change> getAllParameterPermutations(Database database)
           
 String getChangeName()
           
protected  List getTestValues(ChangeParameterMetaData changeParam, Database database)
           
 boolean isValid(Change change, Database database)
           
 Change[] revertDatabase(T change)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface liquibase.sdk.supplier.change.ChangeSupplier
checkDiffResult, prepareDatabase
 

Constructor Detail

AbstractChangeSupplier

protected AbstractChangeSupplier(Class<? extends Change> changeClass)
Method Detail

getChangeName

public String getChangeName()

revertDatabase

public Change[] revertDatabase(T change)
                        throws Exception
Specified by:
revertDatabase in interface ChangeSupplier<T extends Change>
Throws:
Exception

getAllParameterPermutations

public Collection<Change> getAllParameterPermutations(Database database)
                                               throws Exception
Specified by:
getAllParameterPermutations in interface ChangeSupplier<T extends Change>
Throws:
Exception

getTestValues

protected List getTestValues(ChangeParameterMetaData changeParam,
                             Database database)
                      throws Exception
Throws:
Exception

getAddColumnConfigSupplier

protected AddColumnConfigSupplier getAddColumnConfigSupplier()

isValid

public boolean isValid(Change change,
                       Database database)
Specified by:
isValid in interface ChangeSupplier<T extends Change>


Copyright © 2015 Liquibase.org. All rights reserved.