public class CountNoteQuery extends AbstractNoteQuery<CountListItem>
ALIAS_USER, ALIAS_USER_NOTE_ENTITY
ALIAS_TAGS, FILTER_STATUS_ALL
Constructor and Description |
---|
CountNoteQuery() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getConstructorParameters()
The parameters of the list item constructor
|
protected String[] |
getConstructorParametersForRootNotes() |
Class<CountListItem> |
getResultListItem()
The list item type
|
protected boolean |
needDistinct(NoteQueryParameters queryInstance) |
PageableList<?> |
postQueryExecution(NoteQueryParameters queryInstance,
PageableList result)
This function is called after executing the query for further augmentations.
|
protected void |
renderOrderbyClause(StringBuilder mainQuery,
NoteQueryParameters queryInstance)
This method does nothing, as we don't need any ordering.
|
buildQuery, createInstance, getDateFilterField, getRootNoteAlias, getRootNoteAliasPrefix, needUserInQuery, renderSelectClause, setupQueries
getFullTextSearchFields, getNoteAlias, getSelectClause, getUserAlias, includeUsersWithoutTags, needResourceInQuery, needTagInQuery, queryReturnsTags, renderLogicalTagConstraints, renderTagConstraints, renderTagPrefixConstraint, subQueryFindNoteWithTags
buildSelectQuery, getUserSearchFields, matchOnlyIfUserQuery, renderCommonFilters, renderExcludeStatusFilter, renderGroupByClause, renderIncludeStatusFilter, renderRoleFilter, renderSubQueryTags, renderUserSearch
renderPropertyFilters
renderSearch
protected String[] getConstructorParameters()
getConstructorParameters
in class TaggingCoreItemQueryDefinition<CountListItem,NoteQueryParameters>
protected String[] getConstructorParametersForRootNotes()
getConstructorParametersForRootNotes
in class AbstractNoteQuery<CountListItem>
public Class<CountListItem> getResultListItem()
TaggingCoreItemQueryDefinition
getResultListItem
in class TaggingCoreItemQueryDefinition<CountListItem,NoteQueryParameters>
CountListItem#class
protected boolean needDistinct(NoteQueryParameters queryInstance)
AbstractNoteQuery
needDistinct
in class AbstractNoteQuery<CountListItem>
queryInstance
- the query parameterspublic PageableList<?> postQueryExecution(NoteQueryParameters queryInstance, PageableList result)
postQueryExecution
in class Query<CountListItem,NoteQueryParameters>
queryInstance
- the query instanceresult
- the result containing the items returned by executed queryprotected void renderOrderbyClause(StringBuilder mainQuery, NoteQueryParameters queryInstance)
Adapted ordering for the date.
renderOrderbyClause
in class AbstractNoteQuery<CountListItem>
mainQuery
- the main queryqueryInstance
- the query instanceCopyright © 2019 Communote team. All rights reserved.