Package org.cyclos.impl.sql.postgresql
Class UserNativeQuery
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.NativeQuery<Q,User,P>
-
- org.cyclos.impl.sql.postgresql.AbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
- org.cyclos.impl.sql.postgresql.UserNativeQuery
-
public class UserNativeQuery extends AbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
Native query for regular user searches
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classUserNativeQuery.UserProjectionProjection forUserVO(adds nothing to theAbstractUserNativeQuery.AbstractUserProjection)-
Nested classes/interfaces inherited from class org.cyclos.impl.sql.postgresql.AbstractUserNativeQuery
AbstractUserNativeQuery.AbstractUserProjection
-
Nested classes/interfaces inherited from class org.cyclos.impl.sql.postgresql.NativeQuery
NativeQuery.BaseProjection, NativeQuery.JpaQueryResult, NativeQuery.SQLQueryAction<T>
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.sql.postgresql.AbstractUserNativeQuery
acct, addr, bk, bn, canViewHidden, ci, contactInfoFieldService, distance, enumValues, g, geo, groupVisibility, gs, i, myBrokered, p, pacct, ph, productService, profileFieldsInList, projectedAddressContactInfoFields, projectedProfileFields, q, tsvectors, u, up, userCustomFieldService, visibleProfileFields
-
Fields inherited from class org.cyclos.impl.sql.postgresql.NativeQuery
applicationContext, beanHandler, configurationHandler, conversionHandler, customFieldValueHandler, entityType, groupsHandler, jdbcTemplate, params, phoneService, profileFieldHandler, projectionType, rawEntityManagerHandler, translationHandler, userService
-
-
Constructor Summary
Constructors Constructor Description UserNativeQuery(UserQuery params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNetworkFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)protected ProfileFieldSearchContextgetProfileFieldsContext(boolean filter)protected com.querydsl.core.types.Expression<UserWithFieldsVO>getProjection(com.querydsl.sql.SQLQuery<?> query, Integer totalCount)Must be implemented in order to return projection for results in the query, given the total record countprotected booleanincludeGlobals(UserQuery query)protected List<com.querydsl.core.types.Expression<?>>initializeQuery(com.querydsl.sql.SQLQuery<?> query)Initializes the query, returning additional from expressions that should be applied after all othersprotected List<ProfileField>resolveProfileFieldsInList(SessionData sessionData)-
Methods inherited from class org.cyclos.impl.sql.postgresql.AbstractUserNativeQuery
applyAlphabeticOrderBy, getGroupsFilter, getMainEntityAlias, getProfileFieldsInList, handlesAccountJoin, isMyBrokered, resetQuery
-
Methods inherited from class org.cyclos.impl.sql.postgresql.NativeQuery
addOrderBy, appendUserProfileFieldKeywords, apply, applyFullTextFilter, applyUserProfileFieldFilters, count, createJpaQuery, createJpaQueryForEntities, doIterate, doSingleResult, ensureQuery, fieldValue, filterByDatePeriod, filterByDatePeriod, getCustomFieldQueryCondition, getCustomFieldQueryCondition, getFieldValues, getFormatter, getLogger, getQuery, getSessionData, iterateEntities, iterateIds, iterateResults, join, pageEntities, pageResults, visibility
-
-
-
-
Constructor Detail
-
UserNativeQuery
public UserNativeQuery(UserQuery params)
-
-
Method Detail
-
addNetworkFilter
protected void addNetworkFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)- Overrides:
addNetworkFilterin classAbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
getProfileFieldsContext
protected ProfileFieldSearchContext getProfileFieldsContext(boolean filter)
- Overrides:
getProfileFieldsContextin classAbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
getProjection
protected com.querydsl.core.types.Expression<UserWithFieldsVO> getProjection(com.querydsl.sql.SQLQuery<?> query, Integer totalCount)
Description copied from class:NativeQueryMust be implemented in order to return projection for results in the query, given the total record count- Specified by:
getProjectionin classNativeQuery<UserQuery,User,UserWithFieldsVO>
-
includeGlobals
protected boolean includeGlobals(UserQuery query)
- Overrides:
includeGlobalsin classAbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
initializeQuery
protected List<com.querydsl.core.types.Expression<?>> initializeQuery(com.querydsl.sql.SQLQuery<?> query)
Description copied from class:NativeQueryInitializes the query, returning additional from expressions that should be applied after all others- Overrides:
initializeQueryin classAbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
resolveProfileFieldsInList
protected List<ProfileField> resolveProfileFieldsInList(SessionData sessionData)
- Overrides:
resolveProfileFieldsInListin classAbstractUserNativeQuery<UserQuery,UserWithFieldsVO>
-
-