com.xpn.xwiki.plugin.query
Class DefaultQuery

java.lang.Object
  extended by com.xpn.xwiki.plugin.query.DefaultQuery
All Implemented Interfaces:
IQuery
Direct Known Subclasses:
HibernateQuery

public class DefaultQuery
extends java.lang.Object
implements IQuery


Field Summary
protected  int _fetchSize
           
protected  int _firstResult
           
protected  boolean _isdistinct
           
protected  IQueryFactory _queryFactory
           
protected  org.apache.jackrabbit.core.query.QueryRootNode _querytree
           
 
Constructor Summary
DefaultQuery(org.apache.jackrabbit.core.query.QueryRootNode tree, IQueryFactory qf)
           
 
Method Summary
protected  XWikiCache getCache()
           
protected  XWikiContext getContext()
           
protected  org.apache.jackrabbit.core.query.QueryRootNode getQueryTree()
           
protected  XWikiStoreInterface getStore()
           
 java.util.List list()
           
 IQuery setDistinct(boolean d)
           
 IQuery setFirstResult(int fr)
           
 IQuery setMaxResults(int fs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_queryFactory

protected IQueryFactory _queryFactory

_querytree

protected org.apache.jackrabbit.core.query.QueryRootNode _querytree

_fetchSize

protected int _fetchSize

_firstResult

protected int _firstResult

_isdistinct

protected boolean _isdistinct
Constructor Detail

DefaultQuery

public DefaultQuery(org.apache.jackrabbit.core.query.QueryRootNode tree,
                    IQueryFactory qf)
Method Detail

list

public java.util.List list()
                    throws XWikiException
Specified by:
list in interface IQuery
Throws:
XWikiException

setMaxResults

public IQuery setMaxResults(int fs)
Specified by:
setMaxResults in interface IQuery

setFirstResult

public IQuery setFirstResult(int fr)
Specified by:
setFirstResult in interface IQuery

setDistinct

public IQuery setDistinct(boolean d)
Specified by:
setDistinct in interface IQuery

getCache

protected XWikiCache getCache()

getContext

protected XWikiContext getContext()

getStore

protected XWikiStoreInterface getStore()

getQueryTree

protected org.apache.jackrabbit.core.query.QueryRootNode getQueryTree()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2003 Ludovic Dubost