@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setBinaryStream()); } };
@Override public OutputStream call() throws SQLException { return sqlXML.setBinaryStream(); } });
public OutputStream setBinaryStream() throws SQLException { return this.reference.setBinaryStream(); }
public OutputStream setBinaryStream() throws SQLException { return this.reference.setBinaryStream(); }
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setBinaryStream()); } };
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setBinaryStream()); } };
@Override public <X> SQLXML wrap(X value, Connection connection) throws SQLException { if (value == null) { return null; } SQLXML sqlXml; if (String.class.isInstance(value)) { sqlXml = connection.createSQLXML(); sqlXml.setString((String) value); } else if (InputStream.class.isInstance(value)) { sqlXml = connection.createSQLXML(); try { IOUtils.copy((InputStream) value, sqlXml.setBinaryStream()); } catch (IOException exception) { throw new JdbcTypeException(exception); } } else if (Reader.class.isInstance(value)) { sqlXml = connection.createSQLXML(); try { IOUtils.copy((Reader) value, sqlXml.setCharacterStream()); } catch (IOException exception) { throw new JdbcTypeException(exception); } } else { throw newWrapFailure(value); } return sqlXml; }