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

liquibase.statement.StoredProcedureStatement Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy