|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.query.IdQuery<T>
public class IdQuery<T>
Class to encapsulate information of a query based on a Space ID. An ID query is composed of a type (provided either as a java class or as a string which contains the type name) and an ID value, and optionally a routing value an a query result type indicator.
QueryResultType
,
IdsQuery
Constructor Summary | |
---|---|
IdQuery(Class<T> type,
Object id)
Creates an IdQuery using the specified type and id. |
|
IdQuery(Class<T> type,
Object id,
Object routing)
Creates an IdQuery using the specified type, id and routing. |
|
IdQuery(Class<T> type,
Object id,
Object routing,
int version)
Creates an IdQuery using the specified type, id and routing. |
|
IdQuery(Class<T> type,
Object id,
Object routing,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id, routing and query result type. |
|
IdQuery(Class<T> type,
Object id,
Object routing,
QueryResultType queryResultType,
int version)
Creates an IdQuery using the specified type, id, routing and query result type. |
|
IdQuery(Class<T> type,
Object id,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id and query result type. |
|
IdQuery(String typeName,
Object id)
Creates an IdQuery using the specified type and id. |
|
IdQuery(String typeName,
Object id,
Object routing)
Creates an IdQuery using the specified type, id and routing. |
|
IdQuery(String typeName,
Object id,
Object routing,
int version)
Creates an IdQuery using the specified type, id and routing. |
|
IdQuery(String typeName,
Object id,
Object routing,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id, routing and query result type. |
|
IdQuery(String typeName,
Object id,
Object routing,
QueryResultType queryResultType,
int version)
Creates an IdQuery using the specified type, id, routing and query result type. |
|
IdQuery(String typeName,
Object id,
QueryResultType queryResultType)
Creates an IdQuery using the specified type, id and query result type. |
Method Summary | |
---|---|
Object |
getId()
Returns the id to match. |
String[] |
getProjections()
Returns the projections set on this query, null means no projection is used and all the properties should be returned. |
QueryResultType |
getQueryResultType()
Returns the type of result. |
Object |
getRouting()
Returns the routing value used to determine the partition to query. |
String |
getTypeName()
Returns the name of type to query. |
int |
getVersion()
Returns the version. |
IdQuery<T> |
setProjections(String... properties)
Sets projection properties which specifies that a result for an operation using this query should contain data for the specified projection properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdQuery(Class<T> type, Object id)
type
- Type to query.id
- Id to match.public IdQuery(Class<T> type, Object id, Object routing)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.public IdQuery(Class<T> type, Object id, Object routing, int version)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.version
- to consider when performing a modifying operation (take/clear/change), 0 version means no version check should be made.public IdQuery(Class<T> type, Object id, QueryResultType queryResultType)
type
- Type to query.id
- Id to match.queryResultType
- Type of result.public IdQuery(Class<T> type, Object id, Object routing, QueryResultType queryResultType)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdQuery(Class<T> type, Object id, Object routing, QueryResultType queryResultType, int version)
type
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.version
- to consider when performing a modifying operation (take/clear/change), 0 version means no version check should be made.public IdQuery(String typeName, Object id)
typeName
- Type to query.id
- Id to match.public IdQuery(String typeName, Object id, Object routing)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.public IdQuery(String typeName, Object id, Object routing, int version)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.version
- to consider when performing a modifying operation (take/clear/change), 0 version means no version check should be made.public IdQuery(String typeName, Object id, QueryResultType queryResultType)
typeName
- Type to query.id
- Id to match.queryResultType
- Type of result.public IdQuery(String typeName, Object id, Object routing, QueryResultType queryResultType)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.public IdQuery(String typeName, Object id, Object routing, QueryResultType queryResultType, int version)
typeName
- Type to query.id
- Id to match.routing
- Routing value to determine which partition to query.queryResultType
- Type of result.version
- to consider when performing a modifying operation (take/clear/change), 0 version means no version check should be made.Method Detail |
---|
public String getTypeName()
public Object getId()
public Object getRouting()
public QueryResultType getQueryResultType()
public int getVersion()
public IdQuery<T> setProjections(String... properties)
public String[] getProjections()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |