public void setByte(int parameterIndex, byte x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setInt(int parameterIndex, int x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT4); }
public void setDouble(int parameterIndex, double x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Double.toString(x), Oid.FLOAT8); }
public void setShort(int parameterIndex, short x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setLong(int parameterIndex, long x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Long.toString(x), Oid.INT8); }
public void setFloat(int parameterIndex, float x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Float.toString(x), Oid.FLOAT8); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkClosed(); if (x == null) setNull(parameterIndex, Types.DECIMAL); else bindLiteral(parameterIndex, x.toString(), Oid.NUMERIC); }
bindLiteral(parameterIndex, pgType.toString(), Oid.INT4); break; case Types.TINYINT: case Types.SMALLINT: bindLiteral(parameterIndex, pgType.toString(), Oid.INT2); break; case Types.BIGINT: bindLiteral(parameterIndex, pgType.toString(), Oid.INT8); break; case Types.REAL: bindLiteral(parameterIndex, pgType.toString(), Oid.FLOAT4); break; case Types.DOUBLE: case Types.FLOAT: bindLiteral(parameterIndex, pgType.toString(), Oid.FLOAT8); break; case Types.DECIMAL: case Types.NUMERIC: bindLiteral(parameterIndex, pgType.toString(), Oid.NUMERIC); break; case Types.CHAR: bindLiteral(parameterIndex, pgType.toString(), Oid.BOOL); break; case Types.BINARY:
public void setByte(int parameterIndex, byte x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setFloat(int parameterIndex, float x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Float.toString(x), Oid.FLOAT8); }
public void setDouble(int parameterIndex, double x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Double.toString(x), Oid.FLOAT8); }
public void setShort(int parameterIndex, short x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setLong(int parameterIndex, long x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Long.toString(x), Oid.INT8); }
public void setByte(int parameterIndex, byte x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT2); }
public void setDouble(int parameterIndex, double x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Double.toString(x), Oid.FLOAT8); }
public void setInt(int parameterIndex, int x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Integer.toString(x), Oid.INT4); }
public void setFloat(int parameterIndex, float x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Float.toString(x), Oid.FLOAT8); }
public void setLong(int parameterIndex, long x) throws SQLException { checkClosed(); bindLiteral(parameterIndex, Long.toString(x), Oid.INT8); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkClosed(); if (x == null) setNull(parameterIndex, Types.DECIMAL); else bindLiteral(parameterIndex, x.toString(), Oid.NUMERIC); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { checkClosed(); if (x == null) setNull(parameterIndex, Types.DECIMAL); else bindLiteral(parameterIndex, x.toString(), Oid.NUMERIC); }