ca.sqlpower.wabit.olap
Class OlapResultSet

java.lang.Object
  extended by ca.sqlpower.sql.CachedRowSet
      extended by ca.sqlpower.wabit.olap.OlapResultSet
All Implemented Interfaces:
java.io.Serializable, java.sql.ResultSet, java.sql.Wrapper

public class OlapResultSet
extends ca.sqlpower.sql.CachedRowSet

Creates a new result set based on the given cell set.

The result set will be laid out like this:

Row Dim 0 Level 0 Row Dim 0 Level 1 ... Row Dim 0 Level N Row Dim 1 Level 0 Row Dim 1 Level 1 ... Row Dim 1 Level N Col Dim 0 Level 0 Member
Col Dim 0 Level 1 Member
...
Col Dim 1 Level 0 Member
Col Dim 0 Level 0 Member
Col Dim 0 Level 1 Member
...
Col Dim 1 Level 0 Member
...
Member Name Member Name ... Member Name Member Name Member Name ... Member Name Cell Value Cell Value ...
Member Name Member Name ... Member Name Member Name Member Name ... Member Name Cell Value Cell Value ...

There will be a row in the result set for every Columns axis position in the given Cell set.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ca.sqlpower.sql.CachedRowSet
ca.sqlpower.sql.CachedRowSet.RowComparator
 
Field Summary
 
Fields inherited from class ca.sqlpower.sql.CachedRowSet
curRow, data, rsmd
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
OlapResultSet()
           
 
Method Summary
 void populate(org.olap4j.CellSet cellSet)
          Populates this result set from the given cell set according to the rules outlined in the class-level comment.
 
Methods inherited from class ca.sqlpower.sql.CachedRowSet
absolute, addRowSetListener, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, createShared, createSharedSorted, deleteRow, findColumn, fireRowAdded, first, follow, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumnIndex, getConcurrency, getCursorName, getData, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, populate, populate, populate, previous, refreshRow, relative, removeRowSetListener, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, size, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull, wouldPass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

OlapResultSet

public OlapResultSet()
              throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

populate

public void populate(org.olap4j.CellSet cellSet)
              throws java.sql.SQLException
Populates this result set from the given cell set according to the rules outlined in the class-level comment.

Parameters:
cellSet - The cell set to convert. Must not be null.
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.