Class DefaultB2BOrgUnitDao<T extends OrgUnitModel>

All Implemented Interfaces:
OrgUnitDao<T>, PagedGenericDao<T>

public class DefaultB2BOrgUnitDao<T extends OrgUnitModel> extends DefaultOrgUnitDao<T>
Overrides the implementation of commerceservice's DefaultOrgUnitDao.getQuoteForEmployeeQuery() method by using B2B specific B2B_QUOTE_TO_EMPLOYEE_JOINS clause to build a query string.
  • Field Details

  • Constructor Details

    • DefaultB2BOrgUnitDao

      public DefaultB2BOrgUnitDao(String typeCode)
  • Method Details

    • getQuoteForEmployeeQuery

      protected String getQuoteForEmployeeQuery()
      Overrides to use B2B hierarchy join clause in the query. Joining the quote table with other tables (e.g. PrincipipalGroupRelation), so that all quotes associated to the employee's organizational units can be resolved.
      Overrides:
      getQuoteForEmployeeQuery in class DefaultOrgUnitDao<T extends OrgUnitModel>