com.alachisoft.jvcache.web.caching
Class ContinuousQuery

java.lang.Object
  extended by com.alachisoft.jvcache.web.caching.ContinuousQuery

public class ContinuousQuery
extends java.lang.Object

Class to hold Object query and values, intended for notifications.


Constructor Summary
ContinuousQuery(java.lang.String query, java.util.HashMap values)
          Initializes a new instance of the ContinuousQuery class.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getQuery()
           
 java.util.HashMap getValues()
           
 int hashCode()
           
 void RegisterAddNotification(ContinuousQueryItemAddedCallback itemAddedCallback)
          Registers notification for item added in ContinuousQuery resultset.
 void RegisterRemoveNotification(ContinuousQueryItemRemovedCallback itemRemovedCallback)
          Registers notification for item removed from ContinuousQuery resultset.
 void RegisterUpdateNotification(ContinuousQueryItemUpdatedCallback itemUpdatedCallback)
          Registers notification for item updated in ContinuousQuery resultset.
 void setQuery(java.lang.String query)
           
 void setValues(java.util.HashMap values)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousQuery

public ContinuousQuery(java.lang.String query,
                       java.util.HashMap values)
Initializes a new instance of the ContinuousQuery class.

Parameters:
query - Query text
values - Query values
Method Detail

getQuery

public java.lang.String getQuery()

setQuery

public void setQuery(java.lang.String query)

getValues

public java.util.HashMap getValues()

setValues

public void setValues(java.util.HashMap values)

RegisterAddNotification

public void RegisterAddNotification(ContinuousQueryItemAddedCallback itemAddedCallback)
Registers notification for item added in ContinuousQuery resultset.


RegisterUpdateNotification

public void RegisterUpdateNotification(ContinuousQueryItemUpdatedCallback itemUpdatedCallback)
Registers notification for item updated in ContinuousQuery resultset.


RegisterRemoveNotification

public void RegisterRemoveNotification(ContinuousQueryItemRemovedCallback itemRemovedCallback)
Registers notification for item removed from ContinuousQuery resultset.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object