liquibase.changelog
Class OfflineChangeLogHistoryService

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

public class OfflineChangeLogHistoryService
extends AbstractChangeLogHistoryService


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
OfflineChangeLogHistoryService(Database database, File changeLogFile, boolean executeDmlAgainstDatabase, boolean executeDdlAgainstDatabase)
           
 
Method Summary
protected  void appendChangeSet(ChangeSet changeSet, ChangeSet.ExecType execType)
           
 void clearAllCheckSums()
           
 void destroy()
           
 int getNextSequenceValue()
           
 int getPriority()
           
 List<RanChangeSet> getRanChangeSets()
           
 void init()
          Ensures the change log history container is correctly initialized for use.
 boolean isExecuteDdlAgainstDatabase()
           
 boolean isExecuteDmlAgainstDatabase()
           
 void removeFromHistory(ChangeSet changeSet)
           
protected  void replaceChangeSet(ChangeSet changeSet, liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic)
           
protected  void replaceChecksum(ChangeSet changeSet)
           
 void reset()
           
 void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType)
           
 void setExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)
           
 void setExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)
           
 boolean supports(Database database)
           
 void tag(String tagString)
           
 boolean tagExists(String tag)
           
protected  void writeHeader(File file)
           
 
Methods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
getDatabase, getRanChangeSet, getRanDate, getRunStatus, setDatabase, upgradeChecksums
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineChangeLogHistoryService

public OfflineChangeLogHistoryService(Database database,
                                      File changeLogFile,
                                      boolean executeDmlAgainstDatabase,
                                      boolean executeDdlAgainstDatabase)
Method Detail

getPriority

public int getPriority()

supports

public boolean supports(Database database)

isExecuteDmlAgainstDatabase

public boolean isExecuteDmlAgainstDatabase()

setExecuteDmlAgainstDatabase

public void setExecuteDmlAgainstDatabase(boolean executeDmlAgainstDatabase)

isExecuteDdlAgainstDatabase

public boolean isExecuteDdlAgainstDatabase()

setExecuteDdlAgainstDatabase

public void setExecuteDdlAgainstDatabase(boolean executeDdlAgainstDatabase)

reset

public void reset()
Specified by:
reset in interface ChangeLogHistoryService
Overrides:
reset in class AbstractChangeLogHistoryService

init

public void init()
          throws DatabaseException
Description copied from interface: ChangeLogHistoryService
Ensures the change log history container is correctly initialized for use. This method may be called multiple times so it should check state as needed.

Throws:
DatabaseException

writeHeader

protected void writeHeader(File file)
                    throws IOException
Throws:
IOException

replaceChecksum

protected void replaceChecksum(ChangeSet changeSet)
                        throws DatabaseException
Specified by:
replaceChecksum in class AbstractChangeLogHistoryService
Throws:
DatabaseException

getRanChangeSets

public List<RanChangeSet> getRanChangeSets()
                                    throws DatabaseException
Throws:
DatabaseException

replaceChangeSet

protected void replaceChangeSet(ChangeSet changeSet,
                                liquibase.changelog.OfflineChangeLogHistoryService.ReplaceChangeSetLogic replaceLogic)
                         throws DatabaseException
Throws:
DatabaseException

appendChangeSet

protected void appendChangeSet(ChangeSet changeSet,
                               ChangeSet.ExecType execType)
                        throws DatabaseException
Throws:
DatabaseException

setExecType

public void setExecType(ChangeSet changeSet,
                        ChangeSet.ExecType execType)
                 throws DatabaseException
Throws:
DatabaseException

removeFromHistory

public void removeFromHistory(ChangeSet changeSet)
                       throws DatabaseException
Throws:
DatabaseException

getNextSequenceValue

public int getNextSequenceValue()
                         throws LiquibaseException
Throws:
LiquibaseException

tag

public void tag(String tagString)
         throws DatabaseException
Throws:
DatabaseException

tagExists

public boolean tagExists(String tag)
                  throws DatabaseException
Throws:
DatabaseException

clearAllCheckSums

public void clearAllCheckSums()
                       throws LiquibaseException
Throws:
LiquibaseException

destroy

public void destroy()
             throws DatabaseException
Throws:
DatabaseException


Copyright © 2015 Liquibase.org. All rights reserved.