|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
org.apache.openjpa.kernel.ExpressionStoreQuery.AbstractExpressionExecutor
public abstract static class ExpressionStoreQuery.AbstractExpressionExecutor
Provides support for queries that hold query information
in a QueryExpressions instance.
| Constructor Summary | |
|---|---|
ExpressionStoreQuery.AbstractExpressionExecutor()
|
|
| Method Summary | |
|---|---|
protected void |
assertNotContainer(Value val,
StoreQuery q)
Throw proper exception if given value is a collection/map/array. |
ClassMetaData[] |
getAccessPathMetaDatas(StoreQuery q)
Return an array of all persistent classes used in this query, or empty array if unknown. |
String |
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[] |
getAscending(StoreQuery q)
Return the ordering direction for all ordering clauses, or empty array if none. |
int |
getOperation(StoreQuery q)
Returns the operation this executor is meant to execute. |
LinkedMap |
getParameterTypes(StoreQuery q)
Return a map of parameter names to types. |
String[] |
getProjectionAliases(StoreQuery q)
Return the alias for each projection element, or empty array if not a projection. |
protected abstract QueryExpressions[] |
getQueryExpressions()
Return the parsed query expressions for our candidate types. |
void |
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 |
getResultClass(StoreQuery q)
Returns the result class, if any. |
Map |
getUpdates(StoreQuery q)
Return a map of FieldMetaData to update
Constants, in cases where this query is for a bulk update. |
boolean |
hasGrouping(StoreQuery q)
Whether the compiled query has grouping. |
boolean |
isAggregate(StoreQuery q)
Return true if the compiled query is an aggregate. |
boolean |
isPacking(StoreQuery q)
Return true if this executor packs projections into the result class itself. |
void |
validate(StoreQuery q)
Validate components of query. |
| Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
|---|
executeDelete, executeUpdate, getDataStoreActions, getOrderingValue, getProjectionTypes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.openjpa.kernel.StoreQuery.Executor |
|---|
executeDelete, executeQuery, executeUpdate, getDataStoreActions, getOrderingValue, getProjectionTypes |
| Constructor Detail |
|---|
public ExpressionStoreQuery.AbstractExpressionExecutor()
| Method Detail |
|---|
protected abstract QueryExpressions[] getQueryExpressions()
protected void assertNotContainer(Value val,
StoreQuery q)
public final void validate(StoreQuery q)
StoreQuery.Executor
validate in interface StoreQuery.Executorvalidate in class AbstractStoreQuery.AbstractExecutor
public void getRange(StoreQuery q,
Object[] params,
StoreQuery.Range range)
StoreQuery.Executor
getRange in interface StoreQuery.ExecutorgetRange in class AbstractStoreQuery.AbstractExecutorpublic final Class getResultClass(StoreQuery q)
StoreQuery.Executor
getResultClass in interface StoreQuery.ExecutorgetResultClass in class AbstractStoreQuery.AbstractExecutorpublic final boolean[] getAscending(StoreQuery q)
StoreQuery.Executor
getAscending in interface StoreQuery.ExecutorgetAscending in class AbstractStoreQuery.AbstractExecutorpublic final String getAlias(StoreQuery q)
StoreQuery.Executor
getAlias in interface StoreQuery.ExecutorgetAlias in class AbstractStoreQuery.AbstractExecutorpublic final String[] getProjectionAliases(StoreQuery q)
StoreQuery.Executor
getProjectionAliases in interface StoreQuery.ExecutorgetProjectionAliases in class AbstractStoreQuery.AbstractExecutorpublic final int getOperation(StoreQuery q)
StoreQuery.Executor
getOperation in interface StoreQuery.ExecutorgetOperation in class AbstractStoreQuery.AbstractExecutorQueryOperationspublic final boolean isAggregate(StoreQuery q)
StoreQuery.Executor
isAggregate in interface StoreQuery.ExecutorisAggregate in class AbstractStoreQuery.AbstractExecutorpublic final boolean hasGrouping(StoreQuery q)
StoreQuery.Executor
hasGrouping in interface StoreQuery.ExecutorhasGrouping in class AbstractStoreQuery.AbstractExecutorpublic final LinkedMap getParameterTypes(StoreQuery q)
StoreQuery.ExecutorMap.entrySet()'s Iterator must return values in the
order in which they were declared or used.
getParameterTypes in interface StoreQuery.ExecutorgetParameterTypes in class AbstractStoreQuery.AbstractExecutorpublic final Map getUpdates(StoreQuery q)
StoreQuery.ExecutorFieldMetaData to update
Constants, in cases where this query is for a bulk update.
getUpdates in interface StoreQuery.ExecutorgetUpdates in class AbstractStoreQuery.AbstractExecutorpublic final ClassMetaData[] getAccessPathMetaDatas(StoreQuery q)
StoreQuery.Executor
getAccessPathMetaDatas in interface StoreQuery.ExecutorgetAccessPathMetaDatas in class AbstractStoreQuery.AbstractExecutorpublic boolean isPacking(StoreQuery q)
StoreQuery.Executor
isPacking in interface StoreQuery.ExecutorisPacking in class AbstractStoreQuery.AbstractExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||