本文整理了Java中java.sql.SQLXML.setString()
方法的一些代码示例,展示了SQLXML.setString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SQLXML.setString()
方法的具体详情如下:
包路径:java.sql.SQLXML
类名称:SQLXML
方法名:setString
[英]Sets this object's data to the given XML string.
[中]将此对象的数据设置为给定的XML字符串。
代码示例来源:origin: spring-projects/spring-framework
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setString(value);
}
};
代码示例来源:origin: org.mybatis/mybatis
@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();
}
}
代码示例来源:origin: co.paralleluniverse/comsat-jdbc
@Override
public Void call() throws SQLException {
sqlXML.setString(value);
return null;
}
});
代码示例来源:origin: apache/servicemix-bundles
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setString(value);
}
};
代码示例来源:origin: org.springframework/org.springframework.jdbc
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setString(value);
}
};
代码示例来源:origin: stackoverflow.com
String xml = xml_gkuzu.toString();
SQLXML sqlxml = connection.createSQLXML();
sqlxml.setString(xml);
stmt.setSQLXML(3, sqlxml);
代码示例来源:origin: org.teiid/teiid-common-core
public void setString(String value) throws SQLException {
this.reference.setString(value);
}
代码示例来源:origin: teiid/teiid
public void setString(String value) throws SQLException {
this.reference.setString(value);
}
代码示例来源:origin: com.mysema.querydsl/querydsl-sql
@Override
public void setValue(PreparedStatement st, int startIndex, String value)
throws SQLException {
SQLXML xml = st.getConnection().createSQLXML();
xml.setString(value);
st.setSQLXML(startIndex, xml);
}
代码示例来源:origin: com.querydsl/querydsl-sql
@Override
public void setValue(PreparedStatement st, int startIndex, String value)
throws SQLException {
SQLXML xml = st.getConnection().createSQLXML();
xml.setString(value);
st.setSQLXML(startIndex, xml);
}
代码示例来源:origin: nuodb/migration-tools
@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;
}
代码示例来源:origin: org.basex/basex
else {
final SQLXML xml = stmt.getConnection().createSQLXML();
xml.setString(value);
stmt.setSQLXML(index, xml);
代码示例来源:origin: BaseXdb/basex
else {
final SQLXML xml = stmt.getConnection().createSQLXML();
xml.setString(value);
stmt.setSQLXML(index, xml);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.oracle
@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);
}
}
内容来源于网络,如有侵权,请联系作者删除!