public class DefaultOrgUnitDao<T extends OrgUnitModel> extends DefaultPagedGenericDao<T> implements OrgUnitDao<T>
OrgUnitDao interface extending DefaultPagedGenericDao.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
QUOTE_DISTINCT_CODE_MAX_VERSION_QUERY
Sub-query that makes sure only the latest version for each distinct quote code is returned.
|
protected static java.lang.String |
QUOTE_FOR_EMPLOYEE_QUERY_FORMAT
Query template to retrieve quotes associated to an employee.
|
protected static java.lang.String |
QUOTE_TO_EMPLOYEE_JOINS
Joining the quote table with other tables (e.g.
|
| Constructor and Description |
|---|
DefaultOrgUnitDao(java.lang.String typeCode) |
| Modifier and Type | Method and Description |
|---|---|
<U extends OrgUnitModel> |
findAllUnits(java.util.List<U> units,
PageableData pageableData)
Find all units in the branches.
|
<U extends PrincipalModel> |
findMembersOfType(java.lang.Class<U> memberType,
PageableData pageableData,
java.lang.String... orgUnitUids)
Find all units members of a given type.
|
<U extends PrincipalModel> |
findMembersOfType(OrgUnitModel unit,
java.lang.Class<U> memberType,
PageableData pageableData)
Find all unit members of a given type.
|
SearchPageData<QuoteModel> |
findQuotesForEmployee(EmployeeModel employee,
java.util.Set<QuoteState> states,
PageableData pageableData)
Returns all
QuoteModel instances associated with at least one of the given employee's units. |
<U extends OrgUnitModel> |
findRootUnits(java.lang.Class<U> type,
PageableData pageableData)
Find all root units of the given type, i.e.
|
protected ModelService |
getModelService() |
protected java.lang.String |
getQuoteForEmployeeQuery() |
void |
setModelService(ModelService modelService) |
appendOrderByClausesToBuilder, appendWhereClausesToBuilder, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createFlexibleSearchQuery, createQueryString, createSortQueryData, createSortQueryData, createSortQueryData, find, find, find, find, getPagedFlexibleSearchService, setPagedFlexibleSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfind, find, find, findprotected static final java.lang.String QUOTE_DISTINCT_CODE_MAX_VERSION_QUERY
protected static final java.lang.String QUOTE_TO_EMPLOYEE_JOINS
protected static final java.lang.String QUOTE_FOR_EMPLOYEE_QUERY_FORMAT
public <U extends OrgUnitModel> java.util.List<U> findRootUnits(java.lang.Class<U> type, PageableData pageableData)
OrgUnitDaofindRootUnits in interface OrgUnitDao<T extends OrgUnitModel>type - the type to find root units forpageableData - paging informationpublic <U extends PrincipalModel> SearchPageData<U> findMembersOfType(OrgUnitModel unit, java.lang.Class<U> memberType, PageableData pageableData)
OrgUnitDaofindMembersOfType in interface OrgUnitDao<T extends OrgUnitModel>unit - the unit to find all members formemberType - the model type of the members to findpageableData - paging informationpublic <U extends PrincipalModel> SearchPageData<U> findMembersOfType(java.lang.Class<U> memberType, PageableData pageableData, java.lang.String... orgUnitUids)
OrgUnitDaofindMembersOfType in interface OrgUnitDao<T extends OrgUnitModel>U - the generic typememberType - the model type of the members to findpageableData - paging informationorgUnitUids - the orgUnit uids to find all members forSearchPageData the search page datapublic SearchPageData<QuoteModel> findQuotesForEmployee(EmployeeModel employee, java.util.Set<QuoteState> states, PageableData pageableData)
OrgUnitDaoQuoteModel instances associated with at least one of the given employee's units.findQuotesForEmployee in interface OrgUnitDao<T extends OrgUnitModel>employee - an employee who is a member of an organizational unitpageableData - paging informationSearchPageData containing the paged search resultpublic <U extends OrgUnitModel> SearchPageData<U> findAllUnits(java.util.List<U> units, PageableData pageableData)
OrgUnitDaofindAllUnits in interface OrgUnitDao<T extends OrgUnitModel>U - the generic typeunits - the start point units to find their branches unitspageableData - paging informationSearchPageData the search page dataprotected java.lang.String getQuoteForEmployeeQuery()
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.