liquibase.sql.visitor.ReplaceSqlVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.sql.visitor;
import liquibase.database.Database;
public class ReplaceSqlVisitor extends AbstractSqlVisitor {
private String replace;
private String with;
@Override
public String getName() {
return "replace";
}
public String getReplace() {
return replace;
}
public void setReplace(String replace) {
this.replace = replace;
}
public String getWith() {
return with;
}
public void setWith(String with) {
this.with = with;
}
@Override
public String modifySql(String sql, Database database) {
return sql.replace(getReplace(), getWith());
}
@Override
public String getSerializedObjectNamespace() {
return STANDARD_CHANGELOG_NAMESPACE;
}
}