org.hippoecm.hst.content.beans.query
Class HstQueryManagerImpl

java.lang.Object
  extended by org.hippoecm.hst.content.beans.query.HstQueryManagerImpl
All Implemented Interfaces:
HstQueryManager

public class HstQueryManagerImpl
extends Object
implements HstQueryManager


Constructor Summary
HstQueryManagerImpl(ObjectConverter objectConverter, HstCtxWhereClauseComputer hstCtxWhereClauseComputer)
          Deprecated. use HstQueryManagerImpl(Session, ObjectConverter, HstCtxWhereClauseComputer) instead
HstQueryManagerImpl(javax.jcr.Session session, ObjectConverter objectConverter, HstCtxWhereClauseComputer hstCtxWhereClauseComputer)
           
 
Method Summary
 HstQuery createQuery(HippoBean scope)
          Creates a empty query, with the scope HippoBean
 HstQuery createQuery(HippoBean scope, Class<? extends HippoBean>... filterBeans)
          Creates a query, with a scope and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments.
 HstQuery createQuery(HippoBean scope, Class<? extends HippoBean> filterBean, boolean includeSubTypes)
          Creates a query, with scope HippoBean and Filter for types of filterBean.
 HstQuery createQuery(HippoBean scope, String... primaryNodeTypes)
          Creates a query, with a scope and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments.
 HstQuery createQuery(javax.jcr.Node scope)
          Creates a empty query, with scope
 HstQuery createQuery(javax.jcr.Node scope, Class<? extends HippoBean>... filterBeans)
          Creates a query, with the scope HippoBean and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments.
 HstQuery createQuery(javax.jcr.Node scope, Class<? extends HippoBean> filterBean, boolean includeSubTypes)
          Creates a query, with scope and Filter for types of filterBean.
 HstQuery createQuery(javax.jcr.Node scope, String... primaryNodeTypes)
          Creates a query, with the scope HippoBean and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments.
 HstQuery createQuery(javax.jcr.Node scope, String nodeType, boolean includeSubTypes)
          Creates a query, with scope and Filter for node types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HstQueryManagerImpl

@Deprecated
public HstQueryManagerImpl(ObjectConverter objectConverter,
                                      HstCtxWhereClauseComputer hstCtxWhereClauseComputer)
Deprecated. use HstQueryManagerImpl(Session, ObjectConverter, HstCtxWhereClauseComputer) instead

Parameters:
objectConverter -
hstCtxWhereClauseComputer -

HstQueryManagerImpl

public HstQueryManagerImpl(javax.jcr.Session session,
                           ObjectConverter objectConverter,
                           HstCtxWhereClauseComputer hstCtxWhereClauseComputer)
Method Detail

createQuery

public HstQuery createQuery(javax.jcr.Node scope)
                     throws QueryException
Description copied from interface: HstQueryManager
Creates a empty query, with scope

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope scope
Throws:
QueryException

createQuery

public HstQuery createQuery(javax.jcr.Node scope,
                            Class<? extends HippoBean> filterBean,
                            boolean includeSubTypes)
                     throws QueryException
Creates a query, with scope and Filter for types of filterBean. If includeSubTypes is true, the result may also contain HippoBean's whose primarytype is a subtype of the filterBean type.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope & filter
Throws:
QueryException

createQuery

public HstQuery createQuery(HippoBean scope)
                     throws QueryException
Creates a empty query, with the scope HippoBean

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope scope
Throws:
QueryException

createQuery

public HstQuery createQuery(HippoBean scope,
                            Class<? extends HippoBean> filterBean,
                            boolean includeSubTypes)
                     throws QueryException
Creates a query, with scope HippoBean and Filter for types of filterBean. If includeSubTypes is true, the result may also contain HippoBean's whose primarytype is a subtype of the filterBean type.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope & filter
Throws:
QueryException

createQuery

public HstQuery createQuery(HippoBean scope,
                            Class<? extends HippoBean>... filterBeans)
                     throws QueryException
Description copied from interface: HstQueryManager
Creates a query, with a scope and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments. It is not possible to retrieve subtypes of the applied filterBeans with this method. If needed, use #createQuery(HstRequestContext, Node, Class, boolean) instead.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope and filter on jcr primary nodetype of the filterBean
Throws:
QueryException

createQuery

public HstQuery createQuery(javax.jcr.Node scope,
                            Class<? extends HippoBean>... filterBeans)
                     throws QueryException
Creates a query, with the scope HippoBean and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments. It is not possible to retrieve subtypes of the applied filterBeans.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope & filter on jcr primary nodetype of the filterBean
Throws:
QueryException

createQuery

public HstQuery createQuery(javax.jcr.Node scope,
                            String nodeType,
                            boolean includeSubTypes)
                     throws QueryException
Description copied from interface: HstQueryManager
Creates a query, with scope and Filter for node types. If includeSubTypes is true, the result may also contain node types whose primary type is a subtype of the filter node type.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope & filter
Throws:
QueryException

createQuery

public HstQuery createQuery(HippoBean scope,
                            String... primaryNodeTypes)
                     throws QueryException
Description copied from interface: HstQueryManager
Creates a query, with a scope and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments. It is not possible to retrieve subtypes of the applied primary node types with this method. If needed, use #createQuery(HstRequestContext, Node, Class, boolean) instead.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope and filter on jcr primary nodetype of the filterBean
Throws:
QueryException

createQuery

public HstQuery createQuery(javax.jcr.Node scope,
                            String... primaryNodeTypes)
                     throws QueryException
Description copied from interface: HstQueryManager
Creates a query, with the scope HippoBean and with a Filter that filters to only return HippoBeans of the types that are added as variable arguments. It is not possible to retrieve subtypes of the applied primary node types. If needed, use #createQuery(HstRequestContext, HippoBean, Class, boolean) instead.

Specified by:
createQuery in interface HstQueryManager
Returns:
a new HstQuery with scope & filter on jcr primary nodetype of the filterBean
Throws:
QueryException


Copyright © 2008-2012 Hippo. All Rights Reserved.