Class QueryEvent


  • public class QueryEvent
    extends java.lang.Object
    Query event for signaling when a query is added or removed.
    • Field Detail

      • QUERY_ADDED

        public static final int QUERY_ADDED
        Query was added event.
        See Also:
        Constant Field Values
      • QUERY_REMOVED

        public static final int QUERY_REMOVED
        Query was removed event.
        See Also:
        Constant Field Values
      • type

        protected int type
        Event type.
    • Constructor Detail

      • QueryEvent

        public QueryEvent()
        Bean constructor.
      • QueryEvent

        public QueryEvent​(ServiceQuery<?> query,
                          int eventtype)
        Creates the query event.
        Parameters:
        query - The affected query.
        eventtype - The event type.
    • Method Detail

      • getType

        public int getType()
        Gets the event type.
        Returns:
        The event type.
      • setType

        public void setType​(int type)
        Sets the event type.
        Parameters:
        eventtype - The event type.
      • getQuery

        public ServiceQuery<?> getQuery()
        Gets the query.
        Returns:
        The query.
      • setQuery

        public void setQuery​(ServiceQuery<?> query)
        Sets the query.
        Parameters:
        query - The query.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object