liquibase.statement.StoredProcedureStatement 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;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class StoredProcedureStatement extends AbstractSqlStatement implements CallableSqlStatement {
private final String procedureName;
private final List parameters = new ArrayList<>();
private final 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