| |
|
| java.lang.Object org.jpox.store.query.Query org.jpox.store.query.AbstractJavaQuery
All known Subclasses: org.jpox.store.query.AbstractJPQLQuery, org.jpox.store.query.AbstractJDOQLQuery,
AbstractJavaQuery | abstract public class AbstractJavaQuery extends Query (Code) | | Abstract representation of a Java-based query.
To be extended by Java-based query languages.
version: $Revision$ |
Inner Class :public static class ExecutedCompileCache | |
candidateCollection | protected transient Collection candidateCollection(Code) | | Collection of candidates for this query.
|
candidateExtent | protected transient Extent candidateExtent(Code) | | Extent of candidates for this query.
|
candidates | protected transient Queryable candidates(Code) | | Candidates for this query.
|
compiledCache | protected static Map compiledCache(Code) | | Some cache of compiled queries that is never used currently.
|
distinct | protected transient boolean distinct(Code) | | whether to apply "distinct" results. *
|
resultMetaData | protected transient JPOXResultSetMetaData resultMetaData(Code) | | Result metadata (JPOX extension, allowing access to more info). *
|
singleString | protected String singleString(Code) | | Cached form of the single string form of the query.
|
userDefinedScalarExpressions | protected static transient Map userDefinedScalarExpressions(Code) | | Register of user-defined ScalarExpression, provided via plugins.
|
AbstractJavaQuery | public AbstractJavaQuery(ObjectManager om)(Code) | | Constructor for a Java-based query.
Parameters: om - The ObjectManager |
getCachedQuery | protected ExecutedCompileCache getCachedQuery()(Code) | | Accessor for a compiled form of this query in the cache (if present).
Compiled form of this query if currently cached. |
getCandidateCollection | public Collection getCandidateCollection()(Code) | | Accessor for the candidate collection (if specified using a collection).
Candidate collection |
getCandidateExtent | public Extent getCandidateExtent()(Code) | | Accessor for the candidate Extent (if specified using an Extent).
Candidate Extent |
getCandidates | public Queryable getCandidates()(Code) | | Accessor for the candidates for the query.
This is only valid after compiling the query.
Candidates for the query |
getParsedImports | protected Imports getParsedImports()(Code) | | Accessor for the parsed imports.
If no imports are set then adds candidate class, user imports, and any user-defined expression packages.
Parsed imports |
getResultSetMetaData | public JPOXResultSetMetaData getResultSetMetaData()(Code) | | Retrieve the metadata for the results
the ResultSetMetaData |
getSingleStringQuery | abstract public String getSingleStringQuery()(Code) | | Accessor for a single string form of the query.
Single string form of the query. |
getUserDefinedScalarExpressions | public static Map getUserDefinedScalarExpressions()(Code) | | Accessor for the user-defined scalar expressions.
Map of user-defined scalar expressions |
registerScalarExpression | public static void registerScalarExpression(Class literal, Class scalarExpressionClass, String name)(Code) | | Register ScalarExpressions for the given cls . It allows
to perform operations in the query on cls.method([arglist]).
Parameters: literal - the class providing the operations; e.g. java.lang.Math.class Parameters: scalarExpressionClass - the class with the corresponding ScalarExpression. eg. org.jpox.store.expression.MathExpression.class Parameters: name - alternative name of the given literal class |
registerScalarExpressions | protected void registerScalarExpressions(PluginManager pluginMgr, ClassLoaderResolver clr)(Code) | | Register ScalarExpression classes delcared as plug-ins extensions
TODO currently register only the first time this class is instantiated. Should be registered per PMF?
Parameters: pluginMgr - The PluginManager Parameters: clr - The ClassLoaderResolver to load the literal and ScalarExpression classes |
resultHasOnlyAggregates | public boolean resultHasOnlyAggregates(String result)(Code) | | Convenience method to simple-parse the "result" clause returning if it includes
solely aggregates. This is necessary since we need this information before creating the
QueryStatement, after which we compile the result.
Parameters: result - The result required Whether it has only aggregates |
setCandidates | public void setCandidates(Extent pcs)(Code) | | Set the candidate Extent to query.
Parameters: pcs - the Candidate Extent. See Also: javax.jdo.Query.setCandidates(javax.jdo.Extent) |
setCandidates | public void setCandidates(Collection pcs)(Code) | | Set the candidate Collection to query.
Parameters: pcs - the Candidate collection. See Also: javax.jdo.Query.setCandidates(java.util.Collection) |
toString | public String toString()(Code) | | Stringifier method
Single-string form of this JDOQL query. |
Methods inherited from org.jpox.store.query.Query | public void addExtension(String key, Object value)(Code)(Java Doc) public void addSubquery(Query sub, String variableDecl, String candidateExpr, Map paramMap)(Code)(Java Doc) protected boolean applyRangeChecks()(Code)(Java Doc) protected void assertIsModifiable()(Code)(Java Doc) public void close(Object queryResult)(Code)(Java Doc) public void closeAll()(Code)(Java Doc) public void compile()(Code)(Java Doc) abstract protected void compileInternal(boolean forExecute, Map parameterValues)(Code)(Java Doc) public void declareExplicitParameters(String parameters)(Code)(Java Doc) public void declareExplicitVariables(String variables)(Code)(Java Doc) public void declareImports(String imports)(Code)(Java Doc) public long deletePersistentAll()(Code)(Java Doc) public long deletePersistentAll(Object[] parameters)(Code)(Java Doc) public long deletePersistentAll(Map parameters)(Code)(Java Doc) protected void discardCompiled()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Object execute()(Code)(Java Doc) public Object execute(Object p1)(Code)(Java Doc) public Object execute(Object p1, Object p2)(Code)(Java Doc) public Object execute(Object p1, Object p2, Object p3)(Code)(Java Doc) public Object executeWithArray(Object[] parameterValues)(Code)(Java Doc) public Object executeWithMap(Map parameters)(Code)(Java Doc) public Class getCandidateClass()(Code)(Java Doc) public String getCandidateClassName()(Code)(Java Doc) public String getExplicitParameters()(Code)(Java Doc) public String getExplicitVariables()(Code)(Java Doc) public Object getExtension(String key)(Code)(Java Doc) public FetchPlan getFetchPlan()(Code)(Java Doc) public String getFilter()(Code)(Java Doc) public String getFrom()(Code)(Java Doc) public String getGrouping()(Code)(Java Doc) public String getHaving()(Code)(Java Doc) public boolean getIgnoreCache()(Code)(Java Doc) public String getImports()(Code)(Java Doc) public ObjectManager getObjectManager()(Code)(Java Doc) public String getOrdering()(Code)(Java Doc) protected Imports getParsedImports()(Code)(Java Doc) public String getRange()(Code)(Java Doc) public long getRangeFromIncl()(Code)(Java Doc) public long getRangeToExcl()(Code)(Java Doc) public String getResult()(Code)(Java Doc) public Class getResultClass()(Code)(Java Doc) public String getResultClassName()(Code)(Java Doc) public StoreManager getStoreManager()(Code)(Java Doc) public SubqueryDefinition getSubqueryForVariable(String variableName)(Code)(Java Doc) public short getType()(Code)(Java Doc) public boolean hasSubqueryForVariable(String variableName)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isCompiled()(Code)(Java Doc) public boolean isSubclasses()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public boolean isUnmodifiable()(Code)(Java Doc) abstract protected long performDeletePersistentAll(Map parameters)(Code)(Java Doc) abstract protected Object performExecute(Map parameters)(Code)(Java Doc) protected void prepareDatastore()(Code)(Java Doc) public Class resolveClassDeclaration(String classDecl)(Code)(Java Doc) public void setCandidateClassName(String candidateClassName)(Code)(Java Doc) abstract public void setCandidates(Extent pcs)(Code)(Java Doc) abstract public void setCandidates(Collection pcs)(Code)(Java Doc) public void setClass(Class candidateClass)(Code)(Java Doc) public void setExtensions(Map extensions)(Code)(Java Doc) public void setFetchPlan(FetchPlan fp)(Code)(Java Doc) public void setFilter(String filter)(Code)(Java Doc) public void setFrom(String from)(Code)(Java Doc) public void setGrouping(String grouping)(Code)(Java Doc) public void setHaving(String having)(Code)(Java Doc) public void setIgnoreCache(boolean ignoreCache)(Code)(Java Doc) public void setImplicitParameter(String name, Object value)(Code)(Java Doc) public void setImplicitParameter(int position, Object value)(Code)(Java Doc) public void setOrdering(String ordering)(Code)(Java Doc) public void setRange(long fromIncl, long toExcl)(Code)(Java Doc) public void setRange(String range)(Code)(Java Doc) public void setResult(String result)(Code)(Java Doc) public void setResultClass(Class result_cls)(Code)(Java Doc) public void setResultClassName(String resultClassName)(Code)(Java Doc) public void setResultMetaData(QueryResultMetaData qrmd)(Code)(Java Doc) public void setSubclasses(boolean subclasses)(Code)(Java Doc) public void setType(short type)(Code)(Java Doc) public void setUnique(boolean unique)(Code)(Java Doc) public void setUnmodifiable()(Code)(Java Doc) abstract protected boolean shouldReturnSingleRow()(Code)(Java Doc)
|
|
|
|