org.apache.cayenne.wocompat
Class EOQuery

java.lang.Object
  extended by org.apache.cayenne.query.AbstractQuery
      extended by org.apache.cayenne.query.QualifiedQuery
          extended by org.apache.cayenne.query.SelectQuery
              extended by org.apache.cayenne.wocompat.EOQuery
All Implemented Interfaces:
Serializable, ParameterizedQuery, Query, XMLSerializable

public class EOQuery
extends SelectQuery

A descriptor of SelectQuery loaded from EOModel. It is an informal "decorator" of Cayenne SelectQuery to provide access to the extra information of WebObjects EOFetchSpecification.

Since:
1.1
See Also:
Serialized Form

Field Summary
protected  Map bindings
           
protected  Map<String,?> plistMap
           
 
Fields inherited from class org.apache.cayenne.query.SelectQuery
distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, orderings
 
Fields inherited from class org.apache.cayenne.query.QualifiedQuery
qualifier
 
Fields inherited from class org.apache.cayenne.query.AbstractQuery
name, root
 
Constructor Summary
EOQuery(ObjEntity root, Map<String,?> plistMap)
           
 
Method Summary
 String bindingClass(String name)
           
 Collection getBindingNames()
           
 String getEOName()
           
protected  void initFromPlist(Map<String,?> plistMap)
           
 Expression makeQualifier(Map<String,?> qualifierMap)
          Creates the Expression equivalent of the EOFetchSpecification represented by the Map.
 
Methods inherited from class org.apache.cayenne.query.SelectQuery
addOrdering, addOrdering, addOrdering, addOrdering, addOrderings, addPrefetch, aliasPathSplits, clearOrderings, clearPrefetches, createQuery, createSQLAction, encodeAsXML, getCacheGroups, getCachePolicy, getCacheStrategy, getFetchLimit, getFetchOffset, getMetaData, getOrderings, getPageSize, getPrefetchTree, getStatementFetchSize, initWithProperties, isDistinct, isFetchingDataRows, isRefreshingObjects, isResolvingInherited, queryWithParameters, queryWithParameters, removeOrdering, removePrefetch, route, setCacheGroups, setCachePolicy, setCacheStrategy, setDistinct, setFetchingDataRows, setFetchLimit, setFetchOffset, setPageSize, setPrefetchTree, setRefreshingObjects, setResolvingInherited, setStatementFetchSize
 
Methods inherited from class org.apache.cayenne.query.QualifiedQuery
andQualifier, getQualifier, orQualifier, setQualifier
 
Methods inherited from class org.apache.cayenne.query.AbstractQuery
getName, getRoot, setName, setRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cayenne.query.Query
getName
 

Field Detail

plistMap

protected Map<String,?> plistMap

bindings

protected Map bindings
Constructor Detail

EOQuery

public EOQuery(ObjEntity root,
               Map<String,?> plistMap)
Method Detail

initFromPlist

protected void initFromPlist(Map<String,?> plistMap)

getEOName

public String getEOName()

getBindingNames

public Collection getBindingNames()

bindingClass

public String bindingClass(String name)

makeQualifier

public Expression makeQualifier(Map<String,?> qualifierMap)
Creates the Expression equivalent of the EOFetchSpecification represented by the Map.

Parameters:
qualifierMap - - FetchSpecification to translate
Returns:
Expression equivalent to FetchSpecification


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.