|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.query.Query
org.datanucleus.store.query.AbstractJavaQuery
public abstract class AbstractJavaQuery
Abstract representation of a Java-based query. To be extended by Java-based query languages.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.query.Query |
|---|
Query.SubqueryDefinition |
| Field Summary | |
|---|---|
protected java.util.Collection |
candidateCollection
Collection of candidates for this query. |
protected Extent |
candidateExtent
Extent of candidates for this query. |
protected java.lang.String |
singleString
Cached form of the single string form of the query. |
| Fields inherited from class org.datanucleus.store.query.Query |
|---|
BULK_DELETE, BULK_UPDATE, candidateClass, candidateClassName, clr, compilation, ec, explicitParameters, explicitVariables, extensions, filter, from, fromInclNo, fromInclParam, grouping, having, ignoreCache, implicitParameters, imports, LOCALISER, ordering, OTHER, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, SELECT, subclasses, subqueries, tasks, toExclNo, toExclParam, type, unique, unmodifiable, update |
| Constructor Summary | |
|---|---|
AbstractJavaQuery(ExecutionContext ec)
Constructor for a Java-based query. |
|
| Method Summary | |
|---|---|
protected void |
discardCompiled()
Method to discard our current compiled query due to changes. |
protected boolean |
evaluateInMemory()
Convenience method to return whether the query should be evaluated in-memory. |
java.util.Collection |
getCandidateCollection()
Accessor for the candidate collection (if specified using a collection). |
Extent |
getCandidateExtent()
Accessor for the candidate Extent (if specified using an Extent). |
abstract java.lang.String |
getSingleStringQuery()
Accessor for a single string form of the query. |
java.util.Set<java.lang.String> |
getSupportedExtensions()
Method to return the names of the extensions supported by this query. |
protected long |
performDeletePersistentAll(java.util.Map parameters)
Execute the query to delete persistent objects. |
void |
setCandidates(java.util.Collection pcs)
Set the candidate collection to query. |
void |
setCandidates(Extent pcs)
Set the candidate Extent to query. |
java.lang.String |
toString()
Stringifier method |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient Extent candidateExtent
protected transient java.util.Collection candidateCollection
protected java.lang.String singleString
| Constructor Detail |
|---|
public AbstractJavaQuery(ExecutionContext ec)
ec - ExecutionContext| Method Detail |
|---|
public void setCandidates(Extent pcs)
setCandidates in class Querypcs - the Candidate Extent.Query.setCandidates(javax.jdo.Extent)public void setCandidates(java.util.Collection pcs)
setCandidates in class Querypcs - the Candidate collection.Query.setCandidates(java.util.Collection)public Extent getCandidateExtent()
public java.util.Collection getCandidateCollection()
protected void discardCompiled()
discardCompiled in class QueryQuery.discardCompiled()protected long performDeletePersistentAll(java.util.Map parameters)
performDeletePersistentAll in class Queryparameters - the Map containing all of the parameters.
public abstract java.lang.String getSingleStringQuery()
public java.lang.String toString()
toString in class java.lang.Objectprotected boolean evaluateInMemory()
public java.util.Set<java.lang.String> getSupportedExtensions()
getSupportedExtensions in class Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||