GigaSpaces XAP 7.0 API

com.j_spaces.core.client
Class ContinousQuery<T>

java.lang.Object
  extended by com.j_spaces.core.client.SQLQuery<T>
      extended by com.j_spaces.core.client.ContinousQuery<T>
All Implemented Interfaces:
Query<T>, Serializable
Direct Known Subclasses:
View

public class ContinousQuery<T>
extends SQLQuery<T>

Extends the SQLQuery interface to allow continuous query.

Since:
5.2
Version:
1.0
Author:
Guy Korland
See Also:
Serialized Form

Constructor Summary
ContinousQuery()
          Empty constructor.
ContinousQuery(Class<T> clazz, String sqlQuery)
          Constructor for setting the class of the entry to query with the sql query expression.
ContinousQuery(Class<T> clazz, String sqlQuery, Object... parameters)
          Constructor for setting the class of the entry to query with the sql query expression.
ContinousQuery(net.jini.core.entry.Entry entry, String sqlQuery)
          Constructor for setting the entry as a template to query with the sql query expression.
ContinousQuery(String className, String sqlQuery)
          Constructor for setting the className of the entry to query with the sql query expression.
ContinousQuery(String className, String sqlQuery, Object... parameters)
          Constructor for setting the class of the entry to query with the sql query expression.
ContinousQuery(T object, String sqlQuery)
          Constructor for setting the object as a template to query with the sql query expression.
 
Method Summary
 
Methods inherited from class com.j_spaces.core.client.SQLQuery
equals, getClassName, getEntry, getFromQuery, getObject, getParameters, getQuery, getSelectAllQuery, getSelectCountQuery, hashCode, hasParameters, hasWhereClause, isNullExpression, isStoredProcedure, setClassName, setParameter, setParameters, setQuery, setTemplate, setTemplate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContinousQuery

public ContinousQuery()
Empty constructor.


ContinousQuery

public ContinousQuery(String className,
                      String sqlQuery)
Constructor for setting the className of the entry to query with the sql query expression.

Parameters:
className - - Entry class name to be queried.
sqlQuery - - The SQL Query expression (contents of the WHERE part).

ContinousQuery

public ContinousQuery(Class<T> clazz,
                      String sqlQuery)
Constructor for setting the class of the entry to query with the sql query expression.

Parameters:
clazz - - Entry class to be queried.
sqlQuery - - The SQL Query expression (contents of the WHERE part).

ContinousQuery

public ContinousQuery(T object,
                      String sqlQuery)
Constructor for setting the object as a template to query with the sql query expression. The constructor behaves in a similar manner to the former, but incase of an ExternalEntry its class name is extracted implicitly.

Parameters:
object - - The POJO to query by
sqlQuery - - The SQL Query expression (contents of the WHERE part).
See Also:
SQLQuery.SQLQuery(String className, String sqlQuery)

ContinousQuery

public ContinousQuery(net.jini.core.entry.Entry entry,
                      String sqlQuery)
Constructor for setting the entry as a template to query with the sql query expression. The constructor behaves in a similar manner to the former, but incase of an ExternalEntry its class name is extracted implicitly.

Parameters:
entry - - The entry to query by
sqlQuery - - The SQL Query expression (contents of the WHERE part).
See Also:
SQLQuery.SQLQuery(String className, String sqlQuery)

ContinousQuery

public ContinousQuery(String className,
                      String sqlQuery,
                      Object... parameters)
Constructor for setting the class of the entry to query with the sql query expression.

Parameters:
className - Entry class to be queried.
sqlQuery - The SQL Query expression (contents of the WHERE part).
parameters - Parameters for the sql query
Since:
7.0

ContinousQuery

public ContinousQuery(Class<T> clazz,
                      String sqlQuery,
                      Object... parameters)
Constructor for setting the class of the entry to query with the sql query expression.

Parameters:
clazz - Entry class to be queried.
sqlQuery - The SQL Query expression (contents of the WHERE part).
parameters - Parameters for the sql query
Since:
7.0

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.