GigaSpaces XAP 9.7.2 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>, 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.
 
Method Summary
 
Methods inherited from class com.j_spaces.core.client.SQLQuery
equals, getFromQuery, getObject, getParameters, getProjections, getQuery, getQueryResultType, getRouting, getSelectAllQuery, getSelectCountQuery, getTypeName, hashCode, hasParameters, hasWhereClause, isNullExpression, isStoredProcedure, setParameter, setParameters, setProjections, setRouting, 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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.