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
Author:
Andrus Adamchik
See Also:
Serialized Form

Field Summary
protected  Map bindings
           
protected  Map plistMap
           
 
Fields inherited from class org.apache.cayenne.query.SelectQuery
customDbAttributes, distinct, DISTINCT_DEFAULT, DISTINCT_PROPERTY, orderings, parentObjEntityName, parentQualifier
 
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 plistMap)
           
 
Method Summary
 String bindingClass(String name)
           
 Collection getBindingNames()
           
 String getEOName()
           
protected  void initFromPlist(Map plistMap)
           
 Expression makeQualifier(Map qualifierMap)
          Creates the Expression equivalent of the EOFetchSpecification represented by the Map.
 
Methods inherited from class org.apache.cayenne.query.SelectQuery
addCustomDbAttribute, addCustomDbAttributes, addOrdering, addOrdering, addOrdering, addOrderings, addPrefetch, andParentQualifier, clearOrderings, clearPrefetches, createQuery, createSQLAction, encodeAsXML, getCacheGroups, getCachePolicy, getCustomDbAttributes, getFetchLimit, getMetaData, getOrderings, getPageSize, getParentObjEntityName, getParentQualifier, getPrefetchTree, initWithProperties, isDistinct, isFetchingCustomAttributes, isFetchingDataRows, isQualifiedOnParent, isRefreshingObjects, isResolvingInherited, orParentQualifier, queryWithParameters, queryWithParameters, removeOrdering, removePrefetch, route, setCacheGroups, setCachePolicy, setDistinct, setFetchingDataRows, setFetchLimit, setPageSize, setParentObjEntityName, setParentQualifier, setPrefetchTree, setRefreshingObjects, setResolvingInherited
 
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 plistMap

bindings

protected Map bindings
Constructor Detail

EOQuery

public EOQuery(ObjEntity root,
               Map plistMap)
Method Detail

initFromPlist

protected void initFromPlist(Map plistMap)

getEOName

public String getEOName()

getBindingNames

public Collection getBindingNames()

bindingClass

public String bindingClass(String name)

makeQualifier

public Expression makeQualifier(Map qualifierMap)
Creates the Expression equivalent of the EOFetchSpecification represented by the Map.

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


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