All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.statement.core.RawSqlStatement Maven / Gradle / Ivy

The newest version!
package liquibase.statement.core;

import liquibase.statement.AbstractSqlStatement;

/**
 * @deprecated use {@link RawParameterizedSqlStatement}
 */
@Deprecated
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy