public class CMISQLQueryMaker extends Object implements QueryMaker
Modifier and Type | Class and Description |
---|---|
class |
CMISQLQueryMaker.AnalyzingWalker
Walker of the WHERE clause to gather fulltext info.
|
static class |
CMISQLQueryMaker.CMISQLMapMaker
Map maker that can deal with aliased column names and computed values.
|
class |
CMISQLQueryMaker.GeneratingWalker
Walker of the WHERE clause that generates final SQL.
|
static class |
CMISQLQueryMaker.SqlColumn
Column corresponding to a returned value computed from an actual SQL
expression.
|
QueryMaker.Query, QueryMaker.QueryCannotMatchException, QueryMaker.QueryMakerException
Modifier and Type | Field and Description |
---|---|
static String |
CMIS_PREFIX |
static String |
DC_CREATED_KEY |
static String |
DC_CREATOR_KEY |
static String |
DC_FRAGMENT_NAME |
static String |
DC_LAST_CONTRIBUTOR_KEY |
static String |
DC_MODIFIED_KEY |
static String |
DC_TITLE_KEY |
static Set<String> |
NULL_IS_FALSE_COLUMNS |
static String |
NX_PREFIX |
static String |
REL_FRAGMENT_NAME |
static String |
REL_SOURCE_KEY |
static String |
REL_TARGET_KEY |
boolean |
skipDeleted |
static String |
TYPE |
Constructor and Description |
---|
CMISQLQueryMaker() |
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 statement,
QueryFilter queryFilter,
Object... params)
Builds the query.
|
String |
getName()
Gets the name for this query maker.
|
public static final String TYPE
public static final String CMIS_PREFIX
public static final String NX_PREFIX
public static final String DC_FRAGMENT_NAME
public static final String DC_TITLE_KEY
public static final String DC_CREATOR_KEY
public static final String DC_CREATED_KEY
public static final String DC_MODIFIED_KEY
public static final String DC_LAST_CONTRIBUTOR_KEY
public static final String REL_FRAGMENT_NAME
public static final String REL_SOURCE_KEY
public static final String REL_TARGET_KEY
public boolean skipDeleted
public String getName()
QueryMaker
getName
in interface QueryMaker
public boolean accepts(String queryType)
QueryMaker
Called first.
accepts
in interface QueryMaker
queryType
- the querytrue
if the query is acceptedpublic QueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String statement, QueryFilter queryFilter, Object... params) throws StorageException
The optional parameters must be passed: params[0]
is the
NuxeoCmisService
, optional params[1]
is a type info map,
optional params[2]
is searchAllVersions (default
Boolean.TRUE
for this method).
buildQuery
in interface QueryMaker
sqlInfo
- the sql infomodel
- the modelpathResolver
- the path resolverstatement
- the queryqueryFilter
- the query filterparams
- additional parameters, maker-specificStorageException
Copyright © 2013 Nuxeo SA. All Rights Reserved.