com.triactive.jdo.store.query
Class JdoqlQuery

java.lang.Object
  extended bycom.triactive.jdo.store.query.Query
      extended bycom.triactive.jdo.store.query.JdoqlQuery
All Implemented Interfaces:
javax.jdo.Query, 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
           
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.query.Query
candidateClass, dba, extensions, filter, grouping, imports, isPart1Compiled, ordering, parameterNames, parameters, parameterTypesByName, parsedImports, pm, queryResults, result, resultClass, storeMgr, unique, variableNames, variables, variableTypesByName
 
Constructor Summary
JdoqlQuery(PersistenceManager pm, JdoqlQuery existingQuery)
          Constructs a new query instance having the same criteria as the given query.
 
Method Summary
protected  void discardCompiled()
           
protected  boolean effectiveUniqueSetting()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object executeWithMap(java.util.Map parameters)
          Execute the query and return the filtered Collection.
protected  ResultExpression getResultExpression(java.sql.ResultSetMetaData rs)
           
protected  StatementText getStatementText()
           
 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.Query
addExtension, close, closeAll, compile, declareImports, declareParameters, declareVariables, effectiveFetchSize, effectiveResultSetType, execute, execute, execute, execute, executeWithArray, getCandidateClass, getIgnoreCache, getPersistenceManager, getStoreManager, hashCode, isKnownExtensionKey, isValidJavaIdentifier, resolveClassDeclaration, setClass, setExtensions, setFilter, setGrouping, setIgnoreCache, setOrdering, setResult, setResultClass, setUnique
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdoqlQuery

public JdoqlQuery(PersistenceManager pm,
                  JdoqlQuery existingQuery)
Constructs a new query instance having the same criteria as the given query.

Parameters:
pm - the associated persistence manager for this query.
existingQuery - a query from which to copy criteria, or null for an empty query.
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)

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)

getStatementText

protected StatementText getStatementText()
Specified by:
getStatementText in class Query

getResultExpression

protected ResultExpression getResultExpression(java.sql.ResultSetMetaData rs)
Specified by:
getResultExpression in class Query

effectiveUniqueSetting

protected boolean effectiveUniqueSetting()
Specified by:
effectiveUniqueSetting in class Query


Copyright © 2001-2007 The TJDO Project All Rights Reserved.