public EntityMapping col(String col, double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); } public EntityMapping col(String col, Double doubleValue) {
@Override public SELF value(String colName, Double value) { return addValue(colName, new ParamDouble(next(), value)); }
public SELF col(String col, double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); } public SELF col(String col, Double doubleValue) {
@Override public Insert value(String colName, Double value) { return addValue(colName, new ParamDouble(next(), value)); }
public EntityMapping col(String col, Double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); }
public SELF col(String col, Double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); }
public SELF col(String col, double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); } public SELF col(String col, Double doubleValue) {
@Override public SELF value(String colName, Double value) { return addValue(colName, new ParamDouble(next(), value)); }
public SELF col(String col, Double doubleValue) { return addValue(col, new ParamDouble(next(), doubleValue)); }
val = new ParamDouble(index, (Double) value);
static ParamValue<?> paramValue(int index, Object value) { Preconditions.checkNotNull(value, "Cannot treat null values this way."); ParamValue<?> val; // so we never forget a if condition if (value instanceof BigDecimal) { val = new ParamBigDecimal(index, (BigDecimal) value); } else if (value instanceof Boolean) { val = new ParamBoolean(index, (Boolean) value); } else if (value instanceof Date) { val = new ParamDate(index, (Date) value); } else if (value instanceof Double) { val = new ParamDouble(index, (Double) value); } else if (value instanceof Float) { val = new ParamFloat(index, (Float) value); } else if (value instanceof Integer) { val = new ParamInt(index, (Integer) value); } else if (value instanceof java.time.LocalDate) { val = new ParamLocalDate8(index, (java.time.LocalDate) value); } else if (value instanceof LocalDateTime) { val = new ParamLocalDateTime(index, (LocalDateTime) value); } else if (value instanceof Long) { val = new ParamLong(index, (Long) value); } else if (value instanceof String) { val = new ParamString(index, (String) value); } else { throw new UnsupportedOperationException("Don't know how to treat typeof " + value.getClass()); } return val; }
static ParamValue<?> paramValue(int index, Object value) { Preconditions.checkNotNull(value, "Cannot treat null values this way."); ParamValue<?> val; // so we never forget a if condition if (value instanceof BigDecimal) { val = new ParamBigDecimal(index, (BigDecimal) value); } else if (value instanceof Boolean) { val = new ParamBoolean(index, (Boolean) value); } else if (value instanceof Date) { val = new ParamDate(index, (Date) value); } else if (value instanceof Double) { val = new ParamDouble(index, (Double) value); } else if (value instanceof Float) { val = new ParamFloat(index, (Float) value); } else if (value instanceof Integer) { val = new ParamInt(index, (Integer) value); } else if (value instanceof java.time.LocalDate) { val = new ParamLocalDate8(index, (java.time.LocalDate) value); } else if (value instanceof LocalDateTime) { val = new ParamLocalDateTime(index, (LocalDateTime) value); } else if (value instanceof Long) { val = new ParamLong(index, (Long) value); } else if (value instanceof String) { val = new ParamString(index, (String) value); } else { throw new UnsupportedOperationException("Don't know how to treat typeof " + value.getClass()); } return val; }