Interface HstQueryManager
public interface HstQueryManager
-
Method Summary
Modifier and TypeMethodDescriptioncreateQuery
(Node scope) Creates a empty query, with scopecreateQuery
(Node scope, boolean includeSubTypes, Class<? extends HippoBean>... filterBeans) createQuery
(Node scope, boolean includeSubTypes, String... primaryNodeTypes) createQuery
(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.createQuery
(Node scope, Class<? extends HippoBean> filterBean, boolean includeSubTypes) Creates a query, with scope and Filter for types of filterBean.createQuery
(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.createQuery
(Node scope, String nodeType, boolean includeSubTypes) Creates a query, with scope and Filter for node types.createQuery
(HippoBean scope) Creates a empty query, with scopecreateQuery
(HippoBean scope, boolean includeSubTypes, Class<? extends HippoBean>... filterBean) createQuery
(HippoBean scope, boolean includeSubTypes, String... primaryNodeTypes) createQuery
(HippoBean scope, Class<? extends HippoBean>... filterBean) 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.createQuery
(HippoBean scope, Class<? extends HippoBean> filterBean, boolean includeSubTypes) Creates a query, with scope HippoBean and Filter for types of filterBean.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.
-
Method Details
-
getSession
Session getSession()- Returns:
- the
Session
which was used to create thisHstQueryManager
with
-
getDefaultResolution
DateTools.Resolution getDefaultResolution()- Returns:
- the default
{@link DateTools.Resolution}
for thisHstQueryManager
instance
-
getObjectConverter
ObjectConverter getObjectConverter()- Returns:
- the
ObjectConverter
that was used to create thisHstQueryManager
instance
-
createQuery
Creates a empty query, with scope- Parameters:
scope
-- Returns:
- a new
with scopeHstQuery
scope
- Throws:
QueryException
-
createQuery
HstQuery createQuery(Node scope, Class<? extends HippoBean> filterBean, boolean includeSubTypes) throws QueryException Creates a query, with scope and Filter for types of filterBean. If includeSubTypes istrue
, the result may also contain HippoBean's whose primarytype is a subtype of the filterBean type.- Parameters:
scope
-filterBean
-includeSubTypes
-- Returns:
- a new
with scope & filterHstQuery
- Throws:
QueryException
-
createQuery
Creates a query, with scope and Filter for node types. If includeSubTypes istrue
, the result may also contain node types whose primary type is a subtype of the filter node type.- Parameters:
scope
-nodeType
-includeSubTypes
-- Returns:
- a new
with scope & filterHstQuery
- Throws:
QueryException
-
createQuery
Creates a empty query, with scope- Parameters:
scope
-- Returns:
- a new
with scopeHstQuery
scope
- Throws:
QueryException
-
createQuery
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 istrue
, the result may also contain HippoBean's whose primarytype is a subtype of the filterBean type.- Parameters:
scope
-filterBean
-includeSubTypes
-- Returns:
- a new
with scope & filterHstQuery
- Throws:
QueryException
-
createQuery
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.- Parameters:
scope
-filterBeans
-- Returns:
- a new
with scope & filter on jcr primary nodetype of the filterBeanHstQuery
- Throws:
QueryException
-
createQuery
HstQuery createQuery(Node scope, boolean includeSubTypes, Class<? extends HippoBean>... filterBeans) throws QueryException -
createQuery
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.- Parameters:
scope
-primaryNodeTypes
-- Returns:
- a new
with scope & filter on jcr primary nodetype of the filterBeanHstQuery
- Throws:
QueryException
-
createQuery
HstQuery createQuery(Node scope, boolean includeSubTypes, String... primaryNodeTypes) throws QueryException -
createQuery
HstQuery createQuery(HippoBean scope, Class<? extends HippoBean>... filterBean) throws QueryException 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.- Parameters:
scope
-filterBean
-- Returns:
- a new
with scope and filter on jcr primary nodetype of the filterBeanHstQuery
- Throws:
QueryException
-
createQuery
HstQuery createQuery(HippoBean scope, boolean includeSubTypes, Class<? extends HippoBean>... filterBean) throws QueryException -
createQuery
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.- Parameters:
scope
-primaryNodeTypes
-- Returns:
- a new
with scope and filter on jcr primary nodetype of the filterBeanHstQuery
- Throws:
QueryException
-
createQuery
HstQuery createQuery(HippoBean scope, boolean includeSubTypes, String... primaryNodeTypes) throws QueryException
-