@Override public void cleanup() { if (this.xmlObject != null) { try { this.xmlObject.free(); } catch (SQLException ex) { throw new DataAccessResourceFailureException("Could not free SQLXML object", ex); } } }
protected String sqlxmlToString(SQLXML sqlxml) throws SQLException { if (sqlxml == null) { return null; } try { return sqlxml.getString(); } finally { sqlxml.free(); } }
@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 close(D database, SQLXML xml) throws SQLException { xml.free(); }
@Override public void cleanup() { if (this.xmlObject != null) { try { this.xmlObject.free(); } catch (SQLException ex) { throw new DataAccessResourceFailureException("Could not free SQLXML object", ex); } } }
@Override public Void call() throws SQLException { sqlXML.free(); return null; } });
public void free() throws SQLException { this.reference.free(); }
public void free() throws SQLException { this.reference.free(); }
public void cleanup() { try { this.xmlObject.free(); } catch (SQLException ex) { throw new DataAccessResourceFailureException("Could not free SQLXML object", ex); } }
/** * Casts the passed object to SQLXML and calls getString and free methods */ public String getStringAndFreeSQLXML(Object sqlXml) throws SQLException { String str = ((SQLXML)sqlXml).getString(); ((SQLXML)sqlXml).free(); return str; } }
/** * INTERNAL: * Casts the passed object to SQLXML and calls getString and free methods */ public static String getStringAndFreeSQLXML(Object sqlXml) throws SQLException { String str = ((SQLXML)sqlXml).getString(); ((SQLXML)sqlXml).free(); return str; }
/** * Safely free an XML object. * <p> * This method will silently ignore if <code>xml</code> is * <code>null</code>, or if {@link SQLXML#free()} throws an exception. */ public static final void safeFree(SQLXML xml) { if (xml != null) { try { xml.free(); } catch (Exception ignore) { log.warn("Error while freeing resource", ignore); } // [#3069] The free() method was added only in JDBC 4.0 / Java 1.6 catch (AbstractMethodError ignore) {} } }
sqlxml.free(); } catch (SQLException e) {
if (sqlXml != null) { str = sqlXml.getString(); sqlXml.free();
try { String str = sqlXml.getString(); sqlXml.free();
else { StringConverter.serialize(xml.getString(), buffer); xml.free();