|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.query.Query
org.jpox.store.query.AbstractJavaQuery
org.jpox.store.query.AbstractJDOQLQuery
org.jpox.store.rdbms.query.JDOQLQuery
public class JDOQLQuery
RDBMS representation of a JDOQL query for use by JPOX. The query can be specified via method calls, or via a single-string form.
Query,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.store.query.Query |
|---|
org.jpox.store.query.Query.SubqueryDefinition |
| Field Summary | |
|---|---|
protected org.jpox.store.mapped.query.Queryable |
candidates
Candidates for this query. |
protected org.jpox.store.mapped.expression.QueryExpression |
queryStmt
The Query Statement. |
| Fields inherited from class org.jpox.store.query.AbstractJavaQuery |
|---|
candidateCollection, candidateExtent, distinct, resultMetaData, rof, singleString, userDefinedScalarExpressions |
| Fields inherited from class org.jpox.store.query.Query |
|---|
BULK_DELETE, BULK_UPDATE, candidateClass, candidateClassName, explicitParameters, explicitVariables, extensions, filter, from, fromInclNo, grouping, having, ignoreCache, implicitParameters, imports, isCompiled, LOCALISER, om, ordering, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, SELECT, subclasses, subqueries, toExclNo, type, unique, unmodifiable, update |
| Constructor Summary | |
|---|---|
JDOQLQuery(org.jpox.ObjectManager om)
Constructs a new query instance that uses the given persistence manager. |
|
JDOQLQuery(org.jpox.ObjectManager om,
JDOQLQuery q)
Constructs a new query instance having the same criteria as the given query. |
|
JDOQLQuery(org.jpox.ObjectManager om,
java.lang.String query)
Constructor for a JDOQL query where the query is specified using the "Single-String" format. |
|
| Method Summary | |
|---|---|
protected boolean |
applyRangeChecks()
Method to return if the query results should have the range checked and unnecessary rows discarded. |
protected void |
compileInternal(boolean forExecute,
java.util.Map parameterValues)
Method to compile the query. |
protected void |
discardCompiled()
Method to discard our current compiled query due to changes. |
boolean |
equals(java.lang.Object obj)
Equality operator for JDOQL. |
org.jpox.store.mapped.query.Queryable |
getCandidates()
Accessor for the candidates for the query. |
protected org.jpox.store.mapped.query.Evaluator |
getEvaluator(org.jpox.ObjectManager om,
boolean distinct,
org.jpox.store.query.Query query,
org.jpox.store.query.ResultObjectFactory rof,
java.util.Collection candidateCollection)
Method to return the evaluator to use for this JDOQL query. |
protected java.lang.Object |
performExecute(java.util.Map parameters)
Execute the query and return the filtered QueryResult. |
protected boolean |
shouldReturnSingleRow()
Convenience method to return whether the query should return a single row. |
| Methods inherited from class org.jpox.store.query.AbstractJDOQLQuery |
|---|
getSingleStringQuery, performDeletePersistentAll, setGrouping |
| Methods inherited from class org.jpox.store.query.AbstractJavaQuery |
|---|
getCandidateCollection, getCandidateExtent, getParsedImports, getResultSetMetaData, getUserDefinedScalarExpressions, registerScalarExpression, registerScalarExpressions, resultHasOnlyAggregates, setCandidates, setCandidates, toString |
| Methods inherited from class org.jpox.store.query.Query |
|---|
addExtension, addSubquery, assertIsModifiable, close, closeAll, compile, declareExplicitParameters, declareExplicitVariables, declareImports, deletePersistentAll, deletePersistentAll, deletePersistentAll, execute, execute, execute, execute, executeWithArray, executeWithMap, getCandidateClass, getCandidateClassName, getExplicitParameters, getExplicitVariables, getExtension, getFetchPlan, getFilter, getFrom, getGrouping, getHaving, getIgnoreCache, getImports, getObjectManager, getOrdering, getRange, getRangeFromIncl, getRangeToExcl, getResult, getResultClass, getResultClassName, getStoreManager, getSubqueryForVariable, getType, getUpdate, hashCode, hasSubqueryForVariable, isCompiled, isSubclasses, isUnique, isUnmodifiable, prepareDatastore, resolveClassDeclaration, setCandidateClassName, setClass, setExtensions, setFetchPlan, setFilter, setFrom, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultMetaData, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient org.jpox.store.mapped.expression.QueryExpression queryStmt
protected transient org.jpox.store.mapped.query.Queryable candidates
| Constructor Detail |
|---|
public JDOQLQuery(org.jpox.ObjectManager om)
om - the associated ObjectManager for this query.
public JDOQLQuery(org.jpox.ObjectManager om,
JDOQLQuery q)
om - The ObjectManagerq - The query from which to copy criteria.
public JDOQLQuery(org.jpox.ObjectManager om,
java.lang.String query)
om - The persistence managerquery - The query string| Method Detail |
|---|
public org.jpox.store.mapped.query.Queryable getCandidates()
public boolean equals(java.lang.Object obj)
equals in class org.jpox.store.query.QueryObject.equals(java.lang.Object)
protected void compileInternal(boolean forExecute,
java.util.Map parameterValues)
compileInternal in class org.jpox.store.query.QueryforExecute - Whether to compile ready for executionprotected void discardCompiled()
discardCompiled in class org.jpox.store.query.AbstractJavaQueryQuery.discardCompiled()protected boolean shouldReturnSingleRow()
shouldReturnSingleRow in class org.jpox.store.query.Queryprotected java.lang.Object performExecute(java.util.Map parameters)
performExecute in class org.jpox.store.query.Queryparameters - Map containing all of the parameters.
protected org.jpox.store.mapped.query.Evaluator getEvaluator(org.jpox.ObjectManager om,
boolean distinct,
org.jpox.store.query.Query query,
org.jpox.store.query.ResultObjectFactory rof,
java.util.Collection candidateCollection)
query - The querydistinct - whether to return distinct resultsrof - ResultObjectFactorycandidateCollection - Any candidate collection
protected boolean applyRangeChecks()
applyRangeChecks in class org.jpox.store.query.Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||