Package org.cyclos.impl.banking
Class TransQueryHandlerImpl<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.banking.TransQueryHandlerImpl<Q,P>
-
- All Implemented Interfaces:
TransQueryHandler<Q,P>
- Direct Known Subclasses:
BaseTransactionQueryHandlerImpl,TransferQueryHandlerImpl
public abstract class TransQueryHandlerImpl<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>> extends BaseNetworkedHandlerImpl implements TransQueryHandler<Q,P>
Contains common logic for handling a query over transfers / transactions / installments
-
-
Field Summary
Fields Modifier and Type Field Description protected AccountServiceLocalaccountServiceprotected QBigDecimalamountprotected QCurrencycprotected ConversionHandlerconversionHandlerprotected QDatedateprotected QAccountfaprotected QAccountTypefatprotected QGroupfgprotected QUserfuprotected GroupsHandlergroupsHandlerprotected com.querydsl.core.types.dsl.NumberPath<Long>idprotected RawEntityManagerHandlerrawEntityManagerHandlerprotected QAccounttaprotected QAccountTypetatprotected QGrouptgprotected com.querydsl.core.types.dsl.StringPathtransactionNumberprotected QTransferTypettprotected QUsertuprotected QTransactiontx-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, customFieldValueHandler, entityManagerHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description TransQueryHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.querydsl.core.types.PredicateadditionalAdminFilter(SessionData sessionData)protected com.querydsl.core.types.PredicateadditionalBrokerFilter(SessionData sessionData)protected com.querydsl.core.types.PredicateadditionalRestrictedOperatorFilter(SessionData sessionData)protected voidapplyOverview(DBQuery<?> query, P buildParams)Applies the conditions used on overviewsprotected abstract voidapplyOwned(DBQuery<?> query, P buildParams)Applies a condition from the point of view of an account or account ownerprotected voidapplyVisibility(SessionData sessionData, DBQuery<?> query, P buildParams)DBQuery<?>build(P buildParams)Builds the db query based on the given parametersprotected com.querydsl.core.types.PredicategetAdminFilters(SessionData sessionData)QBigDecimalgetAmountPath()protected com.querydsl.core.types.PredicategetBrokerFilters(SessionData sessionData)protected com.querydsl.core.types.PredicategetBrokeringFilters(SessionData sessionData)QCurrencygetCurrencyPath()QDategetDatePath()protected TransactionOrderBygetDefaultOrder()QAccountgetFromAccountPath()QAccountTypegetFromAccountTypePath()QGroupgetFromGroupPath()QUsergetFromUserPath()com.querydsl.core.types.dsl.NumberPath<Long>getIdPath()protected com.querydsl.core.types.PredicategetMemberFilters(SessionData sessionData)QTransferTypegeTransferTypePath()protected com.querydsl.core.types.PredicategetRestrictedOperatorFilters(SessionData sessionData)QAccountgetToAccountPath()QAccountTypegetToAccountTypePath()QGroupgetToGroupPath()QUsergetToUserPath()com.querydsl.core.types.dsl.StringPathgetTransactionNumberPath()QTransactiongetTransactionPath()QTransferTypegetTransferTypePath()protected abstract DBQuery<?>initQuery(P buildParams)-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Field Detail
-
tt
protected final QTransferType tt
-
fa
protected final QAccount fa
-
fat
protected final QAccountType fat
-
fu
protected final QUser fu
-
fg
protected final QGroup fg
-
ta
protected final QAccount ta
-
tat
protected final QAccountType tat
-
tu
protected final QUser tu
-
tg
protected final QGroup tg
-
c
protected final QCurrency c
-
tx
protected QTransaction tx
-
id
protected com.querydsl.core.types.dsl.NumberPath<Long> id
-
transactionNumber
protected com.querydsl.core.types.dsl.StringPath transactionNumber
-
date
protected QDate date
-
amount
protected QBigDecimal amount
-
conversionHandler
@Autowired protected ConversionHandler conversionHandler
-
rawEntityManagerHandler
@Autowired protected RawEntityManagerHandler rawEntityManagerHandler
-
groupsHandler
@Autowired protected GroupsHandler groupsHandler
-
accountService
@Autowired protected AccountServiceLocal accountService
-
-
Method Detail
-
build
public DBQuery<?> build(P buildParams)
Description copied from interface:TransQueryHandlerBuilds the db query based on the given parameters- Specified by:
buildin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getAmountPath
public QBigDecimal getAmountPath()
- Specified by:
getAmountPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getCurrencyPath
public QCurrency getCurrencyPath()
- Specified by:
getCurrencyPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getDatePath
public QDate getDatePath()
- Specified by:
getDatePathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getFromAccountPath
public QAccount getFromAccountPath()
- Specified by:
getFromAccountPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getFromAccountTypePath
public QAccountType getFromAccountTypePath()
- Specified by:
getFromAccountTypePathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getFromGroupPath
public QGroup getFromGroupPath()
- Specified by:
getFromGroupPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getFromUserPath
public QUser getFromUserPath()
- Specified by:
getFromUserPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getIdPath
public com.querydsl.core.types.dsl.NumberPath<Long> getIdPath()
- Specified by:
getIdPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
geTransferTypePath
public QTransferType geTransferTypePath()
- Specified by:
geTransferTypePathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getToAccountPath
public QAccount getToAccountPath()
- Specified by:
getToAccountPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getToAccountTypePath
public QAccountType getToAccountTypePath()
- Specified by:
getToAccountTypePathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getToGroupPath
public QGroup getToGroupPath()
- Specified by:
getToGroupPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getToUserPath
public QUser getToUserPath()
- Specified by:
getToUserPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getTransactionNumberPath
public com.querydsl.core.types.dsl.StringPath getTransactionNumberPath()
- Specified by:
getTransactionNumberPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getTransactionPath
public QTransaction getTransactionPath()
- Specified by:
getTransactionPathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
getTransferTypePath
public QTransferType getTransferTypePath()
- Specified by:
getTransferTypePathin interfaceTransQueryHandler<Q extends AbstractTransQuery,P extends BuildTransQueryParams<Q>>
-
additionalAdminFilter
protected com.querydsl.core.types.Predicate additionalAdminFilter(SessionData sessionData)
-
additionalBrokerFilter
protected com.querydsl.core.types.Predicate additionalBrokerFilter(SessionData sessionData)
-
additionalRestrictedOperatorFilter
protected com.querydsl.core.types.Predicate additionalRestrictedOperatorFilter(SessionData sessionData)
-
applyOverview
protected void applyOverview(DBQuery<?> query, P buildParams)
Applies the conditions used on overviews
-
applyOwned
protected abstract void applyOwned(DBQuery<?> query, P buildParams)
Applies a condition from the point of view of an account or account owner
-
applyVisibility
protected void applyVisibility(SessionData sessionData, DBQuery<?> query, P buildParams)
-
getAdminFilters
protected com.querydsl.core.types.Predicate getAdminFilters(SessionData sessionData)
-
getBrokerFilters
protected com.querydsl.core.types.Predicate getBrokerFilters(SessionData sessionData)
-
getBrokeringFilters
protected com.querydsl.core.types.Predicate getBrokeringFilters(SessionData sessionData)
-
getDefaultOrder
protected TransactionOrderBy getDefaultOrder()
-
getMemberFilters
protected com.querydsl.core.types.Predicate getMemberFilters(SessionData sessionData)
-
getRestrictedOperatorFilters
protected com.querydsl.core.types.Predicate getRestrictedOperatorFilters(SessionData sessionData)
-
-