|
||||||||||
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
Constant s, 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.Executor
validate
in class AbstractStoreQuery.AbstractExecutor
public void getRange(StoreQuery q, Object[] params, StoreQuery.Range range)
StoreQuery.Executor
getRange
in interface StoreQuery.Executor
getRange
in class AbstractStoreQuery.AbstractExecutor
public final Class getResultClass(StoreQuery q)
StoreQuery.Executor
getResultClass
in interface StoreQuery.Executor
getResultClass
in class AbstractStoreQuery.AbstractExecutor
public final boolean[] getAscending(StoreQuery q)
StoreQuery.Executor
getAscending
in interface StoreQuery.Executor
getAscending
in class AbstractStoreQuery.AbstractExecutor
public final String getAlias(StoreQuery q)
StoreQuery.Executor
getAlias
in interface StoreQuery.Executor
getAlias
in class AbstractStoreQuery.AbstractExecutor
public final String[] getProjectionAliases(StoreQuery q)
StoreQuery.Executor
getProjectionAliases
in interface StoreQuery.Executor
getProjectionAliases
in class AbstractStoreQuery.AbstractExecutor
public final int getOperation(StoreQuery q)
StoreQuery.Executor
getOperation
in interface StoreQuery.Executor
getOperation
in class AbstractStoreQuery.AbstractExecutor
QueryOperations
public final boolean isAggregate(StoreQuery q)
StoreQuery.Executor
isAggregate
in interface StoreQuery.Executor
isAggregate
in class AbstractStoreQuery.AbstractExecutor
public final boolean hasGrouping(StoreQuery q)
StoreQuery.Executor
hasGrouping
in interface StoreQuery.Executor
hasGrouping
in class AbstractStoreQuery.AbstractExecutor
public final LinkedMap getParameterTypes(StoreQuery q)
StoreQuery.Executor
Map.entrySet()
's Iterator
must return values in the
order in which they were declared or used.
getParameterTypes
in interface StoreQuery.Executor
getParameterTypes
in class AbstractStoreQuery.AbstractExecutor
public final Map getUpdates(StoreQuery q)
StoreQuery.Executor
FieldMetaData
to update
Constant
s, in cases where this query is for a bulk update.
getUpdates
in interface StoreQuery.Executor
getUpdates
in class AbstractStoreQuery.AbstractExecutor
public final ClassMetaData[] getAccessPathMetaDatas(StoreQuery q)
StoreQuery.Executor
getAccessPathMetaDatas
in interface StoreQuery.Executor
getAccessPathMetaDatas
in class AbstractStoreQuery.AbstractExecutor
public boolean isPacking(StoreQuery q)
StoreQuery.Executor
isPacking
in interface StoreQuery.Executor
isPacking
in class AbstractStoreQuery.AbstractExecutor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.