Package jodd.util.collection

Examples of jodd.util.collection.IntArrayList


    }
  }

  public void setNull(String param, int value, String typeName) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setNull(positions.get(i), value, typeName);
      }
    } catch (SQLException sex) {
      throw new DbSqlException(this, "Failed to set null to parameter: " + param, sex);
    }
  }
View Full Code Here


    }
  }

  public void setInteger(String param, int value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setInt(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setBoolean(String param, boolean value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setBoolean(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setLong(String param, long value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setLong(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setByte(String param, byte value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setByte(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setBytes(String param, byte[] value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setBytes(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setDouble(String param, double value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setDouble(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setFloat(String param, float value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setFloat(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

    }
  }

  public void setShort(String param, short value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        int index = positions.get(i);
        preparedStatement.setShort(index, value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
View Full Code Here

    }
  }

  public void setString(String param, String value) {
    init();
    IntArrayList positions = query.getNamedParameterIndices(param);
    try {
      for (int i = 0; i < positions.size(); i++) {
        preparedStatement.setString(positions.get(i), value);
      }
    } catch (SQLException sex) {
      throwSetParamError(param, sex);
    }
  }
View Full Code Here

TOP

Related Classes of jodd.util.collection.IntArrayList

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.