Package | Description |
---|---|
org.datanucleus.query |
This package provides general classes for querying across all datastores in particular languages.
|
org.datanucleus.query.inmemory |
Package providing the evaluation of queries using an in-memory process with evaluators for JDOQL and JPQL.
|
org.datanucleus.store |
Package handling the storage of classes to the datastore, and the management of the datastore.
|
org.datanucleus.store.federation |
Package providing management for federation of datastores.
|
org.datanucleus.store.query |
Package providing implementation of query language support for datastores.
|
org.datanucleus.store.query.cache |
Package providing definition of caching for queries.
|
Modifier and Type | Method and Description |
---|---|
static String |
QueryUtils.getKeyForQueryResultsCache(Query query,
Map params)
Convenience method to generate the "key" for storing the query results of a query with parameters.
|
static boolean |
QueryUtils.queryReturnsSingleRow(Query query)
Convenience method to return whether the query should return a single row.
|
Constructor and Description |
---|
JDOQLSingleStringParser(Query query,
String queryString)
Constructor for the Single-String parser.
|
JPQLSingleStringParser(Query query,
String queryString)
Constructor for the Single-String parser.
|
Modifier and Type | Field and Description |
---|---|
protected Query |
JavaQueryInMemoryEvaluator.query
Underlying "string-based" query.
|
Modifier and Type | Method and Description |
---|---|
protected Collection |
JDOQLInMemoryEvaluator.evaluateSubquery(Query query,
QueryCompilation compilation,
Collection candidates,
Object outerCandidate)
Method to evaluate a subquery of the query being evaluated.
|
protected abstract Collection |
JavaQueryInMemoryEvaluator.evaluateSubquery(Query subquery,
QueryCompilation compilation,
Collection candidates,
Object outerCandidate)
Method to evaluate a subquery of the query being evaluated.
|
protected Collection |
JPQLInMemoryEvaluator.evaluateSubquery(Query query,
QueryCompilation compilation,
Collection candidates,
Object outerCandidate)
Method to evaluate a subquery of the query being evaluated.
|
Constructor and Description |
---|
JavaQueryInMemoryEvaluator(String language,
Query query,
QueryCompilation compilation,
Map parameterValues,
ClassLoaderResolver clr,
Collection candidates)
Constructor for the evaluator of a query in the specified language.
|
JDOQLInMemoryEvaluator(Query query,
Collection candidates,
QueryCompilation compilation,
Map parameterValues,
ClassLoaderResolver clr)
Constructor.
|
JPQLInMemoryEvaluator(Query query,
Collection candidates,
QueryCompilation compilation,
Map parameterValues,
ClassLoaderResolver clr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Query |
StoreManager.newQuery(String language,
ExecutionContext ec)
Method to return a new query, for the specified language and ExecutionContext.
|
Query |
StoreManager.newQuery(String language,
ExecutionContext ec,
Query q)
Method to return a new query, for the specified language and ExecutionContext, using the specified existing query to copy from.
|
Query |
StoreManager.newQuery(String language,
ExecutionContext ec,
String queryString)
Method to return a new query, for the specified language and ExecutionContext, using the specified query string.
|
Modifier and Type | Method and Description |
---|---|
Query |
StoreManager.newQuery(String language,
ExecutionContext ec,
Query q)
Method to return a new query, for the specified language and ExecutionContext, using the specified existing query to copy from.
|
Modifier and Type | Class and Description |
---|---|
class |
FederatedJDOQLQuery
JDOQL query that is federated across multiple datastores
|
Modifier and Type | Method and Description |
---|---|
Query |
FederatedStoreManager.newQuery(String language,
ExecutionContext ec) |
Query |
FederatedQueryManagerImpl.newQuery(String language,
ExecutionContext ec,
Object query)
Method to generate a new query using the passed query as basis.
|
Query |
FederatedStoreManager.newQuery(String language,
ExecutionContext ec,
Query q) |
Query |
FederatedStoreManager.newQuery(String language,
ExecutionContext ec,
String queryString) |
Modifier and Type | Method and Description |
---|---|
Query |
FederatedStoreManager.newQuery(String language,
ExecutionContext ec,
Query q) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractJavaQuery<T>
Abstract representation of a Java-based query.
|
class |
AbstractJDOQLQuery
Abstract representation of a JDOQL query.
|
class |
AbstractJPQLQuery
Abstract representation of a JPQL query used by DataNucleus.
|
class |
AbstractStoredProcedureQuery
Abstract representation of a stored procedure query.
|
Modifier and Type | Field and Description |
---|---|
protected Query |
AbstractQueryResult.query
The Query object.
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.SubqueryDefinition.getQuery() |
Modifier and Type | Method and Description |
---|---|
void |
QueryManagerImpl.addQueryResult(Query query,
Map params,
List<Object> results) |
void |
QueryManager.addQueryResult(Query query,
Map params,
List<Object> results)
Method to store the results for a query.
|
void |
Query.addSubquery(Query sub,
String variableDecl,
String candidateExpr,
Map paramMap)
Method to add a subquery to this query.
|
List<Object> |
QueryManagerImpl.getQueryResult(Query query,
Map params) |
List<Object> |
QueryManager.getQueryResult(Query query,
Map params)
Accessor for the results for a query.
|
Constructor and Description |
---|
AbstractQueryResult(Query query)
Constructor of the result from a Query.
|
CandidateIdsQueryResult(Query query,
List<Object> inputIds) |
SubqueryDefinition(Query q,
String candidates,
String variables,
Map params) |
Modifier and Type | Method and Description |
---|---|
void |
QueryResultsCache.evict(Query query)
Evict the query from the results cache.
|
void |
JavaxCacheQueryResultCache.evict(Query query) |
void |
AbstractMapQueryResultsCache.evict(Query query) |
void |
QueryResultsCache.evict(Query query,
Map params)
Evict the query with the specified params from the results cache.
|
void |
JavaxCacheQueryResultCache.evict(Query query,
Map params) |
void |
AbstractMapQueryResultsCache.evict(Query query,
Map params) |
default void |
QueryResultsCache.pin(Query query)
Method to pin the specified query in the cache, preventing garbage collection.
|
void |
AbstractMapQueryResultsCache.pin(Query query) |
default void |
QueryResultsCache.pin(Query query,
Map params)
Method to pin the specified query in the cache, preventing garbage collection.
|
void |
AbstractMapQueryResultsCache.pin(Query query,
Map params) |
default void |
QueryResultsCache.unpin(Query query)
Method to unpin the specified query from the cache, allowing garbage collection.
|
void |
AbstractMapQueryResultsCache.unpin(Query query) |
default void |
QueryResultsCache.unpin(Query query,
Map params)
Method to unpin the specified query from the cache, allowing garbage collection.
|
void |
AbstractMapQueryResultsCache.unpin(Query query,
Map params) |
Copyright © 2019. All rights reserved.