Class AbstractQueryHandler<R,Q extends com.sankcrm.erp.auth.application.organization.query.AbstractOrgQuery<R>>

java.lang.Object
com.sankcrm.erp.application.query.AbstractJPQLQueryHandler<Organization,R,Q>
com.sankcrm.erp.auth.application.organization.query.AbstractQueryHandler<R,Q>
All Implemented Interfaces:
com.sankcrm.erp.bus.QueryHandler<R,Q>
Direct Known Subclasses:
OrganizationListQueryHandler, OrganizationPageQueryHandler

public abstract class AbstractQueryHandler<R,Q extends com.sankcrm.erp.auth.application.organization.query.AbstractOrgQuery<R>> extends com.sankcrm.erp.application.query.AbstractJPQLQueryHandler<Organization,R,Q>
处理查询
Since:
2.1.0
Author:
zhsxin
create time:
2023/4/1 18:44
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.querydsl.jpa.JPQLQuery<Organization>
    build(Q query)
     
    protected abstract com.querydsl.jpa.JPQLQueryFactory
    查询器工厂
    protected com.querydsl.core.types.OrderSpecifier<?>[]
    toOrderBy(Q query)
     
    protected com.querydsl.core.types.Predicate
    toPredicate(Q query)
     

    Methods inherited from class com.sankcrm.erp.application.query.AbstractJPQLQueryHandler

    doQuery, fromContext, handle, initContext, updateContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractQueryHandler

      public AbstractQueryHandler()
  • Method Details

    • build

      protected com.querydsl.jpa.JPQLQuery<Organization> build(Q query)
      Specified by:
      build in class com.sankcrm.erp.application.query.AbstractJPQLQueryHandler<Organization,R,Q extends com.sankcrm.erp.auth.application.organization.query.AbstractOrgQuery<R>>
    • toPredicate

      protected com.querydsl.core.types.Predicate toPredicate(Q query)
      Specified by:
      toPredicate in class com.sankcrm.erp.application.query.AbstractJPQLQueryHandler<Organization,R,Q extends com.sankcrm.erp.auth.application.organization.query.AbstractOrgQuery<R>>
    • toOrderBy

      protected com.querydsl.core.types.OrderSpecifier<?>[] toOrderBy(Q query)
      Overrides:
      toOrderBy in class com.sankcrm.erp.application.query.AbstractJPQLQueryHandler<Organization,R,Q extends com.sankcrm.erp.auth.application.organization.query.AbstractOrgQuery<R>>
    • getQueryFactory

      protected abstract com.querydsl.jpa.JPQLQueryFactory getQueryFactory()
      查询器工厂
      Returns:
      查询器工厂