ca.sqlpower.wabit.rs.olap
Class OlapQueryEvent

java.lang.Object
  extended by ca.sqlpower.wabit.rs.olap.OlapQueryEvent

public class OlapQueryEvent
extends java.lang.Object

Event object that carries the notification of the fact that a certain OlapQuery has recently been executed.

Instances of this class are immutable.


Constructor Summary
OlapQueryEvent(OlapQuery source, org.olap4j.CellSet cellSet)
          Creates a new event object.
 
Method Summary
 org.olap4j.CellSet getCellSet()
          Returns the cellSet that has just been produced, or null if the source OlapQuery is not currently able to produce a result.
 OlapQuery getSource()
          Returns the OlapQuery that fired this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OlapQueryEvent

public OlapQueryEvent(OlapQuery source,
                      org.olap4j.CellSet cellSet)
Creates a new event object. As a best/expected practice, only one instance of this event class should be created for each event--the same instance should be passed to each of the current listeners.

Parameters:
source - The OLAP query that produced this event. Must not be null.
cellSet - The cell set that has just been produced. If the source OlapQuery is not currently able to produce a result, this value can be null.
Method Detail

getSource

public OlapQuery getSource()
Returns the OlapQuery that fired this event. Never null.


getCellSet

public org.olap4j.CellSet getCellSet()
Returns the cellSet that has just been produced, or null if the source OlapQuery is not currently able to produce a result.



Copyright © 2009. All Rights Reserved.