Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.query
Class PrefetchSelectQuery  view PrefetchSelectQuery download PrefetchSelectQuery.java

java.lang.Object
  extended byorg.objectstyle.cayenne.query.AbstractQuery
      extended byorg.objectstyle.cayenne.query.QualifiedQuery
          extended byorg.objectstyle.cayenne.query.SelectQuery
              extended byorg.objectstyle.cayenne.query.PrefetchSelectQuery
All Implemented Interfaces:
GenericSelectQuery, Query

public class PrefetchSelectQuery
extends SelectQuery


Field Summary
protected  java.lang.String prefetchPath
          The relationship path from root objects to the objects being prefetched
protected  SelectQuery rootQuery
          The query that provides the "root" objects of the prefetch
protected  org.objectstyle.cayenne.map.ObjRelationship singleStepToManyRelationship
           
 
Fields inherited from class org.objectstyle.cayenne.query.SelectQuery
customDbAttributes, distinct, fetchingDataRows, fetchLimit, orderings, pageSize, parentObjEntityName, parentQualifier, prefetches
 
Fields inherited from class org.objectstyle.cayenne.query.QualifiedQuery
qualifier
 
Fields inherited from class org.objectstyle.cayenne.query.AbstractQuery
logLevel, root
 
Fields inherited from interface org.objectstyle.cayenne.query.Query
DEFAULT_LOG_LEVEL, DELETE_QUERY, INSERT_QUERY, SELECT_QUERY, UNKNOWN_QUERY, UPDATE_QUERY
 
Constructor Summary
PrefetchSelectQuery()
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(java.lang.Class rootClass)
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(java.lang.Class rootClass, org.objectstyle.cayenne.exp.Expression qualifier)
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(org.objectstyle.cayenne.map.ObjEntity root)
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(org.objectstyle.cayenne.map.ObjEntity root, org.objectstyle.cayenne.exp.Expression qualifier)
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(java.lang.String objEntityName)
          Constructor for PrefetchSelectQuery.
PrefetchSelectQuery(java.lang.String objEntityName, org.objectstyle.cayenne.exp.Expression qualifier)
          Constructor for PrefetchSelectQuery.
 
Method Summary
 java.lang.String getPrefetchPath()
          Returns the prefetchPath.
 SelectQuery getRootQuery()
           
 org.objectstyle.cayenne.map.ObjRelationship getSingleStepToManyRelationship()
           
 void setPrefetchPath(java.lang.String prefetchPath)
          Sets the prefetchPath.
 void setRootQuery(SelectQuery rootQuery)
          Sets the rootQuery.
 void setSingleStepToManyRelationship(org.objectstyle.cayenne.map.ObjRelationship singleStepToManyRelationship)
          Sets the singleStepToManyRelationship.
 
Methods inherited from class org.objectstyle.cayenne.query.SelectQuery
addCustomDbAttribute, addCustomDbAttributes, addOrdering, addOrdering, addOrdering, addOrderings, addPrefetch, addPrefetches, andParentQualifier, clearOrderings, clearPrefetches, getCustomDbAttributes, getFetchLimit, getOrderings, getPageSize, getParentObjEntityName, getParentQualifier, getPrefetches, getQueryType, isDistinct, isFetchingCustomAttributes, isFetchingDataRows, isQualifiedOnParent, orParentQualifier, queryWithParameters, queryWithParameters, setDistinct, setFetchingDataRows, setFetchLimit, setPageSize, setParentObjEntityName, setParentQualifier
 
Methods inherited from class org.objectstyle.cayenne.query.QualifiedQuery
andQualifier, getQualifier, orQualifier, setQualifier
 
Methods inherited from class org.objectstyle.cayenne.query.AbstractQuery
getLoggingLevel, getRoot, setLoggingLevel, setRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectstyle.cayenne.query.Query
getLoggingLevel, getRoot, setLoggingLevel, setRoot
 

Field Detail

rootQuery

protected SelectQuery rootQuery
The query that provides the "root" objects of the prefetch


prefetchPath

protected java.lang.String prefetchPath
The relationship path from root objects to the objects being prefetched


singleStepToManyRelationship

protected org.objectstyle.cayenne.map.ObjRelationship singleStepToManyRelationship
Constructor Detail

PrefetchSelectQuery

public PrefetchSelectQuery()
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(org.objectstyle.cayenne.map.ObjEntity root)
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(org.objectstyle.cayenne.map.ObjEntity root,
                           org.objectstyle.cayenne.exp.Expression qualifier)
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(java.lang.Class rootClass)
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(java.lang.Class rootClass,
                           org.objectstyle.cayenne.exp.Expression qualifier)
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(java.lang.String objEntityName)
Constructor for PrefetchSelectQuery.


PrefetchSelectQuery

public PrefetchSelectQuery(java.lang.String objEntityName,
                           org.objectstyle.cayenne.exp.Expression qualifier)
Constructor for PrefetchSelectQuery.

Method Detail

getPrefetchPath

public java.lang.String getPrefetchPath()
Returns the prefetchPath.


setPrefetchPath

public void setPrefetchPath(java.lang.String prefetchPath)
Sets the prefetchPath.


getRootQuery

public SelectQuery getRootQuery()

setRootQuery

public void setRootQuery(SelectQuery rootQuery)
Sets the rootQuery.


getSingleStepToManyRelationship

public org.objectstyle.cayenne.map.ObjRelationship getSingleStepToManyRelationship()

setSingleStepToManyRelationship

public void setSingleStepToManyRelationship(org.objectstyle.cayenne.map.ObjRelationship singleStepToManyRelationship)
Sets the singleStepToManyRelationship.