liquibase.changelog
Class AbstractChangeLogHistoryService

java.lang.Object
  extended by liquibase.changelog.AbstractChangeLogHistoryService
All Implemented Interfaces:
ChangeLogHistoryService, PrioritizedService
Direct Known Subclasses:
OfflineChangeLogHistoryService, StandardChangeLogHistoryService

public abstract class AbstractChangeLogHistoryService
extends Object
implements ChangeLogHistoryService


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
AbstractChangeLogHistoryService()
           
 
Method Summary
 Database getDatabase()
           
 RanChangeSet getRanChangeSet(ChangeSet changeSet)
           
 Date getRanDate(ChangeSet changeSet)
          Returns the date the given changeSet was ran.
 ChangeSet.RunStatus getRunStatus(ChangeSet changeSet)
           
protected abstract  void replaceChecksum(ChangeSet changeSet)
           
 void reset()
           
 void setDatabase(Database database)
           
 void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels)
          Upgrades any existing checksums with an out of date version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface liquibase.changelog.ChangeLogHistoryService
clearAllCheckSums, destroy, getNextSequenceValue, getRanChangeSets, init, removeFromHistory, setExecType, supports, tag, tagExists
 
Methods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
 

Constructor Detail

AbstractChangeLogHistoryService

public AbstractChangeLogHistoryService()
Method Detail

getDatabase

public Database getDatabase()

setDatabase

public void setDatabase(Database database)
Specified by:
setDatabase in interface ChangeLogHistoryService

reset

public void reset()
Specified by:
reset in interface ChangeLogHistoryService

getRunStatus

public ChangeSet.RunStatus getRunStatus(ChangeSet changeSet)
                                 throws DatabaseException,
                                        DatabaseHistoryException
Specified by:
getRunStatus in interface ChangeLogHistoryService
Throws:
DatabaseException
DatabaseHistoryException

upgradeChecksums

public void upgradeChecksums(DatabaseChangeLog databaseChangeLog,
                             Contexts contexts,
                             LabelExpression labels)
                      throws DatabaseException
Description copied from interface: ChangeLogHistoryService
Upgrades any existing checksums with an out of date version

Specified by:
upgradeChecksums in interface ChangeLogHistoryService
Throws:
DatabaseException

getRanChangeSet

public RanChangeSet getRanChangeSet(ChangeSet changeSet)
                             throws DatabaseException,
                                    DatabaseHistoryException
Specified by:
getRanChangeSet in interface ChangeLogHistoryService
Throws:
DatabaseException
DatabaseHistoryException

getRanDate

public Date getRanDate(ChangeSet changeSet)
                throws DatabaseException,
                       DatabaseHistoryException
Description copied from interface: ChangeLogHistoryService
Returns the date the given changeSet was ran. Returns null if changeSet was not null.

Specified by:
getRanDate in interface ChangeLogHistoryService
Throws:
DatabaseException
DatabaseHistoryException

replaceChecksum

protected abstract void replaceChecksum(ChangeSet changeSet)
                                 throws DatabaseException
Throws:
DatabaseException


Copyright © 2015 Liquibase.org. All rights reserved.