Package org.cyclos.impl.users
Class BaseProductVouchersPropertyResolver
- java.lang.Object
-
- org.cyclos.impl.users.BasePropertyResolver<VoucherConfiguration,ProductVoucher>
-
- org.cyclos.impl.users.BaseProductVouchersPropertyResolver
-
- Type Parameters:
PV-
- All Implemented Interfaces:
PropertyResolver<VoucherConfiguration>
- Direct Known Subclasses:
BrokerProductVouchersPropertyResolver,ProductVouchersPropertyResolver
public abstract class BaseProductVouchersPropertyResolver extends BasePropertyResolver<VoucherConfiguration,ProductVoucher>
Base resolver for voucher properties on products
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.BasePropertyResolver
applicationContext, conversionHandler, rawEntityManagerHandler
-
-
Constructor Summary
Constructors Constructor Description BaseProductVouchersPropertyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VoucherConfigurationgetKey(ProductVoucher relationship)Must be implemented in order to return the key from the given relationship.protected com.querydsl.core.types.Path<VoucherConfiguration>getKeyPath()Returns the path that resolves to the key.protected voidinitPaths(Set<com.querydsl.core.types.dsl.BooleanPath> paths)-
Methods inherited from class org.cyclos.impl.users.BasePropertyResolver
find, getComparator, getKeyPropertyName, getPaths, getRelationships, resolve
-
-
-
-
Method Detail
-
getKey
protected VoucherConfiguration getKey(ProductVoucher relationship)
Description copied from class:BasePropertyResolverMust be implemented in order to return the key from the given relationship. Returning null means this relationship shouldn't be taken into account- Specified by:
getKeyin classBasePropertyResolver<VoucherConfiguration,ProductVoucher>
-
getKeyPath
protected com.querydsl.core.types.Path<VoucherConfiguration> getKeyPath()
Description copied from class:BasePropertyResolverReturns the path that resolves to the key. For using custom key property names, subclasses should return null in this method and overrideBasePropertyResolver.getKeyPropertyName().- Specified by:
getKeyPathin classBasePropertyResolver<VoucherConfiguration,ProductVoucher>
-
initPaths
protected void initPaths(Set<com.querydsl.core.types.dsl.BooleanPath> paths)
- Specified by:
initPathsin classBasePropertyResolver<VoucherConfiguration,ProductVoucher>
-
-