@Override public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { rawStatement.setAsciiStream(parameterIndex, x, length); }
@Override public final void setAsciiStream(final int parameterIndex, final InputStream x, final long length) throws SQLException { getTargetPreparedStatement().setAsciiStream(parameterIndex, x, length); }
@Override public final void setAsciiStream(final int parameterIndex, final InputStream x) throws SQLException { getTargetPreparedStatement().setAsciiStream(parameterIndex, x); }
@Override public final void setAsciiStream(final int parameterIndex, final InputStream x, final int length) throws SQLException { getTargetPreparedStatement().setAsciiStream(parameterIndex, x, length); }
ps.setAsciiStream(paramIndex, asciiStream, contentLength); ps.setAsciiStream(paramIndex, asciiStream);
@Override public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { setParamByIndex(parameterIndex, x); targetStatement.setAsciiStream(parameterIndex, x, length); }
@Override public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { setParamByIndex(parameterIndex, x); targetStatement.setAsciiStream(parameterIndex, x, length); }
@Override public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { setParamByIndex(parameterIndex, x); targetStatement.setAsciiStream(parameterIndex, x); }
@Override public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { checkOpen(); try { stmt.setAsciiStream(parameterIndex, x, length); } catch (Throwable t) { throw checkException(t); } }
@Override public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { checkOpen(); try { stmt.setAsciiStream(parameterIndex, x, length); } catch (Throwable t) { throw checkException(t); } }
@Override public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { checkOpen(); try { stmt.setAsciiStream(parameterIndex, x); } catch (Throwable t) { throw checkException(t); } }
@Override public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, int length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x, length); return; } statement.getRawObject().setAsciiStream(parameterIndex, x, length); }
@Override public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x, long length) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x, length); return; } statement.getRawObject().setAsciiStream(parameterIndex, x, length); }
@Override public void preparedStatement_setAsciiStream(PreparedStatementProxy statement, int parameterIndex, java.io.InputStream x) throws SQLException { if (this.pos < filterSize) { nextFilter().preparedStatement_setAsciiStream(this, statement, parameterIndex, x); return; } statement.getRawObject().setAsciiStream(parameterIndex, x); }
public Q setAsciiStream(final int index, final InputStream stream) { initPrepared(); try { preparedStatement.setAsciiStream(index, stream, stream.available()); } catch (IOException | SQLException ioex) { throwSetParamError(index, ioex); } return _this(); }
@Test public void testSetClobAsAsciiStream() throws SQLException, IOException { InputStream bis = new ByteArrayInputStream("testContent".getBytes()); lobCreator.setClobAsAsciiStream(ps, 1, bis, 11); verify(ps).setAsciiStream(1, bis, 11); }
@Test public void testSetClobAsAsciiStreamWithoutLength() throws SQLException, IOException { InputStream bis = new ByteArrayInputStream("testContent".getBytes()); lobCreator.setClobAsAsciiStream(ps, 1, bis, -1); verify(ps).setAsciiStream(1, bis); }
public Q setAsciiStream(final int index, final InputStream stream, final int length) { initPrepared(); try { preparedStatement.setAsciiStream(index, stream, length); } catch (SQLException sex) { throwSetParamError(index, sex); } return _this(); }
public Q setAsciiStream(final String param, final InputStream stream) { initPrepared(); final int[] positions = query.getNamedParameterIndices(param); try { for (final int position : positions) { preparedStatement.setAsciiStream(position, stream, stream.available()); } } catch (IOException | SQLException ioex) { throwSetParamError(param, ioex); } return _this(); }
public Q setAsciiStream(final String param, final InputStream stream, final int length) { initPrepared(); final int[] positions = query.getNamedParameterIndices(param); try { for (final int position : positions) { preparedStatement.setAsciiStream(position, stream, length); } } catch (SQLException sex) { throwSetParamError(param, sex); } return _this(); }