/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. * @see UShort#valueOf(String) */ public static UShort ushort(String value) throws NumberFormatException { return value == null ? null : UShort.valueOf(value); }
/** * Create an <code>unsigned short</code> by masking it with * <code>0xFFFF</code> i.e. <code>(short) -1</code> becomes * <code>(ushort) 65535</code> */ public static UShort valueOf(short value) { return new UShort(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> */ private UShort(int value) throws NumberFormatException { this.value = value; rangeCheck(); }
@Override final void set0(BindingSetStatementContext<U> ctx, UShort value) throws SQLException { ctx.statement().setInt(ctx.index(), value.intValue()); }
@Override final void sqlInline0(BindingSQLContext<U> ctx, UShort value) { ctx.render().sql(value.toString()); }
@Override final void set0(BindingSetSQLOutputContext<U> ctx, UShort value) throws SQLException { ctx.output().writeInt(value.intValue()); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> * @see UShort#valueOf(int) */ public static UShort ushort(int value) throws NumberFormatException { return UShort.valueOf(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> */ public static UShort valueOf(int value) throws NumberFormatException { return new UShort(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> */ private UShort(int value) throws NumberFormatException { this.value = value; rangeCheck(); }
stmt.setInt(nextIndex(), ((UShort) value).intValue());
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. * @see UShort#valueOf(String) */ public static UShort ushort(String value) throws NumberFormatException { return value == null ? null : UShort.valueOf(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. */ public static UShort valueOf(String value) throws NumberFormatException { return new UShort(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. */ private UShort(String value) throws NumberFormatException { this.value = Integer.parseInt(value); rangeCheck(); }
@Override public UShort convert(Integer in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> */ public static UShort valueOf(int value) throws NumberFormatException { return new UShort(value); }
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. */ private UShort(String value) throws NumberFormatException { this.value = Integer.parseInt(value); rangeCheck(); }
@Override public UShort convert(Short in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. */ public static UShort valueOf(String value) throws NumberFormatException { return new UShort(value); }
@Override public UShort convert(Short in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> by masking it with * <code>0xFFFF</code> i.e. <code>(short) -1</code> becomes * <code>(ushort) 65535</code> */ public static UShort valueOf(short value) { return new UShort(value); }