@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { xmlObject.setString(value); } };
@Override public void setNonNullParameter(PreparedStatement ps, int i, String parameter, JdbcType jdbcType) throws SQLException { SQLXML sqlxml = ps.getConnection().createSQLXML(); try { sqlxml.setString(parameter); ps.setSQLXML(i, sqlxml); } finally { sqlxml.free(); } }
@Override public Void call() throws SQLException { sqlXML.setString(value); return null; } });
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { xmlObject.setString(value); } };
@Override protected void provideXml(SQLXML xmlObject) throws SQLException, IOException { xmlObject.setString(value); } };
String xml = xml_gkuzu.toString(); SQLXML sqlxml = connection.createSQLXML(); sqlxml.setString(xml); stmt.setSQLXML(3, sqlxml);
public void setString(String value) throws SQLException { this.reference.setString(value); }
public void setString(String value) throws SQLException { this.reference.setString(value); }
@Override public void setValue(PreparedStatement st, int startIndex, String value) throws SQLException { SQLXML xml = st.getConnection().createSQLXML(); xml.setString(value); st.setSQLXML(startIndex, xml); }
@Override public void setValue(PreparedStatement st, int startIndex, String value) throws SQLException { SQLXML xml = st.getConnection().createSQLXML(); xml.setString(value); st.setSQLXML(startIndex, xml); }
@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; }
else { final SQLXML xml = stmt.getConnection().createSQLXML(); xml.setString(value); stmt.setSQLXML(index, xml);
else { final SQLXML xml = stmt.getConnection().createSQLXML(); xml.setString(value); stmt.setSQLXML(index, xml);
@Override public void set(DatabasePlatform platform, PreparedStatement statement, int index, AbstractSession session) throws SQLException { if (this.obj instanceof String) { //Bug#5200836, unwrap the connection prior to using. Connection con = session.getServerPlatform().unwrapConnection(statement.getConnection()); SQLXML sqlxml = con.createSQLXML(); sqlxml.setString((String) obj); this.obj = sqlxml; } else if (this.obj instanceof Document) { //Bug#5200836, unwrap the connection prior to using. Connection con = session.getServerPlatform().unwrapConnection(statement.getConnection()); SQLXML sqlxml = con.createSQLXML(); DOMResult result = sqlxml.setResult(DOMResult.class); result.setNode((Document) obj); this.obj = sqlxml; } super.set(platform, statement, index, session); } }