IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.config
Class QueryConfig

java.lang.Object
  extended by com.ibm.websphere.objectgrid.config.QueryConfig
All Implemented Interfaces:
Serializable

public class QueryConfig
extends Object
implements Serializable

This QueryConfig represents a schema configuration for a QueryManager. A QueryConfig object contains a set of QueryMapping objects and a set of QueryRelationship objects.

Users use addQuerySchema method to add a QueryMapping object and use addRelationship method to add a QueryRelationship object into this QueryConfig object.

Since:
WAS XD 6.1, XC10
See Also:
ObjectGrid.setQueryConfig(QueryConfig), QueryMapping, QueryRelationship, Serialized Form

Constructor Summary
QueryConfig()
          Default constructor.
 
Method Summary
 void addQueryMapping(QueryMapping mapping)
          Add a QueryMapping to this QueryConfig
 void addQueryRelationship(QueryRelationship relation)
          Add a QueryRelationship to this QueryConfig
 QueryMapping[] getQueryMappings()
          Retrieve all added QueryMappings
 QueryRelationship[] getQueryRelationships()
          Retrieve all added QueryRelationships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryConfig

public QueryConfig()
Default constructor.

Method Detail

addQueryMapping

public void addQueryMapping(QueryMapping mapping)
Add a QueryMapping to this QueryConfig

Parameters:
mapping - the QueryMapping to add.

addQueryRelationship

public void addQueryRelationship(QueryRelationship relation)
Add a QueryRelationship to this QueryConfig

Parameters:
relation - the QueryRelationship to add.

getQueryMappings

public QueryMapping[] getQueryMappings()
Retrieve all added QueryMappings

Returns:
array of QueryMapping

getQueryRelationships

public QueryRelationship[] getQueryRelationships()
Retrieve all added QueryRelationships

Returns:
array of QueryRelationship

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.