@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setCharacterStream()); } };
@Override public Writer call() throws SQLException { return sqlXML.setCharacterStream(); } });
public Writer setCharacterStream() throws SQLException { return this.reference.setCharacterStream(); }
public Writer setCharacterStream() throws SQLException { return this.reference.setCharacterStream(); }
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setCharacterStream()); } };
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { provider.provideXml(xmlObject.setCharacterStream()); } };
@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; }