liquibase.statement.StoredProcedureStatement Maven / Gradle / Ivy
package liquibase.statement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class StoredProcedureStatement extends AbstractSqlStatement implements CallableSqlStatement {
private String procedureName;
private List parameters = new ArrayList<>();
private List types = new ArrayList<>();
public StoredProcedureStatement(String procedureName) {
this.procedureName = procedureName;
}
public String getProcedureName() {
return procedureName;
}
public List getParameters() {
return Collections.unmodifiableList(parameters);
}
public void addParameter(String param, int type) {
parameters.add(param);
types.add(type);
}
public int getParameterType(String param) {
for (int i=0; i