/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, Character value) { return bind(position, toArgument(Character.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, String value) { return bind(position, toArgument(String.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Boolean value) { return bind(name, toArgument(Boolean.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Byte value) { return bind(name, toArgument(Byte.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, java.sql.Date value) { return bind(position, toArgument(java.sql.Date.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, double value) { return bind(position, toArgument(double.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Float value) { return bind(name, toArgument(Float.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, long value) { return bind(position, toArgument(long.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, Long value) { return bind(position, toArgument(Long.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, short value) { return bind(position, toArgument(short.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, Time value) { return bind(position, toArgument(Time.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Time value) { return bind(name, toArgument(Time.class, value)); }
/** * Bind NULL to be set for a given argument. * * @param position position to bind NULL to, starting at 0 * @param sqlType The sqlType must be set and is a value from <code>java.sql.Types</code> * * @return the same statement instance */ public final This bindNull(int position, int sqlType) { return bind(position, new NullArgument(sqlType)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, char value) { return bind(position, toArgument(char.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * @param length number of characters to read * * @return the same Query instance */ public final This bind(int position, Reader value, int length) { return bind(position, new CharacterStreamArgument(value, length)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, Float value) { return bind(position, toArgument(Float.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Long value) { return bind(name, toArgument(Long.class, value)); }
/** * Bind an argument positionally * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ public final This bind(int position, Timestamp value) { return bind(position, toArgument(Timestamp.class, value)); }
/** * Bind an argument by name * * @param name token name to bind the parameter to * @param value to bind * * @return the same Query instance */ public final This bind(String name, Timestamp value) { return bind(name, toArgument(Timestamp.class, value)); }
/** * Bind a {@code String} argument positionally, as {@code NVARCHAR} type. * * @param position position to bind the parameter at, starting at 0 * @param value to bind * * @return the same Query instance */ @Beta public final This bindNVarchar(int position, String value) { return bind(position, toArgument(QualifiedType.of(String.class).with(NVarchar.class), value)); }