public class TagQueryMaker extends NXQLQueryMaker
NXQLQueryMaker.DocKind
QueryMaker.Query, QueryMaker.QueryCannotMatchException, QueryMaker.QueryMakerException
Modifier and Type | Field and Description |
---|---|
static String |
COUNT_SOURCE
Adds a COUNT() on the relation source, to count documents.
|
static String |
NXTAG
The NXTAG query type.
|
static String |
PROPERTY_SOURCE |
static String |
PROPERTY_TARGET |
static String |
SCHEMA_RELATION |
static String |
SCHEMA_TAG |
static String |
TAG_IS_TARGET
Makes sure the Tag table is joined with the relation target instead of the hierarchy id.
|
ECM_SIMPLE_ACP_GRANT, ECM_SIMPLE_ACP_NAME, ECM_SIMPLE_ACP_PERMISSION, ECM_SIMPLE_ACP_POS, ECM_SIMPLE_ACP_PRINCIPAL, ECM_TAG_STAR, RELATION_TABLE, TYPE_DOCUMENT, TYPE_RELATION, TYPE_TAGGING
Constructor and Description |
---|
TagQueryMaker() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String queryType)
Checks if this query maker accepts a given query.
|
QueryMaker.Query |
buildQuery(SQLInfo sqlInfo,
Model model,
Session.PathResolver pathResolver,
String query,
QueryFilter queryFilter,
Object... params)
Builds the query.
|
String |
getName()
Gets the name for this query maker.
|
canonicalXPath, hasWildcardIndex, simpleXPath
public static final String NXTAG
public static final String SCHEMA_TAG
public static final String SCHEMA_RELATION
public static final String PROPERTY_SOURCE
public static final String PROPERTY_TARGET
public static final String TAG_IS_TARGET
public static final String COUNT_SOURCE
public String getName()
QueryMaker
getName
in interface QueryMaker
getName
in class NXQLQueryMaker
public boolean accepts(String queryType)
QueryMaker
Called first.
accepts
in interface QueryMaker
accepts
in class NXQLQueryMaker
queryType
- the querytrue
if the query is acceptedpublic QueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params) throws StorageException
QueryMaker
buildQuery
in interface QueryMaker
buildQuery
in class NXQLQueryMaker
sqlInfo
- the sql infomodel
- the modelpathResolver
- the path resolverquery
- the queryqueryFilter
- the query filterparams
- additional parameters, maker-specificStorageException
Copyright © 2015 Nuxeo SA. All rights reserved.