Package de.hybris.platform.b2b.dao.impl
Class DefaultB2BCostCenterDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<B2BCostCenterModel>
de.hybris.platform.b2b.dao.impl.DefaultB2BCostCenterDao
- All Implemented Interfaces:
B2BCostCenterDao,GenericDao<B2BCostCenterModel>
public class DefaultB2BCostCenterDao
extends DefaultGenericDao<B2BCostCenterModel>
implements B2BCostCenterDao
A data access object around
B2BCostCenterModel- Spring Bean ID:
- b2bCostCenterDao
-
Constructor Summary
Constructors -
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.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.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultB2BCostCenterDao
public DefaultB2BCostCenterDao()
-
-
Method Details
-
findByCode
Finds B2BCostCenter by code, If none is found null is returned.- Specified by:
findByCodein interfaceB2BCostCenterDao- Parameters:
code- , the code of the desired Cost Center
-
findAvailableCostCentersByB2BUnit
Description copied from interface:B2BCostCenterDaoReturns list of availableB2BCostCenterModels associated with any B2BUnit in the set passed and the currency is not null.- Specified by:
findAvailableCostCentersByB2BUnitin interfaceB2BCostCenterDao- Returns:
-
findActiveCostCentersByBranchAndCurrency
public 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.- Specified by:
findActiveCostCentersByBranchAndCurrencyin interfaceB2BCostCenterDao- Parameters:
branch-currency-- Returns:
- List of
B2BCostCenterModel
-