com.triactive.jdo.store
Class JDOQLQuery

java.lang.Object
  extended bycom.triactive.jdo.store.Query
      extended bycom.triactive.jdo.store.JDOQLQuery
All Implemented Interfaces:
javax.jdo.Query, java.io.Serializable

public class JDOQLQuery
extends Query

A JDO query that uses the default JQOQL language.

Author:
Mike Martin
See Also:
Query, Serialized Form

Nested Class Summary
 class JDOQLQuery.Compiler
           
 
Nested classes inherited from class com.triactive.jdo.store.Query
Query.ResultObjectFactory
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.Query
candidateClass, dba, filter, imports, isCompiled, ordering, parameterNames, parameters, parameterTypesByName, parsedImports, pm, queryResults, storeMgr, variableNames, variables, variableTypesByName
 
Constructor Summary
JDOQLQuery()
          Constructs a new query instance having no persistence manager.
JDOQLQuery(PersistenceManager pm, StoreManager storeMgr)
          Constructs a new query instance that uses the given persistence manager.
JDOQLQuery(PersistenceManager pm, StoreManager storeMgr, JDOQLQuery q)
          Constructs a new query instance having the same criteria as the given query.
 
Method Summary
 void compile()
          Verify the elements of the query and provide a hint to the query to prepare and optimize an execution plan.
protected  void discardCompiled()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object executeWithMap(java.util.Map parameters)
          Execute the query and return the filtered Collection.
 void setCandidates(java.util.Collection pcs)
          Set the candidate Collection to query.
 void setCandidates(javax.jdo.Extent pcs)
          Set the candidate Extent to query.
 
Methods inherited from class com.triactive.jdo.store.Query
close, closeAll, declareImports, declareParameters, declareVariables, execute, execute, execute, execute, executeWithArray, getCandidateClass, getIgnoreCache, getPersistenceManager, getStoreManager, hashCode, isValidJavaIdentifier, resolveClassDeclaration, setClass, setFilter, setIgnoreCache, setOrdering
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLQuery

public JDOQLQuery()
Constructs a new query instance having no persistence manager. The resulting query cannot be executed, but can be used to create a new query instance having the same criteria.


JDOQLQuery

public JDOQLQuery(PersistenceManager pm,
                  StoreManager storeMgr)
Constructs a new query instance that uses the given persistence manager.

Parameters:
pm - the associated persistence manager for this query.

JDOQLQuery

public JDOQLQuery(PersistenceManager pm,
                  StoreManager storeMgr,
                  JDOQLQuery q)
Constructs a new query instance having the same criteria as the given query.

Parameters:
q - the query from which to copy criteria.
Method Detail

discardCompiled

protected void discardCompiled()
Overrides:
discardCompiled in class Query

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Query

setCandidates

public void setCandidates(javax.jdo.Extent pcs)
Set the candidate Extent to query.

Specified by:
setCandidates in interface javax.jdo.Query
Specified by:
setCandidates in class Query
Parameters:
pcs - the Candidate Extent.
See Also:
Query.setCandidates(javax.jdo.Extent)

setCandidates

public void setCandidates(java.util.Collection pcs)
Set the candidate Collection to query.

Specified by:
setCandidates in interface javax.jdo.Query
Specified by:
setCandidates in class Query
Parameters:
pcs - the Candidate collection.
See Also:
Query.setCandidates(java.util.Collection)

compile

public void compile()
Verify the elements of the query and provide a hint to the query to prepare and optimize an execution plan.

Specified by:
compile in interface javax.jdo.Query
Overrides:
compile in class Query
See Also:
Query.compile()

executeWithMap

public java.lang.Object executeWithMap(java.util.Map parameters)
Execute the query and return the filtered Collection.

Specified by:
executeWithMap in interface javax.jdo.Query
Specified by:
executeWithMap in class Query
Parameters:
parameters - the Map containing all of the parameters.
Returns:
the filtered Collection.
See Also:
Query.executeWithMap(Map), Query.executeWithArray(Object[] parameters)


Copyright ? 2001 TriActive, Inc. All Rights Reserved.