Class AbsoluteToRelativePaths
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.database.changesets.AbsoluteToRelativePaths
-
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomSqlChange
public class AbsoluteToRelativePaths extends java.lang.Object implements liquibase.change.custom.CustomSqlChange
Custom SQL change converting absolute paths to relative in the database
-
-
Constructor Summary
Constructors Constructor Description AbsoluteToRelativePaths()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description liquibase.statement.SqlStatement[]
generateStatements(liquibase.database.Database database)
java.lang.String
getConfirmationMessage()
void
setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
void
setUp()
liquibase.exception.ValidationErrors
testRelativePaths()
Check that files exist in expected locationsliquibase.exception.ValidationErrors
validate(liquibase.database.Database database)
-
-
-
Method Detail
-
getConfirmationMessage
public java.lang.String getConfirmationMessage()
- Specified by:
getConfirmationMessage
in interfaceliquibase.change.custom.CustomChange
-
setUp
public void setUp() throws liquibase.exception.SetupException
- Specified by:
setUp
in interfaceliquibase.change.custom.CustomChange
- Throws:
liquibase.exception.SetupException
-
setFileOpener
public void setFileOpener(liquibase.resource.ResourceAccessor resourceAccessor)
- Specified by:
setFileOpener
in interfaceliquibase.change.custom.CustomChange
-
validate
public liquibase.exception.ValidationErrors validate(liquibase.database.Database database)
- Specified by:
validate
in interfaceliquibase.change.custom.CustomChange
-
testRelativePaths
public liquibase.exception.ValidationErrors testRelativePaths()
Check that files exist in expected locations- Returns:
- Any validation errors
-
generateStatements
public liquibase.statement.SqlStatement[] generateStatements(liquibase.database.Database database) throws liquibase.exception.CustomChangeException
- Specified by:
generateStatements
in interfaceliquibase.change.custom.CustomSqlChange
- Throws:
liquibase.exception.CustomChangeException
-
-