liquibase.statement.core.RawSqlStatement 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.statement.core;
import liquibase.statement.AbstractSqlStatement;
public class RawSqlStatement extends AbstractSqlStatement {
private final String sql;
private String endDelimiter = ";";
public RawSqlStatement(String sql) {
this.sql = sql;
}
public RawSqlStatement(String sql, String endDelimiter) {
this(sql);
if (endDelimiter != null) {
this.endDelimiter = endDelimiter;
}
}
public String getSql() {
return sql;
}
public String getEndDelimiter() {
return endDelimiter.replace("\\r","\r").replace("\\n","\n");
}
@Override
public String toString() {
return sql;
}
}