Package de.hybris.platform.b2b.dao
Interface B2BCostCenterDao
- All Superinterfaces:
GenericDao<B2BCostCenterModel>
- All Known Implementing Classes:
DefaultB2BCostCenterDao
-
Method Summary
Modifier and TypeMethodDescriptionfindActiveCostCentersByBranchAndCurrency(Set<B2BUnitModel> branch, CurrencyModel currency) Returns list of activeB2BCostCenterModels associated with any B2BUnit in the set passed and having the matching currency.default List<B2BCostCenterModel>Returns list of availableB2BCostCenterModels associated with any B2BUnit in the set passed and the currency is not null.findByCode(String code) Finds B2BCostCenter by code, If none is found null is returned.
-
Method Details
-
findActiveCostCentersByBranchAndCurrency
List<B2BCostCenterModel> findActiveCostCentersByBranchAndCurrency(Set<B2BUnitModel> branch, CurrencyModel currency) Returns list of activeB2BCostCenterModels associated with any B2BUnit in the set passed and having the matching currency.- Parameters:
branch-currency-- Returns:
- List
B2BCostCenterModel
-
findByCode
Finds B2BCostCenter by code, If none is found null is returned.- Parameters:
code- , the code of the desired Cost Center
-
findAvailableCostCentersByB2BUnit
Returns list of availableB2BCostCenterModels associated with any B2BUnit in the set passed and the currency is not null.- Parameters:
parents-- Returns:
-