本文整理了Java中java.sql.SQLXML.setResult()
方法的一些代码示例,展示了SQLXML.setResult()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SQLXML.setResult()
方法的具体详情如下:
包路径:java.sql.SQLXML
类名称:SQLXML
方法名:setResult
[英]Returns a Result for writing this object's data.
[中]返回写入此对象数据的结果。
代码示例来源:origin: spring-projects/spring-framework
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
provider.provideXml(xmlObject.setResult(resultClass));
}
};
代码示例来源:origin: spring-projects/spring-framework
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setResult(DOMResult.class).setNode(document);
}
};
代码示例来源:origin: org.teiid/teiid-common-core
public <T extends Result> T setResult(Class<T> resultClass)
throws SQLException {
return this.reference.setResult(resultClass);
}
代码示例来源:origin: co.paralleluniverse/comsat-jdbc
@Override
public T call() throws SQLException {
return sqlXML.setResult(resultClass);
}
});
代码示例来源:origin: teiid/teiid
public <T extends Result> T setResult(Class<T> resultClass)
throws SQLException {
return this.reference.setResult(resultClass);
}
代码示例来源:origin: org.springframework/org.springframework.jdbc
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setResult(DOMResult.class).setNode(document);
}
};
代码示例来源:origin: apache/servicemix-bundles
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
xmlObject.setResult(DOMResult.class).setNode(document);
}
};
代码示例来源:origin: apache/servicemix-bundles
@Override
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
provider.provideXml(xmlObject.setResult(resultClass));
}
};
代码示例来源:origin: org.springframework/org.springframework.jdbc
@Override
@SuppressWarnings("unchecked")
protected void provideXml(SQLXML xmlObject) throws SQLException, IOException {
provider.provideXml(xmlObject.setResult(resultClass));
}
};
代码示例来源: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!