public Q setInteger(final String param, final Number value) { if (value == null) { setNull(param, Types.INTEGER); } else { setInteger(param, value.intValue()); } return _this(); }
public Q setLong(final int index, final Number value) { if (value == null) { setNull(index, Types.BIGINT); } else { setLong(index, value.longValue()); } return _this(); }
public Q setFloat(final String param, final Number value) { if (value == null) { setNull(param, Types.FLOAT); } else { setFloat(param, value.floatValue()); } return _this(); }
public Q setBigInteger(final String param, final BigInteger value) { if (value == null) { setNull(param, Types.NUMERIC); } else { setLong(param, value.longValue()); } return _this(); }
public Q setBoolean(final String param, final Boolean value) { if (value == null) { setNull(param, Types.BOOLEAN); } else { setBoolean(param, value.booleanValue()); } return _this(); }
public Q setLong(final String param, final Number value) { if (value == null) { setNull(param, Types.BIGINT); } else { setLong(param, value.longValue()); } return _this(); }
public Q setByte(final int index, final Number value) { if (value == null) { setNull(index, Types.SMALLINT); } else { setByte(index, value.byteValue()); } return _this(); }
public Q setInteger(final int index, final Number value) { if (value == null) { setNull(index, Types.INTEGER); } else { setInteger(index, value.intValue()); } return _this(); }
public Q setDouble(final int index, final Number value) { if (value == null) { setNull(index, Types.DOUBLE); } else { setDouble(index, value.doubleValue()); } return _this(); }
public Q setDouble(final String param, final Number value) { if (value == null) { setNull(param, Types.DOUBLE); } else { setDouble(param, value.doubleValue()); } return _this(); }
public Q setShort(final int index, final Number value) { if (value == null) { setNull(index, Types.SMALLINT); } else { setShort(index, value.shortValue()); } return _this(); }
public Q setShort(final String param, final Number value) { if (value == null) { setNull(param, Types.SMALLINT); } else { setShort(param, value.shortValue()); } return _this(); }
public Q setBoolean(final int index, final Boolean value) { if (value == null) { setNull(index, Types.BOOLEAN); } else { setBoolean(index, value.booleanValue()); } return _this(); }
public Q setFloat(final int index, final Number value) { if (value == null) { setNull(index, Types.FLOAT); } else { setFloat(index, value.floatValue()); } return _this(); }
public Q setBigInteger(final int index, final BigInteger value) { if (value == null) { setNull(index, Types.NUMERIC); } else { setLong(index, value.longValue()); } return _this(); }
public Q setByte(final String param, final Number value) { if (value == null) { setNull(param, Types.SMALLINT); } else { setByte(param, value.byteValue()); } return _this(); }
/** * Sets batch parameters with given array of values. */ public Q setBatch(final String name, final long[] array, int startingIndex) { init(); final int batchSize = query.getBatchParameterSize(name); for (int i = 1; i <= batchSize; i++) { final String paramName = name + '.' + i; if (startingIndex < array.length) { setLong(paramName, array[startingIndex]); } else { setNull(paramName, Types.INTEGER); } startingIndex++; } return _this(); }
/** * Sets batch parameters with given array of values. */ public Q setBatch(final String name, final int[] array, int startingIndex) { init(); final int batchSize = query.getBatchParameterSize(name); for (int i = 1; i <= batchSize; i++) { final String paramName = name + '.' + i; if (startingIndex < array.length) { setInteger(paramName, array[startingIndex]); } else { setNull(paramName, Types.INTEGER); } startingIndex++; } return _this(); } /**
init(); if (value == null) { setNull(index, Types.NULL); return _this();