liquibase.changelog
Class DatabaseChangeLog

java.lang.Object
  extended by liquibase.changelog.DatabaseChangeLog
All Implemented Interfaces:
Comparable<DatabaseChangeLog>, Conditional

public class DatabaseChangeLog
extends Object
implements Comparable<DatabaseChangeLog>, Conditional

Encapsulates the information stored in the change log XML file.


Constructor Summary
DatabaseChangeLog()
           
DatabaseChangeLog(String physicalFilePath)
           
 
Method Summary
 void addChangeSet(ChangeSet changeSet)
           
 int compareTo(DatabaseChangeLog o)
           
 boolean equals(Object o)
           
 ChangeLogParameters getChangeLogParameters()
           
 ChangeSet getChangeSet(RanChangeSet ranChangeSet)
           
 ChangeSet getChangeSet(String path, String author, String id)
           
 List<ChangeSet> getChangeSets()
           
 String getFilePath()
           
 String getLogicalFilePath()
           
 String getPhysicalFilePath()
           
 PreconditionContainer getPreconditions()
           
 int hashCode()
           
 void setChangeLogParameters(ChangeLogParameters changeLogParameters)
           
 void setLogicalFilePath(String logicalFilePath)
           
 void setPhysicalFilePath(String physicalFilePath)
           
 void setPreconditions(PreconditionContainer precond)
           
 String toString()
           
 void validate(Database database, String... contexts)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseChangeLog

public DatabaseChangeLog()

DatabaseChangeLog

public DatabaseChangeLog(String physicalFilePath)
Method Detail

getPreconditions

public PreconditionContainer getPreconditions()
Specified by:
getPreconditions in interface Conditional

setPreconditions

public void setPreconditions(PreconditionContainer precond)
Specified by:
setPreconditions in interface Conditional

getChangeLogParameters

public ChangeLogParameters getChangeLogParameters()

setChangeLogParameters

public void setChangeLogParameters(ChangeLogParameters changeLogParameters)

getPhysicalFilePath

public String getPhysicalFilePath()

setPhysicalFilePath

public void setPhysicalFilePath(String physicalFilePath)

getLogicalFilePath

public String getLogicalFilePath()

setLogicalFilePath

public void setLogicalFilePath(String logicalFilePath)

getFilePath

public String getFilePath()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(DatabaseChangeLog o)
Specified by:
compareTo in interface Comparable<DatabaseChangeLog>

getChangeSet

public ChangeSet getChangeSet(String path,
                              String author,
                              String id)

getChangeSets

public List<ChangeSet> getChangeSets()

addChangeSet

public void addChangeSet(ChangeSet changeSet)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

validate

public void validate(Database database,
                     String... contexts)
              throws LiquibaseException
Throws:
LiquibaseException

getChangeSet

public ChangeSet getChangeSet(RanChangeSet ranChangeSet)


Copyright © 2011 Liquibase.org. All Rights Reserved.