org.shiftone.exq.impl.query
Class QueryResultImpl

java.lang.Object
  extended byorg.shiftone.exq.impl.query.QueryResultImpl
All Implemented Interfaces:
QueryResult, java.io.Serializable

public class QueryResultImpl
extends java.lang.Object
implements QueryResult

This data structure is a holder for the data from a ResultSet. It can be though of as a disconnected ResultSet.

See Also:
Serialized Form

Constructor Summary
QueryResultImpl(java.sql.ResultSet resultSet)
          Constructor QueryResultImpl
 
Method Summary
 int getColumnCount()
          Method getColumnCount
 int getColumnIndex(java.lang.String columnName)
          Method columnIndex
 java.lang.String getColumnName(int columnIndex)
          Method getColumnName
 java.lang.Class getColumnType(int columnIndex)
          Method getColumnType
 int getRowCount()
          Method getRowCount
 java.lang.Object[] getRowData(int rowIndex)
          Method getRowData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultImpl

public QueryResultImpl(java.sql.ResultSet resultSet)
                throws java.sql.SQLException
Constructor QueryResultImpl

Parameters:
resultSet -
Throws:
java.sql.SQLException
Method Detail

getRowCount

public int getRowCount()
Method getRowCount

Specified by:
getRowCount in interface QueryResult

getColumnCount

public int getColumnCount()
Method getColumnCount

Specified by:
getColumnCount in interface QueryResult

getColumnName

public java.lang.String getColumnName(int columnIndex)
Method getColumnName

Specified by:
getColumnName in interface QueryResult
Parameters:
columnIndex -

getColumnType

public java.lang.Class getColumnType(int columnIndex)
Method getColumnType

Specified by:
getColumnType in interface QueryResult
Parameters:
columnIndex -

getRowData

public java.lang.Object[] getRowData(int rowIndex)
Method getRowData

Specified by:
getRowData in interface QueryResult
Parameters:
rowIndex -

getColumnIndex

public int getColumnIndex(java.lang.String columnName)
Method columnIndex

Specified by:
getColumnIndex in interface QueryResult
Parameters:
columnName -
Returns:
the index of the column, or -1 if the column doesn't exist.