org.nuxeo.ecm.platform.tag
Class TagQueryMaker
java.lang.Object
org.nuxeo.ecm.core.storage.sql.jdbc.NXQLQueryMaker
org.nuxeo.ecm.platform.tag.TagQueryMaker
- All Implemented Interfaces:
- QueryMaker
public class TagQueryMaker
- extends NXQLQueryMaker
Query Maker specialized for tagging queries that need joins.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEMA_TAG
public static final java.lang.String SCHEMA_TAG
- See Also:
- Constant Field Values
SCHEMA_RELATION
public static final java.lang.String SCHEMA_RELATION
- See Also:
- Constant Field Values
PROPERTY_SOURCE
public static final java.lang.String PROPERTY_SOURCE
- See Also:
- Constant Field Values
PROPERTY_TARGET
public static final java.lang.String PROPERTY_TARGET
- See Also:
- Constant Field Values
TAG_IS_TARGET
public static final java.lang.String TAG_IS_TARGET
- Makes sure the Tag table is joined with the relation target instead of
the hierarchy id.
- See Also:
- Constant Field Values
COUNT_SOURCE
public static final java.lang.String COUNT_SOURCE
- Adds a COUNT() on the relation source, to count documents.
- See Also:
- Constant Field Values
TagQueryMaker
public TagQueryMaker()
getName
public java.lang.String getName()
- Description copied from interface:
QueryMaker
- Gets the name for this query maker.
- Specified by:
getName
in interface QueryMaker
- Overrides:
getName
in class NXQLQueryMaker
accepts
public boolean accepts(java.lang.String queryType)
- Description copied from interface:
QueryMaker
- Checks if this query maker accepts a given query.
Called first.
- Specified by:
accepts
in interface QueryMaker
- Overrides:
accepts
in class NXQLQueryMaker
- Parameters:
queryType
- the query
- Returns:
true
if the query is accepted
buildQuery
public QueryMaker.Query buildQuery(SQLInfo sqlInfo,
Model model,
Session.PathResolver pathResolver,
java.lang.String query,
QueryFilter queryFilter,
java.lang.Object... params)
throws StorageException
- Description copied from interface:
QueryMaker
- Builds the query.
- Specified by:
buildQuery
in interface QueryMaker
- Overrides:
buildQuery
in class NXQLQueryMaker
- Parameters:
sqlInfo
- the sql infomodel
- the modelpathResolver
- the path resolverquery
- the queryqueryFilter
- the query filterparams
- additional parameters, maker-specific
- Throws:
StorageException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.