liquibase.sql.CallableSql 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;
import liquibase.structure.DatabaseObject;
import java.util.Collection;
import java.util.Collections;
public class CallableSql implements Sql {
private final String sql;
private final String endDelimiter;
private final String expectedStatus;
public CallableSql(String sql, String expectedStatus) {
this(sql, ";", expectedStatus);
}
public CallableSql(String sql, String endDelimiter, String expectedStatus) {
this.sql = sql;
this.endDelimiter = endDelimiter;
this.expectedStatus = expectedStatus;
}
@Override
public String toSql() {
return sql;
}
@Override
public String getEndDelimiter() {
return endDelimiter;
}
public String getExpectedStatus() {
return expectedStatus;
}
@Override
public Collection extends DatabaseObject> getAffectedDatabaseObjects() {
return Collections.emptyList();
}
}