R
- Type of the result for this query.public abstract class AbstractNoteQuery<R> extends TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
ALIAS_USER, ALIAS_USER_NOTE_ENTITY
ALIAS_TAGS, FILTER_STATUS_ALL
Constructor and Description |
---|
AbstractNoteQuery() |
Modifier and Type | Method and Description |
---|---|
String |
buildQuery(NoteQueryParameters queryParameters)
Build a query depending if its to get the overall count or not
|
NoteQueryParameters |
createInstance()
Create a new empty query instance
|
protected abstract String[] |
getConstructorParametersForRootNotes() |
protected String |
getDateFilterField(NoteQueryParameters parameters)
Get the field for date filtering.
|
protected String |
getRootNoteAlias() |
protected String |
getRootNoteAliasPrefix() |
protected boolean |
needDistinct(NoteQueryParameters queryParameters) |
protected boolean |
needUserInQuery(NoteQueryParameters queryParameters)
need the user in a query?
|
protected void |
renderOrderbyClause(StringBuilder mainQuery,
NoteQueryParameters queryParameters)
Render the order by clause
|
protected void |
renderSelectClause(NoteQueryParameters queryInstance,
StringBuilder mainQuery)
Render the select clause based on if its the count query or not
|
protected void |
setupQueries()
Setup the query constants.
|
getConstructorParameters, getFullTextSearchFields, getNoteAlias, getResultListItem, getSelectClause, getUserAlias, includeUsersWithoutTags, needResourceInQuery, needTagInQuery, queryReturnsTags, renderLogicalTagConstraints, renderTagConstraints, renderTagPrefixConstraint, subQueryFindNoteWithTags
buildSelectQuery, getUserSearchFields, matchOnlyIfUserQuery, renderCommonFilters, renderExcludeStatusFilter, renderGroupByClause, renderIncludeStatusFilter, renderRoleFilter, renderSubQueryTags, renderUserSearch
renderPropertyFilters
postQueryExecution, renderSearch
public String buildQuery(NoteQueryParameters queryParameters)
buildQuery
in class AbstractUserQuery<R,NoteQueryParameters>
queryParameters
- the QueryInstancepublic NoteQueryParameters createInstance()
createInstance
in class Query<R,NoteQueryParameters>
protected abstract String[] getConstructorParametersForRootNotes()
protected String getDateFilterField(NoteQueryParameters parameters)
getDateFilterField
in class TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
parameters
- the parameter to consultprotected String getRootNoteAlias()
protected String getRootNoteAliasPrefix()
protected boolean needDistinct(NoteQueryParameters queryParameters)
needDistinct
in class TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
queryParameters
- the query parametersprotected boolean needUserInQuery(NoteQueryParameters queryParameters)
needUserInQuery
in class TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
queryParameters
- the query parametersprotected void renderOrderbyClause(StringBuilder mainQuery, NoteQueryParameters queryParameters)
Adapted ordering for the date.
renderOrderbyClause
in class AbstractUserQuery<R,NoteQueryParameters>
mainQuery
- the main queryqueryParameters
- the query instanceprotected void renderSelectClause(NoteQueryParameters queryInstance, StringBuilder mainQuery)
renderSelectClause
in class TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
queryInstance
- the query parameters to usemainQuery
- the main queryprotected void setupQueries()
setupQueries
in class TaggingCoreItemQueryDefinition<R,NoteQueryParameters>
Copyright © 2019 Communote team. All rights reserved.