Package | Description |
---|---|
org.apache.openjpa.abstractstore |
OpenJPA Abstract StoreManager Implementation
This package provides some infrastructure classes to help in the creation
of OpenJPA drivers for new non-relational data stores.
|
org.apache.openjpa.datacache |
OpenJPA Data Cache
OpenJPA's data and query caching frameworks.
|
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
Runtime services for the JDBC OpenJPA implementation.
|
org.apache.openjpa.kernel |
OpenJPA Runtime Kernel
This package provides a common OpenJPA runtime environment that can be
adapted for use with various data store mechanisms.
|
org.apache.openjpa.slice |
Extended OpenJPA Interfaces for distributed databases.
|
org.apache.openjpa.slice.jdbc |
Implements Distributed version of JDBCStoreManager and JDBCStoreQuery.
|
Modifier and Type | Method and Description |
---|---|
StoreQuery |
AbstractStoreManager.newQuery(String language) |
Modifier and Type | Class and Description |
---|---|
class |
QueryCacheStoreQuery
A
StoreQuery implementation that caches the OIDs involved in
the query, and can determine whether or not the query has been dirtied. |
Modifier and Type | Method and Description |
---|---|
StoreQuery |
QueryCacheStoreQuery.getDelegate()
Delegate.
|
Constructor and Description |
---|
QueryCacheStoreQuery(StoreQuery query,
QueryCache cache)
Create a new instance that delegates to
query if no
cached results are available. |
Modifier and Type | Class and Description |
---|---|
class |
JDBCStoreQuery
JDBC query implementation.
|
class |
PreparedSQLStoreQuery
A executor for Prepared SQL Query.
|
class |
SQLStoreQuery
A SQL query.
|
class |
StoredProcedureQuery
Executes a stored procedure.
|
Modifier and Type | Method and Description |
---|---|
StoreQuery |
JDBCStoreManager.newQuery(String language) |
Modifier and Type | Method and Description |
---|---|
ResultObjectProvider |
PreparedSQLStoreQuery.PreparedSQLExecutor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
ResultObjectProvider |
SQLStoreQuery.SQLExecutor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
ResultObjectProvider |
StoredProcedureQuery.StoredProcedureQueryExecutor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
Number |
SQLStoreQuery.SQLExecutor.executeUpdate(StoreQuery q,
Object[] params) |
String[] |
SQLStoreQuery.SQLExecutor.getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
int |
SQLStoreQuery.SQLExecutor.getOperation(StoreQuery q) |
Class[] |
PreparedSQLStoreQuery.PreparedSQLExecutor.getProjectionTypes(StoreQuery q) |
boolean |
SQLStoreQuery.SQLExecutor.isPacking(StoreQuery q) |
Object[] |
PreparedSQLStoreQuery.PreparedSQLExecutor.toParameterArray(StoreQuery q,
Map userParams)
Convert given userParams to an array whose ordering matches as
per expected during executeXXX() methods.
|
Object[] |
SQLStoreQuery.SQLExecutor.toParameterArray(StoreQuery q,
Map userParams)
The given query is parsed to find the parameter tokens of the form
? |
Object[] |
StoredProcedureQuery.StoredProcedureQueryExecutor.toParameterArray(StoreQuery q,
Map<?,?> userParams) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractStoreQuery
Abstract
StoreQuery that implements most methods as no-ops. |
class |
ExpressionStoreQuery
Implementation of an expression-based query, which can handle
String-based query expressions such as JPQL and JDOQL.
|
class |
MethodStoreQuery
A query that is executed by a user-defined method.
|
Modifier and Type | Method and Description |
---|---|
StoreQuery |
QueryImpl.getStoreQuery()
Internal store query.
|
StoreQuery |
StoreManager.newQuery(String language)
Return a query implementation suitable for this store.
|
StoreQuery |
DelegatingStoreManager.newQuery(String language) |
Modifier and Type | Method and Description |
---|---|
protected void |
ExpressionStoreQuery.AbstractExpressionExecutor.assertNotContainer(Value val,
StoreQuery q)
Throw proper exception if given value is a collection/map/array.
|
protected void |
QueryImpl.assertParameters(StoreQuery q,
StoreQuery.Executor ex,
Map params) |
protected void |
QueryImpl.assertParameters(StoreQuery q,
StoreQuery.Executor ex,
Object[] params)
Checks that the passed parameters match the declarations.
|
Number |
DelegatingQuery.deleteInMemory(StoreQuery q,
StoreQuery.Executor ex,
Object[] params) |
Number |
QueryContext.deleteInMemory(StoreQuery q,
StoreQuery.Executor ex,
Object[] params)
Helper method to delete the objects found by executing a query on
the given executor.
|
Number |
QueryImpl.deleteInMemory(StoreQuery q,
StoreQuery.Executor executor,
Object[] params) |
Number |
AbstractStoreQuery.AbstractExecutor.executeDelete(StoreQuery q,
Object[] params) |
Number |
ExpressionStoreQuery.DataStoreExecutor.executeDelete(StoreQuery q,
Object[] params) |
Number |
StoreQuery.Executor.executeDelete(StoreQuery q,
Object[] params)
Deleted the objects that result from the execution of the
query, retuning the number of objects that were deleted.
|
ResultObjectProvider |
ExpressionStoreQuery.InMemoryExecutor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
ResultObjectProvider |
ExpressionStoreQuery.DataStoreExecutor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
ResultObjectProvider |
StoreQuery.Executor.executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return the result of executing this query with the given parameter
values.
|
Number |
AbstractStoreQuery.AbstractExecutor.executeUpdate(StoreQuery q,
Object[] params) |
Number |
ExpressionStoreQuery.DataStoreExecutor.executeUpdate(StoreQuery q,
Object[] params) |
Number |
StoreQuery.Executor.executeUpdate(StoreQuery q,
Object[] params)
Updates the objects that result from the execution of the
query, retuning the number of objects that were updated.
|
ClassMetaData[] |
AbstractStoreQuery.AbstractExecutor.getAccessPathMetaDatas(StoreQuery q) |
ClassMetaData[] |
ExpressionStoreQuery.AbstractExpressionExecutor.getAccessPathMetaDatas(StoreQuery q) |
ClassMetaData[] |
StoreQuery.Executor.getAccessPathMetaDatas(StoreQuery q)
Return an array of all persistent classes used in this query, or
empty array if unknown.
|
String |
AbstractStoreQuery.AbstractExecutor.getAlias(StoreQuery q) |
String |
ExpressionStoreQuery.AbstractExpressionExecutor.getAlias(StoreQuery q) |
String |
StoreQuery.Executor.getAlias(StoreQuery q)
If this is not a projection but the candidate results are placed
into a result class with an alias, return that alias.
|
boolean[] |
AbstractStoreQuery.AbstractExecutor.getAscending(StoreQuery q) |
boolean[] |
ExpressionStoreQuery.AbstractExpressionExecutor.getAscending(StoreQuery q) |
boolean[] |
StoreQuery.Executor.getAscending(StoreQuery q)
Return the ordering direction for all ordering clauses, or empty
array if none.
|
String[] |
AbstractStoreQuery.AbstractExecutor.getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
String[] |
ExpressionStoreQuery.InMemoryExecutor.getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
String[] |
ExpressionStoreQuery.DataStoreExecutor.getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
String[] |
StoreQuery.Executor.getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return a description of the commands that will be sent to
the datastore in order to execute the query.
|
int |
AbstractStoreQuery.AbstractExecutor.getOperation(StoreQuery q) |
int |
ExpressionStoreQuery.AbstractExpressionExecutor.getOperation(StoreQuery q) |
int |
StoreQuery.Executor.getOperation(StoreQuery q)
Returns the operation this executor is meant to execute.
|
OrderedMap<Object,Class<?>> |
AbstractStoreQuery.AbstractExecutor.getOrderedParameterTypes(StoreQuery q) |
OrderedMap<Object,Class<?>> |
ExpressionStoreQuery.AbstractExpressionExecutor.getOrderedParameterTypes(StoreQuery q) |
OrderedMap<Object,Class<?>> |
StoreQuery.Executor.getOrderedParameterTypes(StoreQuery q)
Return a map of parameter names to types.
|
Object |
AbstractStoreQuery.AbstractExecutor.getOrderingValue(StoreQuery q,
Object[] params,
Object resultObject,
int orderIndex) |
Object |
ExpressionStoreQuery.InMemoryExecutor.getOrderingValue(StoreQuery q,
Object[] params,
Object resultObject,
int orderIndex) |
Object |
ExpressionStoreQuery.DataStoreExecutor.getOrderingValue(StoreQuery q,
Object[] params,
Object resultObject,
int orderIndex) |
Object |
StoreQuery.Executor.getOrderingValue(StoreQuery q,
Object[] params,
Object resultObject,
int orderIndex)
Extract the value of the
orderIndex th ordering
expression in Query#getOrderingClauses from the
given result object. |
org.apache.commons.collections4.map.LinkedMap |
AbstractStoreQuery.AbstractExecutor.getParameterTypes(StoreQuery q) |
org.apache.commons.collections4.map.LinkedMap |
StoreQuery.Executor.getParameterTypes(StoreQuery q)
Deprecated.
|
String[] |
AbstractStoreQuery.AbstractExecutor.getProjectionAliases(StoreQuery q) |
String[] |
ExpressionStoreQuery.AbstractExpressionExecutor.getProjectionAliases(StoreQuery q) |
String[] |
StoreQuery.Executor.getProjectionAliases(StoreQuery q)
Return the alias for each projection element, or empty array
if not a projection.
|
Class<?>[] |
AbstractStoreQuery.AbstractExecutor.getProjectionTypes(StoreQuery q) |
Class<?>[] |
ExpressionStoreQuery.AbstractExpressionExecutor.getProjectionTypes(StoreQuery q) |
Class[] |
ExpressionStoreQuery.InMemoryExecutor.getProjectionTypes(StoreQuery q) |
Class[] |
ExpressionStoreQuery.DataStoreExecutor.getProjectionTypes(StoreQuery q) |
Class<?>[] |
StoreQuery.Executor.getProjectionTypes(StoreQuery q)
Return the expected types of the projections used by this query,
or an empty array if not a projection.
|
void |
AbstractStoreQuery.AbstractExecutor.getRange(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
void |
ExpressionStoreQuery.AbstractExpressionExecutor.getRange(StoreQuery q,
Object[] params,
StoreQuery.Range range) |
void |
StoreQuery.Executor.getRange(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Mutate the given range to set any range information stored in
the query string and/or parameters.
|
Class<?> |
AbstractStoreQuery.AbstractExecutor.getResultClass(StoreQuery q) |
Class<?> |
ExpressionStoreQuery.AbstractExpressionExecutor.getResultClass(StoreQuery q) |
Class<?> |
StoreQuery.Executor.getResultClass(StoreQuery q)
Returns the result class, if any.
|
ResultShape<?> |
AbstractStoreQuery.AbstractExecutor.getResultShape(StoreQuery q) |
ResultShape<?> |
ExpressionStoreQuery.AbstractExpressionExecutor.getResultShape(StoreQuery q) |
ResultShape<?> |
StoreQuery.Executor.getResultShape(StoreQuery q) |
Map<FieldMetaData,Value> |
AbstractStoreQuery.AbstractExecutor.getUpdates(StoreQuery q) |
Map |
ExpressionStoreQuery.AbstractExpressionExecutor.getUpdates(StoreQuery q) |
Map<FieldMetaData,Value> |
StoreQuery.Executor.getUpdates(StoreQuery q)
Return a map of
FieldMetaData to update
Constant s, in cases where this query is for a bulk update. |
boolean |
AbstractStoreQuery.AbstractExecutor.hasGrouping(StoreQuery q) |
boolean |
ExpressionStoreQuery.AbstractExpressionExecutor.hasGrouping(StoreQuery q) |
boolean |
StoreQuery.Executor.hasGrouping(StoreQuery q)
Whether the compiled query has grouping.
|
boolean |
AbstractStoreQuery.AbstractExecutor.isAggregate(StoreQuery q) |
boolean |
ExpressionStoreQuery.AbstractExpressionExecutor.isAggregate(StoreQuery q) |
boolean |
StoreQuery.Executor.isAggregate(StoreQuery q)
Return true if the compiled query is an aggregate.
|
boolean |
AbstractStoreQuery.AbstractExecutor.isDistinct(StoreQuery q) |
boolean |
ExpressionStoreQuery.AbstractExpressionExecutor.isDistinct(StoreQuery q) |
boolean |
StoreQuery.Executor.isDistinct(StoreQuery q) |
boolean |
AbstractStoreQuery.AbstractExecutor.isPacking(StoreQuery q) |
boolean |
ExpressionStoreQuery.AbstractExpressionExecutor.isPacking(StoreQuery q) |
boolean |
StoreQuery.Executor.isPacking(StoreQuery q)
Return true if this executor packs projections into the result
class itself.
|
protected QueryImpl |
BrokerImpl.newQueryImpl(String lang,
StoreQuery sq)
Create a new query.
|
Object[] |
ExpressionStoreQuery.AbstractExpressionExecutor.toParameterArray(StoreQuery q,
Map<?,?> userParams)
Creates a Object[] from the values of the given user parameters.
|
Object[] |
StoreQuery.Executor.toParameterArray(StoreQuery q,
Map<?,?> userParams)
Return an array from the given user parameter values.
|
protected Object |
QueryImpl.toResult(StoreQuery q,
StoreQuery.Executor ex,
ResultObjectProvider rop,
StoreQuery.Range range)
Return the query result for the given result object provider.
|
Number |
DelegatingQuery.updateInMemory(StoreQuery q,
StoreQuery.Executor ex,
Object[] params) |
Number |
QueryContext.updateInMemory(StoreQuery q,
StoreQuery.Executor ex,
Object[] params)
Helper method to update the objects found by executing a query on
the given executor.
|
Number |
QueryImpl.updateInMemory(StoreQuery q,
StoreQuery.Executor executor,
Object[] params) |
void |
AbstractStoreQuery.AbstractExecutor.validate(StoreQuery q) |
void |
ExpressionStoreQuery.AbstractExpressionExecutor.validate(StoreQuery q) |
void |
StoreQuery.Executor.validate(StoreQuery q)
Validate components of query.
|
Constructor and Description |
---|
OrderingMergedResultObjectProvider(ResultObjectProvider[] rops,
boolean[] asc,
StoreQuery.Executor[] execs,
StoreQuery q,
Object[] params) |
OrderingMergedResultObjectProvider(ResultObjectProvider[] rops,
boolean[] asc,
StoreQuery.Executor exec,
StoreQuery q,
Object[] params) |
QueryImpl(Broker broker,
String language,
StoreQuery storeQuery)
Construct a query managed by the given broker.
|
QueryResultCallback(QueryImpl kernel,
StoreQuery storeQuery,
StoreQuery.Executor executor,
BatchedResultObjectProvider parent,
StoreQuery.Range range) |
Modifier and Type | Method and Description |
---|---|
protected QueryImpl |
DistributedBrokerImpl.newQueryImpl(String lang,
StoreQuery sq)
Create a new query.
|
Constructor and Description |
---|
DistributedQueryImpl(Broker broker,
String language,
StoreQuery storeQuery) |
Constructor and Description |
---|
UniqueResultObjectProvider(ResultObjectProvider[] rops,
StoreQuery q,
QueryExpressions[] exps) |
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.