liquibase.changelog
Class StandardChangeLogHistoryService

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

public class StandardChangeLogHistoryService
extends AbstractChangeLogHistoryService


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
StandardChangeLogHistoryService()
           
 
Method Summary
 boolean canCreateChangeLogTable()
           
 void clearAllCheckSums()
           
 void destroy()
           
protected  String getCharTypeName()
           
protected  String getContextsSize()
           
 String getDatabaseChangeLogTableName()
           
protected  String getLabelsSize()
           
 String getLiquibaseCatalogName()
           
 String getLiquibaseSchemaName()
           
 int getNextSequenceValue()
           
 int getPriority()
           
 RanChangeSet getRanChangeSet(ChangeSet changeSet)
           
 List<RanChangeSet> getRanChangeSets()
          Returns the ChangeSets that have been run against the current getDatabase().
 boolean hasDatabaseChangeLogTable()
           
 void init()
          Ensures the change log history container is correctly initialized for use.
 List<Map<String,?>> queryDatabaseChangeLogTable(Database database)
           
 void removeFromHistory(ChangeSet changeSet)
           
protected  void replaceChecksum(ChangeSet changeSet)
           
 void reset()
           
 void setExecType(ChangeSet changeSet, ChangeSet.ExecType execType)
           
 boolean supports(Database database)
           
 void tag(String tagString)
          Tags the database changelog with the given string.
 boolean tagExists(String tag)
           
 void upgradeChecksums(DatabaseChangeLog databaseChangeLog, Contexts contexts, LabelExpression labels)
          Upgrades any existing checksums with an out of date version
 
Methods inherited from class liquibase.changelog.AbstractChangeLogHistoryService
generateDeploymentId, getDatabase, getDeploymentId, getRanDate, getRunStatus, resetDeploymentId, setDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardChangeLogHistoryService

public StandardChangeLogHistoryService()
Method Detail

getPriority

public int getPriority()

supports

public boolean supports(Database database)

getDatabaseChangeLogTableName

public String getDatabaseChangeLogTableName()

getLiquibaseSchemaName

public String getLiquibaseSchemaName()

getLiquibaseCatalogName

public String getLiquibaseCatalogName()

canCreateChangeLogTable

public boolean canCreateChangeLogTable()
                                throws DatabaseException
Throws:
DatabaseException

reset

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

hasDatabaseChangeLogTable

public boolean hasDatabaseChangeLogTable()
                                  throws DatabaseException
Throws:
DatabaseException

getCharTypeName

protected String getCharTypeName()

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

getLabelsSize

protected String getLabelsSize()

getContextsSize

protected String getContextsSize()

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
Overrides:
upgradeChecksums in class AbstractChangeLogHistoryService
Throws:
DatabaseException

getRanChangeSets

public List<RanChangeSet> getRanChangeSets()
                                    throws DatabaseException
Returns the ChangeSets that have been run against the current getDatabase().

Throws:
DatabaseException

queryDatabaseChangeLogTable

public List<Map<String,?>> queryDatabaseChangeLogTable(Database database)
                                                throws DatabaseException
Throws:
DatabaseException

replaceChecksum

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

getRanChangeSet

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

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
Tags the database changelog with the given string.

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 © 2016 Liquibase.org. All rights reserved.