本文整理汇总了Java中oracle.jdbc.OracleResultSet类的典型用法代码示例。如果您正苦于以下问题:Java OracleResultSet类的具体用法?Java OracleResultSet怎么用?Java OracleResultSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OracleResultSet类属于oracle.jdbc包,在下文中一共展示了OracleResultSet类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: wrapResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
@Override
protected ResultSet wrapResultSet(JdbcEvent jdbcEvent,
ResultSet executeQuery, String ref) {
if (executeQuery instanceof OracleResultSet) {
ResultSet wrapOracleResultSet = WrappedOracleStatement.wrapOracleResultSet(
(OracleResultSet) executeQuery, ref, jdbcEvent, this);
return wrapOracleResultSet;
}
return super.wrapResultSet(jdbcEvent, executeQuery, ref);
}
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:12,代码来源:WrappedOracleStatement.java
示例2: wrapOracleResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
/**
*
* wrapResultSet
*
* @param resultSet the result set
* @param currentRef the reference string
* @param jdbcEvent the event
* @param statement the statement
* @return the wrapped result set
*/
public static ResultSet wrapOracleResultSet(OracleResultSet resultSet,
String currentRef, JdbcEvent jdbcEvent, WrappedStatement statement) {
ResultSet rslt;
if (JdbcLogger.isResultSetSizeMeasured()) {
rslt = new WrappedOracleCalculatedResultSet(resultSet, currentRef,
jdbcEvent);
} else {
rslt = new WrappedOracleResultSet(resultSet, currentRef, jdbcEvent);
}
statement.addPendingResultSet(rslt);
return rslt;
}
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:24,代码来源:WrappedOracleStatement.java
示例3: wrapResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
@Override
protected ResultSet wrapResultSet(JdbcEvent jdbcEvent,
ResultSet executeQuery, String ref) {
if (executeQuery instanceof OracleResultSet)
{
return WrappedOracleStatement.wrapOracleResultSet(
(OracleResultSet) executeQuery, ref, jdbcEvent, this);
}
return super.wrapResultSet(jdbcEvent, executeQuery, ref);
}
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:12,代码来源:WrappedOracleCallableStatement.java
示例4: IDtoLongObject
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
/**
* Retrieve LongObject from database.
*/
@Override
protected RDBLongObject IDtoLongObject ( int dbid, String table ) {
RDBLongObject res = null;
try {
String opName = "getLongObject";
PreparedStatement ps = m_sql.getPreparedSQLStatement(opName, table);
ps.setInt(1,dbid);
OracleResultSet rs = (OracleResultSet) ps.executeQuery();
if (rs.next()) {
res = new RDBLongObject();
res.head = rs.getString(1);
BLOB blob = rs.getBLOB(2);
if (blob != null) {
int len = (int)blob.length();
byte[] data = blob.getBytes(1,len);
res.tail = new String(data, "UTF-8");
} else {
res.tail = "";
}
}
rs.close();
m_sql.returnPreparedSQLStatement(ps);
} catch (SQLException e1) {
// /* DEBUG */ System.out.println("Literal truncation (" + l.toString().length() + ") " + l.toString().substring(0, 150));
throw new RDFRDBException("Failed to retrieve long object (SQL Exception): ", e1);
} catch (UnsupportedEncodingException e2) {
throw new RDFRDBException("Failed to retrieve long object (UnsupportedEncoding): ", e2);
}
return res;
}
开发者ID:jacekkopecky,项目名称:parkjam,代码行数:36,代码来源:Driver_Oracle_LOB.java
示例5: getOracleResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected OracleResultSet getOracleResultSet(ResultSet resultSet) {
if (resultSet instanceof OracleResultSet)
return (OracleResultSet) resultSet;
else
try {
return (OracleResultSet) ((WrappedResultSet) resultSet).getUnderlyingResultSet();
} catch (SQLException e) {
throw new OXFException(e);
}
}
开发者ID:evlist,项目名称:orbeon-forms,代码行数:12,代码来源:SQLProcessorOracleJBoss7Delegate.java
示例6: getOracleResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected OracleResultSet getOracleResultSet(ResultSet resultSet) {
try {
return resultSet instanceof OracleResultSet
? (OracleResultSet) resultSet
: resultSet.unwrap(OracleResultSet.class);
} catch (SQLException e) {
throw new OXFException(e);
}
}
开发者ID:evlist,项目名称:orbeon-forms,代码行数:10,代码来源:SQLProcessorOracleJDBC4Delegate.java
示例7: getOracleResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected OracleResultSet getOracleResultSet(ResultSet resultSet) {
// Use classes from Tomcat DBCP to get the delegate
if (resultSet instanceof OracleResultSet)
return (OracleResultSet) resultSet;
else
return (OracleResultSet) ((DelegatingResultSet) resultSet).getDelegate();
}
开发者ID:evlist,项目名称:orbeon-forms,代码行数:8,代码来源:SQLProcessorOracleTomcat5Delegate.java
示例8: fillX3dMaterialValues
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected void fillX3dMaterialValues (X3DMaterial x3dMaterial, OracleResultSet rs) throws SQLException {
double ambientIntensity = rs.getDouble("x3d_ambient_intensity");
if (!rs.wasNull()) {
x3dMaterial.setAmbientIntensity(ambientIntensity);
}
double shininess = rs.getDouble("x3d_shininess");
if (!rs.wasNull()) {
x3dMaterial.setShininess(shininess);
}
double transparency = rs.getDouble("x3d_transparency");
if (!rs.wasNull()) {
x3dMaterial.setTransparency(transparency);
}
Color color = getX3dColorFromString(rs.getString("x3d_diffuse_color"));
if (color != null) {
x3dMaterial.setDiffuseColor(color);
}
color = getX3dColorFromString(rs.getString("x3d_specular_color"));
if (color != null) {
x3dMaterial.setSpecularColor(color);
}
color = getX3dColorFromString(rs.getString("x3d_emissive_color"));
if (color != null) {
x3dMaterial.setEmissiveColor(color);
}
x3dMaterial.setIsSmooth(rs.getInt("x3d_is_smooth") == 1);
}
开发者ID:3dcitydb,项目名称:importer-exporter-oracle,代码行数:29,代码来源:KmlGenericObject.java
示例9: WrappedOracleResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
public WrappedOracleResultSet(ResultSet resultSet, String reference,
JdbcEvent event) {
super(resultSet, reference, event);
oracleRs = (OracleResultSet) resultSet;
}
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:6,代码来源:WrappedOracleResultSet.java
示例10: WrappedOracleCalculatedResultSet
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
public WrappedOracleCalculatedResultSet(ResultSet resultSet, String reference,
JdbcEvent event) {
super(resultSet, reference, event);
oracleRs = (OracleResultSet) resultSet;
}
开发者ID:dd00f,项目名称:ibm-performance-monitor,代码行数:6,代码来源:WrappedOracleCalculatedResultSet.java
示例11: createPlacemarksForFootprint
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected List<PlacemarkType> createPlacemarksForFootprint(OracleResultSet rs, KmlSplittingResult work) throws SQLException {
List<PlacemarkType> placemarkList = new ArrayList<PlacemarkType>();
PlacemarkType placemark = kmlFactory.createPlacemarkType();
placemark.setName(work.getGmlId());
placemark.setId(DisplayForm.FOOTPRINT_PLACEMARK_ID + placemark.getName());
if (work.getDisplayForm().isHighlightingEnabled()) {
placemark.setStyleUrl("#" + getStyleBasisName() + DisplayForm.FOOTPRINT_STR + "Style");
}
else {
placemark.setStyleUrl("#" + getStyleBasisName() + DisplayForm.FOOTPRINT_STR + "Normal");
}
if (getBalloonSettings().isIncludeDescription()) {
addBalloonContents(placemark, work.getId());
}
MultiGeometryType multiGeometry = kmlFactory.createMultiGeometryType();
placemark.setAbstractGeometryGroup(kmlFactory.createMultiGeometry(multiGeometry));
PolygonType polygon = null;
while (rs.next()) {
STRUCT buildingGeometryObj = (STRUCT)rs.getObject(1);
if (!rs.wasNull() && buildingGeometryObj != null) {
eventDispatcher.triggerEvent(new GeometryCounterEvent(null, this));
polygon = kmlFactory.createPolygonType();
polygon.setTessellate(true);
polygon.setExtrude(false);
polygon.setAltitudeModeGroup(kmlFactory.createAltitudeMode(AltitudeModeEnumType.CLAMP_TO_GROUND));
JGeometry groundSurface = convertToWGS84(JGeometry.load(buildingGeometryObj));
int dim = groundSurface.getDimensions();
for (int i = 0; i < groundSurface.getElemInfo().length; i = i+3) {
LinearRingType linearRing = kmlFactory.createLinearRingType();
BoundaryType boundary = kmlFactory.createBoundaryType();
boundary.setLinearRing(linearRing);
switch (groundSurface.getElemInfo()[i+1]) {
case EXTERIOR_POLYGON_RING:
polygon.setOuterBoundaryIs(boundary);
break;
case INTERIOR_POLYGON_RING:
polygon.getInnerBoundaryIs().add(boundary);
break;
case POINT:
case LINE_STRING:
continue;
default:
Logger.getInstance().warn("Unknown geometry for " + work.getGmlId());
continue;
}
double[] ordinatesArray = groundSurface.getOrdinatesArray();
int startNextGeometry = ((i+3) < groundSurface.getElemInfo().length) ?
groundSurface.getElemInfo()[i+3] - 1: // still more geometries
ordinatesArray.length; // default
// order points counter-clockwise
for (int j = startNextGeometry - dim; j >= groundSurface.getElemInfo()[i] - 1; j = j-dim) {
linearRing.getCoordinates().add(String.valueOf(ordinatesArray[j] + "," + ordinatesArray[j+1] + ",0"));
}
}
multiGeometry.getAbstractGeometryGroup().add(kmlFactory.createPolygon(polygon));
}
}
if (polygon != null) { // if there is at least some content
placemarkList.add(placemark);
}
return placemarkList;
}
开发者ID:3dcitydb,项目名称:importer-exporter-oracle,代码行数:71,代码来源:KmlGenericObject.java
示例12: createPlacemarksForGeometry
import oracle.jdbc.OracleResultSet; //导入依赖的package包/类
protected List<PlacemarkType> createPlacemarksForGeometry(OracleResultSet rs,
KmlSplittingResult work) throws SQLException{
return createPlacemarksForGeometry(rs, work, false, false);
}
开发者ID:3dcitydb,项目名称:importer-exporter-oracle,代码行数:5,代码来源:KmlGenericObject.java
注:本文中的oracle.jdbc.OracleResultSet类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论