org.openmrs.util.databasechange
Class SourceMySqldiffFile
java.lang.Object
org.openmrs.util.databasechange.SourceMySqldiffFile
- All Implemented Interfaces:
- liquibase.change.custom.CustomTaskChange
public class SourceMySqldiffFile
- extends java.lang.Object
- implements liquibase.change.custom.CustomTaskChange
Executes (aka "source"s) the given file on the current database.
Expects parameter: "sqlFile" : name of file on classpath to source on mysql
Method Summary |
void |
execute(liquibase.database.Database database)
Does the work of executing the file on mysql |
java.lang.String |
getConfirmationMessage()
|
void |
setFileOpener(liquibase.FileOpener fileOpener)
|
void |
setSqlFile(java.lang.String sqlFile)
|
void |
setUp()
Get the values of the parameters passed in and set them to the local variables on this class. |
void |
validate(liquibase.database.Database database)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceMySqldiffFile
public SourceMySqldiffFile()
execute
public void execute(liquibase.database.Database database)
throws liquibase.exception.CustomChangeException,
liquibase.exception.UnsupportedChangeException
- Does the work of executing the file on mysql
- Specified by:
execute
in interface liquibase.change.custom.CustomTaskChange
- Throws:
liquibase.exception.CustomChangeException
liquibase.exception.UnsupportedChangeException
- See Also:
CustomTaskChange.execute(liquibase.database.Database)
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- See Also:
CustomChange.getConfirmationMessage()
setFileOpener
public void setFileOpener(liquibase.FileOpener fileOpener)
- See Also:
CustomChange.setFileOpener(liquibase.FileOpener)
setUp
public void setUp()
throws liquibase.exception.SetupException
- Get the values of the parameters passed in and set them to the local variables on this class.
- Throws:
liquibase.exception.SetupException
- See Also:
CustomChange.setUp()
validate
public void validate(liquibase.database.Database database)
throws liquibase.exception.InvalidChangeDefinitionException
- Throws:
liquibase.exception.InvalidChangeDefinitionException
- See Also:
CustomChange.validate(liquibase.database.Database)
setSqlFile
public void setSqlFile(java.lang.String sqlFile)
- Parameters:
sqlFile
- the sqlFile to set
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change