GigaSpaces XAP 8.0 API

com.j_spaces.core.client.view
Class View<T>

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

Deprecated. Since 8.0.5 - Use SQLQuery Instead.

@Deprecated
public class View<T>
extends ContinousQuery<T>

Extends the ContinousQuery interface to allow creation of local view.
Code Example:


        Properties prop = new Properties();
        View[] views = new View[]{ new View( MyClass, "myField>10")};
        prop.put( SpaceURL.VIEWS, views); 
        SpaceFinder.find( spaceUrl, prop);
 

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

Constructor Summary
View()
          Deprecated. Empty constructor.
View(Class<T> type, String sqlExpression)
          Deprecated. Creates a View using the specified type and expression.
View(Class<T> type, String sqlExpression, Object... parameters)
          Deprecated. Creates a View using the specified type, expression and parameters.
View(Class<T> type, String sqlExpression, QueryResultType queryResultType)
          Deprecated. Creates a View using the specified type, expression and result type.
View(Class<T> type, String sqlExpression, QueryResultType queryResultType, Object... parameters)
          Deprecated. Creates a View using the specified type, expression, result type and parameters.
View(String typeName, String sqlExpression)
          Deprecated. Creates a View using the specified type and expression.
View(String typeName, String sqlExpression, Object... parameters)
          Deprecated. Creates a View using the specified type, expression and parameters.
View(String typeName, String sqlExpression, QueryResultType queryResultType)
          Deprecated. Creates a View using the specified type, expression and result type.
View(String typeName, String sqlExpression, QueryResultType queryResultType, Object... parameters)
          Deprecated. Creates a View using the specified type, expression, result type and parameters.
View(T object, String sqlQuery)
          Deprecated. 
 
Method Summary
 
Methods inherited from class com.j_spaces.core.client.SQLQuery
equals, getClassName, getEntry, getFromQuery, getObject, getParameters, getQuery, getQueryResultType, getRouting, getSelectAllQuery, getSelectCountQuery, getTypeName, hashCode, hasParameters, hasWhereClause, isNullExpression, isStoredProcedure, setClassName, setParameter, setParameters, setQuery, setRouting, setTemplate, setTemplate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

View

public View()
Deprecated. 
Empty constructor.


View

public View(String typeName,
            String sqlExpression)
Deprecated. 
Creates a View using the specified type and expression.

Parameters:
typeName - Entry type to be queried.
sqlExpression - The SQL Query expression (contents of the WHERE part).

View

public View(String typeName,
            String sqlExpression,
            QueryResultType queryResultType)
Deprecated. 
Creates a View using the specified type, expression and result type.

Parameters:
typeName - Entry type to be queried.
sqlExpression - The SQL Query expression (contents of the WHERE part).
queryResultType - Type of result.
Since:
8.0.1

View

public View(String typeName,
            String sqlExpression,
            Object... parameters)
Deprecated. 
Creates a View using the specified type, expression and parameters.

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

View

public View(String typeName,
            String sqlExpression,
            QueryResultType queryResultType,
            Object... parameters)
Deprecated. 
Creates a View using the specified type, expression, result type and parameters.

Parameters:
typeName - Entry type to be queried.
sqlExpression - The SQL Query expression (contents of the WHERE part).
queryResultType - Type of result.
parameters - Parameters for the sql query.
Since:
8.0.1

View

public View(Class<T> type,
            String sqlExpression)
Deprecated. 
Creates a View using the specified type and expression.

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

View

public View(Class<T> type,
            String sqlExpression,
            QueryResultType queryResultType)
Deprecated. 
Creates a View using the specified type, expression and result type.

Parameters:
type - Entry type to be queried.
sqlExpression - The SQL Query expression (contents of the WHERE part).
queryResultType - Type of result.
Since:
8.0.1

View

public View(Class<T> type,
            String sqlExpression,
            Object... parameters)
Deprecated. 
Creates a View using the specified type, expression and parameters.

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

View

public View(Class<T> type,
            String sqlExpression,
            QueryResultType queryResultType,
            Object... parameters)
Deprecated. 
Creates a View using the specified type, expression, result type and parameters.

Parameters:
type - Entry type to be queried.
sqlExpression - The SQL Query expression (contents of the WHERE part).
queryResultType - Type of result.
parameters - Parameters for the sql query.
Since:
8.0.1

View

@Deprecated
public View(T object,
                       String sqlQuery)
Deprecated. 

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)

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.