Examples of ParameterInterface


Examples of com.alibaba.wasp.jdbc.expression.ParameterInterface

    try {
      checkClosed();
      ArrayList<? extends ParameterInterface> parameters = command
          .getParameters();
      for (int i = 0, size = parameters.size(); i < size; i++) {
        ParameterInterface param = parameters.get(i);
        // can only delete old temp files if they are not in the batch
        param.setValue(null, batchParameters == null);
      }
    } catch (Exception e) {
      throw Logger.logAndConvert(log, e);
    }
  }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.expression.ParameterInterface

          Value[] set = batchParameters.get(i);
          ArrayList<? extends ParameterInterface> parameters = command
              .getParameters();
          for (int j = 0; j < set.length; j++) {
            Value value = set[j];
            ParameterInterface param = parameters.get(j);
            param.setValue(value, false);
          }
          try {
            result[i] = executeUpdateInternal();
          } catch (Exception re) {
            SQLException e = Logger.logAndConvert(log, re);
View Full Code Here

Examples of com.alibaba.wasp.jdbc.expression.ParameterInterface

        ArrayList<? extends ParameterInterface> parameters = command
            .getParameters();
        int size = parameters.size();
        Value[] set = new Value[size];
        for (int i = 0; i < size; i++) {
          ParameterInterface param = parameters.get(i);
          Value value = param.getParamValue();
          set[i] = value;
        }
        if (batchParameters == null) {
          batchParameters = New.arrayList();
        }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.expression.ParameterInterface

        .getParameters();
    if (parameterIndex < 0 || parameterIndex >= parameters.size()) {
      throw JdbcException.getInvalidValueException("parameterIndex",
          parameterIndex + 1);
    }
    ParameterInterface param = parameters.get(parameterIndex);
    // can only delete old temp files if they are not in the batch
    param.setValue(value, batchParameters == null);
  }
View Full Code Here

Examples of com.alibaba.wasp.jdbc.expression.ParameterInterface

          .getParameters();
      command = conn.prepareCommand(sqlStatement, fetchSize, session);
      ArrayList<? extends ParameterInterface> newParams = command
          .getParameters();
      for (int i = 0, size = oldParams.size(); i < size; i++) {
        ParameterInterface old = oldParams.get(i);
        Value value = old.getParamValue();
        if (value != null) {
          ParameterInterface n = newParams.get(i);
          n.setValue(value, false);
        }
      }
      return true;
    }
    return false;
View Full Code Here

Examples of org.h2.expression.ParameterInterface

     */
    public void reuse() {
        canReuse = false;
        ArrayList<? extends ParameterInterface> parameters = getParameters();
        for (int i = 0, size = parameters.size(); i < size; i++) {
            ParameterInterface param = parameters.get(i);
            param.setValue(null, true);
        }
    }
View Full Code Here

Examples of org.h2.expression.ParameterInterface

        try {
            debugCodeCall("clearParameters");
            checkClosed();
            ArrayList<? extends ParameterInterface> parameters = command.getParameters();
            for (int i = 0, size = parameters.size(); i < size; i++) {
                ParameterInterface param = parameters.get(i);
                // can only delete old temp files if they are not in the batch
                param.setValue(null, batchParameters == null);
            }
        } catch (Exception e) {
            throw logAndConvert(e);
        }
    }
View Full Code Here

Examples of org.h2.expression.ParameterInterface

                for (int i = 0; i < size; i++) {
                    Value[] set = batchParameters.get(i);
                    ArrayList<? extends ParameterInterface> parameters = command.getParameters();
                    for (int j = 0; j < set.length; j++) {
                        Value value = set[j];
                        ParameterInterface param = parameters.get(j);
                        param.setValue(value, false);
                    }
                    try {
                        result[i] = executeUpdateInternal();
                    } catch (Exception re) {
                        SQLException e = logAndConvert(re);
View Full Code Here

Examples of org.h2.expression.ParameterInterface

            try {
                ArrayList<? extends ParameterInterface> parameters = command.getParameters();
                int size = parameters.size();
                Value[] set = new Value[size];
                for (int i = 0; i < size; i++) {
                    ParameterInterface param = parameters.get(i);
                    Value value = param.getParamValue();
                    set[i] = value;
                }
                if (batchParameters == null) {
                    batchParameters = New.arrayList();
                }
View Full Code Here

Examples of org.h2.expression.ParameterInterface

        parameterIndex--;
        ArrayList<? extends ParameterInterface> parameters = command.getParameters();
        if (parameterIndex < 0 || parameterIndex >= parameters.size()) {
            throw DbException.getInvalidValueException("parameterIndex", parameterIndex + 1);
        }
        ParameterInterface param = parameters.get(parameterIndex);
        // can only delete old temp files if they are not in the batch
        param.setValue(value, batchParameters == null);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.