com.starteam.events
Class QueryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.starteam.events.QueryEvent
All Implemented Interfaces:
java.io.Serializable

public final class QueryEvent
extends java.util.EventObject

An event triggered whenever a QueryManager is added, changed or deleted on the server.

See Also:
QueryListener, Type.addFilterQueryListener(com.starteam.events.IFilterQueryListener), Serialized Form

Method Summary
 Query getQuery()
          Gets the Query that has been added, changed or deleted, in its new state.
 java.lang.String toString()
          Gets a short description of this QueryEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getQuery

public Query getQuery()
Gets the Query that has been added, changed or deleted, in its new state.

Query.getType() will return a Type whose properties are up-to-date as of the time the event was triggered. This Type object is a physically different object from the Type object used to register the event handler. (In the case where the event handler was registered with a Server object, this Type object is physically different from the corresponding Type object in the Server's Type collection.)

If an application wants to refresh the list of queries associated with the original Type object, it must do so by explicitly calling Type.refreshFiltersAndQueries().

Returns:
The Query that has been added, changed or deleted, in its new state.
See Also:
Query, Type.getQueries(), Type.refreshFiltersAndQueries()

toString

public java.lang.String toString()
Gets a short description of this QueryEvent.

Overrides:
toString in class java.util.EventObject
Returns:
A short description of this QueryEvent.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.