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 ResultSetRow

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

All Implemented Interfaces:
Row

public class ResultSetRow
extends java.lang.Object
implements Row

A utility class that constructs a Row implementation by wrapping a ResultSet and consuming its column values in a "snapshot" way.

Since:
11.1.1.0.0 Beta 2

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

 

Method Summary
 java.util.Iterator<QName> getColumns()
          Gets the list of column names derived from combining the ResultSet columns and the list of columns declared by the constructor parameter.
 java.lang.Object getObject(QName column)
          Looks up into the stored "snapshot" of the column data to return a row representation for.

 

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

 

Constructor Detail

ResultSetRow

public ResultSetRow(java.sql.ResultSet resultSet)
             throws SearchException
Construct a ResultSetRow with a ResultSet to be wrapped.
Parameters:
resultSet - a wrapped ResultSet
Throws:
SearchException

ResultSetRow

public ResultSetRow(java.util.Map<QName,java.lang.String> columnMap,
                    java.sql.ResultSet resultSet)
             throws SearchException
Construct a ResultSetRow with a map of columns and a ResultSet to be wrapped.
Parameters:
columnMap - a map of columns from QName to column name
resultSet - a wrapped ResultSet
Throws:
SearchException

Method Detail

getColumns

public java.util.Iterator<QName> getColumns()
Gets the list of column names derived from combining the ResultSet columns and the list of columns declared by the constructor parameter.
Specified by:
getColumns in interface Row
Returns:
an Iterator of QName objects each corresponding to a column name.
See Also:
Row.getObject(oracle.webcenter.search.QName)

getObject

public java.lang.Object getObject(QName column)
Looks up into the stored "snapshot" of the column data to return a row representation for.
Specified by:
getObject in interface Row
Parameters:
column - the name of the column for which the value is sought
Returns:
the column value sought

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.