Package com.alibaba.wasp.jdbc.expression

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


          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

        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

        .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

          .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

TOP

Related Classes of com.alibaba.wasp.jdbc.expression.ParameterInterface

Copyright © 2018 www.massapicom. 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.