|
GigaSpaces XAP 8.0 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,
QueryResultType queryResultType)
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,
QueryResultType queryResultType)
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. |
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. |
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, 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(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, 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.Method Detail |
---|
public String getTypeName()
public Object getId()
public Object getRouting()
public QueryResultType getQueryResultType()
|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |