Package org.cyclos.impl.sql.postgresql
Class AbstractUserNativeQuery<Q extends AbstractUserQuery,P extends UserWithFieldsVO>
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.NativeQuery<Q,User,P>
-
- org.cyclos.impl.sql.postgresql.AbstractUserNativeQuery<Q,P>
-
- Direct Known Subclasses:
UserNativeQuery,UsersWithBalancesNativeQuery
public abstract class AbstractUserNativeQuery<Q extends AbstractUserQuery,P extends UserWithFieldsVO> extends NativeQuery<Q,User,P>
BaseNativeQueryforUserVOqueries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classAbstractUserNativeQuery.AbstractUserProjectionAbstract projection forUserVOs-
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.NativeQuery
applicationContext, beanHandler, configurationHandler, conversionHandler, customFieldValueHandler, entityType, groupsHandler, jdbcTemplate, params, phoneService, profileFieldHandler, projectionType, rawEntityManagerHandler, translationHandler, userService
-
-
Constructor Summary
Constructors Constructor Description AbstractUserNativeQuery(Class<P> projectionType, Q params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddNetworkFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)protected voidapplyAlphabeticOrderBy(com.querydsl.sql.SQLQuery<?> query, boolean descending)protected Set<Group>getGroupsFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)protected com.querydsl.sql.RelationalPath<?>getMainEntityAlias()Must be implemented in order to return the alias for the main entity in the queryprotected ProfileFieldSearchContextgetProfileFieldsContext(boolean filter)List<ProfileField>getProfileFieldsInList()protected booleanhandlesAccountJoin()protected booleanincludeGlobals(Q 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 booleanisMyBrokered(SessionData sessionData)protected voidresetQuery()protected List<ProfileField>resolveProfileFieldsInList()-
Methods inherited from class org.cyclos.impl.sql.postgresql.NativeQuery
addOrderBy, appendUserProfileFieldKeywords, apply, applyFullTextFilter, applyUserProfileFieldFilters, count, createJpaQuery, createJpaQueryForEntities, doIterate, doSingleResult, ensureQuery, enumValue, fieldValue, filterByDatePeriod, filterByDatePeriod, getCustomFieldQueryCondition, getCustomFieldQueryCondition, getFieldValues, getFormatter, getLogger, getProjection, getQuery, getSessionData, iterateEntities, iterateIds, iterateResults, join, pageEntities, pageResults, visibility
-
-
-
-
Field Detail
-
visibleProfileFields
protected List<ProfileField> visibleProfileFields
-
profileFieldsInList
protected List<ProfileField> profileFieldsInList
-
projectedProfileFields
protected Set<ProfileField> projectedProfileFields
-
projectedAddressContactInfoFields
protected List<ContactInfoField> projectedAddressContactInfoFields
-
canViewHidden
protected boolean canViewHidden
-
myBrokered
protected boolean myBrokered
-
groupVisibility
protected GroupVisibility groupVisibility
-
u
protected SUsers u
-
i
protected SStoredFiles i
-
g
protected SGroups g
-
gs
protected SGroups gs
-
p
protected SProducts p
-
up
protected SUsersProducts up
-
bk
protected SUsers bk
-
ph
protected SPhones ph
-
acct
protected SAccounts acct
-
enumValues
protected Map<UserCustomField,SUserEnumValues> enumValues
-
contactInfoEnumValues
protected Map<ContactInfoField,SContactInfoEnumValues> contactInfoEnumValues
-
bn
protected SBrokerings bn
-
geo
protected SGeography geo
-
addr
protected SAddresses addr
-
ci
protected SContactInfos ci
-
distance
protected com.querydsl.core.types.dsl.NumberExpression<BigDecimal> distance
-
q
protected STsQuery q
-
tsvectors
protected TsVectorExpression tsvectors
-
userCustomFieldService
@Autowired protected UserCustomFieldServiceLocal userCustomFieldService
-
contactInfoFieldService
@Autowired protected ContactInfoFieldServiceLocal contactInfoFieldService
-
productService
@Autowired protected ProductServiceLocal productService
-
-
Method Detail
-
getProfileFieldsInList
public List<ProfileField> getProfileFieldsInList()
-
addNetworkFilter
protected void addNetworkFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)
-
applyAlphabeticOrderBy
protected void applyAlphabeticOrderBy(com.querydsl.sql.SQLQuery<?> query, boolean descending)
-
getGroupsFilter
protected Set<Group> getGroupsFilter(com.querydsl.sql.SQLQuery<?> query, SessionData sessionData)
-
getMainEntityAlias
protected com.querydsl.sql.RelationalPath<?> getMainEntityAlias()
Description copied from class:NativeQueryMust be implemented in order to return the alias for the main entity in the query- Specified by:
getMainEntityAliasin classNativeQuery<Q extends AbstractUserQuery,User,P extends UserWithFieldsVO>
-
getProfileFieldsContext
protected ProfileFieldSearchContext getProfileFieldsContext(boolean filter)
-
handlesAccountJoin
protected boolean handlesAccountJoin()
-
includeGlobals
protected boolean includeGlobals(Q query)
-
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- Specified by:
initializeQueryin classNativeQuery<Q extends AbstractUserQuery,User,P extends UserWithFieldsVO>
-
isMyBrokered
protected boolean isMyBrokered(SessionData sessionData)
-
resetQuery
protected void resetQuery()
- Overrides:
resetQueryin classNativeQuery<Q extends AbstractUserQuery,User,P extends UserWithFieldsVO>
-
resolveProfileFieldsInList
protected List<ProfileField> resolveProfileFieldsInList()
-
-