liquibase.changelog
Class StandardChangeLogHistoryService
java.lang.Object
liquibase.changelog.AbstractChangeLogHistoryService
liquibase.changelog.StandardChangeLogHistoryService
- All Implemented Interfaces:
- ChangeLogHistoryService, PrioritizedService
public class StandardChangeLogHistoryService
- extends AbstractChangeLogHistoryService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardChangeLogHistoryService
public StandardChangeLogHistoryService()
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.