Code example for PreparedStatement

Methods: setNull

0
        return new SimpleClob(f);
    } 
 
    public void set(PreparedStatement stat, Object obj, int i) throws SQLException {
        if (null == obj) {
            stat.setNull(i, Types.CLOB);
        } else { 
            Clob clob = (Clob) obj;
            stat.setClob(i, clob);
        } 
    } 
 
}