public class OQLBrokerQueryFactory extends BaseOQLQueryFactory
logIndexes, logQueries, logQueryResults, logQueryResultSize, logUpdates, logWarnings, validateResults| Constructor and Description |
|---|
OQLBrokerQueryFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndexes() |
void |
createRegions()
Creates the regions used by the query object type.
|
Map |
fillAndExecutePreparedInsertObjects(List pobjs,
int i)
inserts objects into region
|
Object |
fillAndExecutePreparedQueryStatement(com.gemstone.gemfire.cache.query.Query query,
int queryType,
int id)
Determines how to fill and execute a given query and queryType
|
List |
getConstraintStatements() |
int |
getDeleteQueryType()
Returns the number of the delete query configured using the parameter class for
the factory.
|
objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo |
getFunctionalIndexOnBrokerId(String indexType) |
objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo |
getFunctionalIndexOnBrokerName() |
List |
getInsertObjects(int bid)
Generates the list of insert objects required to create a broker with the
given broker id.
|
List |
getPreparedInsertObjects() |
String |
getPreparedQuery(int queryType)
Returns a query string for a prepared statement for the given query type, parameterized by the
given integer value.
|
objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo |
getPrimaryKeyIndexOnBrokerId() |
String |
getQuery(int queryType,
int i)
Returns a query string for the given query type, parameterized by the
given integer value.
|
int |
getQueryType()
Returns the number of the query configured using the parameter class for
the factory.
|
String |
getRandomEqualityOnBrokerIdQuery(int i) |
int |
getUpdateQueryType()
Returns the number of the update query configured using the parameter class for
the factory.
|
void |
init()
Initializes the factory.
|
void |
readResultSet(int queryType,
Object resultSet)
Determines how to read the OQL results from the result object given the querytype
|
executeQueryPreparedStatementgetLogQueries, setLogQueriespublic void init()
BaseQueryFactoryinit in interface QueryFactoryinit in class BaseQueryFactorypublic void createRegions()
OQLQueryFactorypublic void createIndexes()
public List getConstraintStatements()
public List getInsertObjects(int bid)
bid - the unique broker idpublic List getPreparedInsertObjects()
public Map fillAndExecutePreparedInsertObjects(List pobjs, int i)
OQLQueryFactorypobjs - A list of objects for insertion. The implementing class needs to know what to do with this listi - the index of the object insertedpublic objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo getPrimaryKeyIndexOnBrokerId()
public objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo getFunctionalIndexOnBrokerId(String indexType)
public objects.query.broker.OQLBrokerQueryFactory.OQLIndexInfo getFunctionalIndexOnBrokerName()
public int getQueryType()
QueryFactorypublic int getUpdateQueryType()
QueryFactorypublic int getDeleteQueryType()
QueryFactorypublic String getQuery(int queryType, int i)
QueryFactorypublic String getPreparedQuery(int queryType)
QueryFactorypublic String getRandomEqualityOnBrokerIdQuery(int i)
public void readResultSet(int queryType,
Object resultSet)
resultSet - public Object fillAndExecutePreparedQueryStatement(com.gemstone.gemfire.cache.query.Query query, int queryType, int id)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.