Package de.hybris.platform.b2b.dao.impl
Class DefaultB2BOrgUnitDao<T extends OrgUnitModel>
- java.lang.Object
-
- de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao<T>
-
- de.hybris.platform.commerceservices.organization.daos.impl.DefaultOrgUnitDao<T>
-
- de.hybris.platform.b2b.dao.impl.DefaultB2BOrgUnitDao<T>
-
- All Implemented Interfaces:
OrgUnitDao<T>
,PagedGenericDao<T>
public class DefaultB2BOrgUnitDao<T extends OrgUnitModel> extends DefaultOrgUnitDao<T>
Overrides the implementation of commerceservice'sDefaultOrgUnitDao.getQuoteForEmployeeQuery()
method by using B2B specific B2B_QUOTE_TO_EMPLOYEE_JOINS clause to build a query string.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
B2B_QUOTE_TO_EMPLOYEE_JOINS
-
Fields inherited from class de.hybris.platform.commerceservices.organization.daos.impl.DefaultOrgUnitDao
QUOTE_DISTINCT_CODE_MAX_VERSION_QUERY, QUOTE_FOR_EMPLOYEE_QUERY_FORMAT, QUOTE_TO_EMPLOYEE_JOINS
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BOrgUnitDao(java.lang.String typeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getQuoteForEmployeeQuery()
Overrides to use B2B hierarchy join clause in the query.-
Methods inherited from class de.hybris.platform.commerceservices.organization.daos.impl.DefaultOrgUnitDao
findAllUnits, findMembersOfType, findMembersOfType, findQuotesForEmployee, findRootUnits, getModelService, setModelService
-
Methods inherited from class de.hybris.platform.commerceservices.search.dao.impl.DefaultPagedGenericDao
appendOrderByClausesToBuilder, appendWhereClausesToBuilder, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createQueryString, createSortQueryData, createSortQueryData, createSortQueryData, find, find, find, find, getPagedFlexibleSearchService, setPagedFlexibleSearchService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.commerceservices.search.dao.PagedGenericDao
find, find, find, find
-
-
-
-
Field Detail
-
B2B_QUOTE_TO_EMPLOYEE_JOINS
protected static final java.lang.String B2B_QUOTE_TO_EMPLOYEE_JOINS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQuoteForEmployeeQuery
protected java.lang.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 classDefaultOrgUnitDao<T extends OrgUnitModel>
-
-