Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.search.util
Class ResultSetRowQueryResult

java.lang.Object
  extended by oracle.webcenter.search.util.ResultSetRowQueryResult

All Implemented Interfaces:
java.util.Iterator<Row>, QueryResult<Row>

public class ResultSetRowQueryResult
extends java.lang.Object
implements QueryResult<Row>

A QueryResult of Row implementation by wrapping a ResultSet.

Since:
11.1.1.0.0 Beta 2
See Also:
ResultSetRow

Field Summary

 

Fields inherited from interface oracle.webcenter.search.QueryResult
ESTIMATED_RESULT_COUNT, RESPONSE_TIME

 

Constructor Summary
ResultSetRowQueryResult(java.util.Map<QName,java.lang.String> columnMap, java.sql.ResultSet resultSet)
          Construct a ResultSetRowQueryResult with a map of columns and a ResultSet to be wrapped.
ResultSetRowQueryResult(java.sql.ResultSet resultSet)
          Construct a ResultSetRowQueryResult with a ResultSet to be wrapped.

 

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Default implementation of the getProperties to subclasses to not have to implement this directly.
 boolean hasNext()
          Wrapped implementation of the Iterator.hasNext method.
 Row next()
          Wrapped implementation of the Iterator.next method.
 void remove()
          To prohibit callers from removing entries in the Iterator, this method always throws an Exception that "remove" is not supported.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ResultSetRowQueryResult

public ResultSetRowQueryResult(java.util.Map<QName,java.lang.String> columnMap,
                               java.sql.ResultSet resultSet)
Construct a ResultSetRowQueryResult with a map of columns and a ResultSet to be wrapped. Both constructor parameters will be forwarded to the construction of the ResultSetRow object.
Parameters:
columnMap - a map of columns from QName to column name
resultSet - a wrapped ResultSet

ResultSetRowQueryResult

public ResultSetRowQueryResult(java.sql.ResultSet resultSet)
Construct a ResultSetRowQueryResult with a ResultSet to be wrapped. This constructor parameter will be forwarded to the construction of the ResultSetRow object.
Parameters:
resultSet - a wrapped ResultSet

Method Detail

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Default implementation of the getProperties to subclasses to not have to implement this directly.
Specified by:
getProperties in interface QueryResult<Row>
Returns:
a Map of String keys and String values holding properties of the QueryResult.

hasNext

public boolean hasNext()
Wrapped implementation of the Iterator.hasNext method.
Specified by:
hasNext in interface java.util.Iterator<Row>
Returns:
true if there are more elements to be iterated

next

public Row next()
Wrapped implementation of the Iterator.next method.
Specified by:
next in interface java.util.Iterator<Row>
Returns:
a Row object that represents the next item in the target Iterator

remove

public void remove()
To prohibit callers from removing entries in the Iterator, this method always throws an Exception that "remove" is not supported.
Specified by:
remove in interface java.util.Iterator<Row>

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.