com.taggercat.model
Class DataSourceEvent

java.lang.Object
  extended by com.taggercat.model.DataSourceEvent

public class DataSourceEvent
extends java.lang.Object

DataSourceEvent objects are passed to DataSourceEventListeners to notify of DataSource events.

 

Field Summary
static int AFTER_DELETE
          Value for type; DataSource just AFTER the DELETE operation.
static int AFTER_INSERT
          Value for type; DataSource just AFTER the INSERT operation.
static int AFTER_QBF
          Value for type; DataSource just after the QBF operation.
static int AFTER_QUERY
          Value for type; DataSource has executed its query.
static int AFTER_SAVE
          Value for type; DataSource just after the SAVE operation.
static int BEFORE_QBF
          Value for type; DataSource just before the QBF operation.
static int BEFORE_QUERY
          Value for type; DataSource just before the query executes.
static int BEFORE_SAVE
          Value for type; DataSource just before the SAVE operation.
static int REPOSITION
          Value for type; DataSource has repositioned to new tcEntity.
 
Constructor Summary
DataSourceEvent(DataSource dataSource, int type)
          Creates a DataSourceEvent instance.
 
Method Summary
 DataSource getDataSource()
          Returns the DataSource that originated this event.
 int getType()
          Returns event type (DataSourceEvent.REPOSITION or DataSourceEvent.QUERY_EXECUTE).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITION

public static final int REPOSITION
Value for type; DataSource has repositioned to new tcEntity.

See Also:
Constant Field Values

BEFORE_QUERY

public static final int BEFORE_QUERY
Value for type; DataSource just before the query executes.

See Also:
Constant Field Values

AFTER_QUERY

public static final int AFTER_QUERY
Value for type; DataSource has executed its query.

See Also:
Constant Field Values

BEFORE_SAVE

public static final int BEFORE_SAVE
Value for type; DataSource just before the SAVE operation.

See Also:
Constant Field Values

AFTER_SAVE

public static final int AFTER_SAVE
Value for type; DataSource just after the SAVE operation.

See Also:
Constant Field Values

BEFORE_QBF

public static final int BEFORE_QBF
Value for type; DataSource just before the QBF operation.

See Also:
Constant Field Values

AFTER_QBF

public static final int AFTER_QBF
Value for type; DataSource just after the QBF operation.

See Also:
Constant Field Values

AFTER_INSERT

public static final int AFTER_INSERT
Value for type; DataSource just AFTER the INSERT operation.

See Also:
Constant Field Values

AFTER_DELETE

public static final int AFTER_DELETE
Value for type; DataSource just AFTER the DELETE operation.

See Also:
Constant Field Values
Constructor Detail

DataSourceEvent

public DataSourceEvent(DataSource dataSource,
                       int type)
Creates a DataSourceEvent instance.

Parameters:
dataSource - the DataSource creating this event.
type - the event type
Method Detail

getDataSource

public DataSource getDataSource()
Returns the DataSource that originated this event.

Returns:
the DataSource that originated this event.

getType

public int getType()
Returns event type (DataSourceEvent.REPOSITION or DataSourceEvent.QUERY_EXECUTE).

Returns:
Event type.