public class QueryResultHelperImpl
extends java.lang.Object
implements org.apache.jdo.query.QueryResultHelper
Modifier and Type | Field and Description |
---|---|
protected static org.apache.jdo.util.I18NHelper |
msg
I18N support
|
Constructor and Description |
---|
QueryResultHelperImpl(org.apache.jdo.pm.PersistenceManagerInternal pm,
QueryTree queryTree,
java.lang.Object candidates,
ParameterTable parameters,
VariableTable variables) |
Modifier and Type | Method and Description |
---|---|
boolean |
applyFilter(java.lang.Object obj)
This method determines whether the specified object is assignment
compatible to the candidate Class specified by the user and satisfies
the query filter.
|
static void |
checkPM(org.apache.jdo.pm.PersistenceManagerInternal queryPM,
java.lang.Object value)
Checks the PersistenceManager of the specified value to be
identical to the one from the query instance.
|
java.lang.Object |
getCandidates()
Return the candidate Collection or Extent specified by
the user.
|
ValueTable |
getParameterValues()
This method returns the parameter values passed by the user
in the execute(...) method.
|
QueryTree |
getQueryTree()
Return the query tree which is either specified by the user or compiled
from a JDOQL query.
|
java.util.List |
orderCandidates(java.util.Collection candidates)
This method filters the specified collection, removing all elements that
are not assignment compatible to the candidate Class specified by the
user, and then orders the results according to the ordering expression
specified by the user.
|
public QueryResultHelperImpl(org.apache.jdo.pm.PersistenceManagerInternal pm, QueryTree queryTree, java.lang.Object candidates, ParameterTable parameters, VariableTable variables)
public java.lang.Object getCandidates()
getCandidates
in interface org.apache.jdo.query.QueryResultHelper
public java.util.List orderCandidates(java.util.Collection candidates)
orderCandidates
in interface org.apache.jdo.query.QueryResultHelper
candidates
- the collection of instances to be filtered and orderedpublic boolean applyFilter(java.lang.Object obj)
applyFilter
in interface org.apache.jdo.query.QueryResultHelper
obj
- the candidate object.true
if the specified object is of the candidate
class and satisfies the query filter; false otherwise
public QueryTree getQueryTree()
public ValueTable getParameterValues()
public static void checkPM(org.apache.jdo.pm.PersistenceManagerInternal queryPM, java.lang.Object value)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.