|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.jdbc.NXQLQueryMaker org.nuxeo.ecm.platform.tag.TagQueryMaker
public class TagQueryMaker
Query Maker specialized for tagging queries that need joins.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.jdbc.NXQLQueryMaker |
---|
NXQLQueryMaker.DocKind |
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.storage.sql.jdbc.QueryMaker |
---|
QueryMaker.Query, QueryMaker.QueryCannotMatchException, QueryMaker.QueryMakerException |
Field Summary | |
---|---|
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. |
Fields inherited from class org.nuxeo.ecm.core.storage.sql.jdbc.NXQLQueryMaker |
---|
TYPE_DOCUMENT, TYPE_RELATION |
Constructor Summary | |
---|---|
TagQueryMaker()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.nuxeo.ecm.core.storage.sql.jdbc.NXQLQueryMaker |
---|
canonicalXPath, simpleXPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public TagQueryMaker()
Method Detail |
---|
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 query
true
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-specific
StorageException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |