Class BasePropertyResolver<K,​R extends SimpleEntity>

    • Constructor Detail

      • BasePropertyResolver

        public BasePropertyResolver()
    • Method Detail

      • getKeyPropertyName

        public String getKeyPropertyName()
        Returns the property name which resolves to the relationship key. By default, delegates to the property name of the path returned by getKeyPath().
        Specified by:
        getKeyPropertyName in interface PropertyResolver<K>
      • getComparator

        protected Comparator<K> getComparator()
      • getKey

        protected abstract K getKey​(R relationship)
        Must be implemented in order to return the key from the given relationship. Returning null means this relationship shouldn't be taken into account
      • getKeyPath

        protected abstract com.querydsl.core.types.Path<K> getKeyPath()
        Returns the path that resolves to the key. For using custom key property names, subclasses should return null in this method and override getKeyPropertyName().
      • getRelationships

        protected abstract Collection<R> getRelationships​(Product product)
        Must be implemented to resolve the related entities to the given product. Returning null means if doesn't apply to this product type
      • initPaths

        protected abstract void initPaths​(Set<com.querydsl.core.types.dsl.BooleanPath> paths)