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 aroundB2BCostCenterModel
- Spring Bean ID:
- b2bCostCenterDao
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BCostCenterDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<B2BCostCenterModel>
findActiveCostCentersByBranchAndCurrency(java.util.Set<B2BUnitModel> branch, CurrencyModel currency)
Returns list of activeB2BCostCenterModel
s associated with any B2BUnit in the set passed and having the matching currency.B2BCostCenterModel
findByCode(java.lang.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
-
-
-
-
Method Detail
-
findByCode
public B2BCostCenterModel findByCode(java.lang.String code)
Finds B2BCostCenter by code, If none is found null is returned.- Specified by:
findByCode
in interfaceB2BCostCenterDao
- Parameters:
code
- , the code of the desired Cost Center
-
findActiveCostCentersByBranchAndCurrency
public java.util.List<B2BCostCenterModel> findActiveCostCentersByBranchAndCurrency(java.util.Set<B2BUnitModel> branch, CurrencyModel currency)
Returns list of activeB2BCostCenterModel
s associated with any B2BUnit in the set passed and having the matching currency.- Specified by:
findActiveCostCentersByBranchAndCurrency
in interfaceB2BCostCenterDao
- Parameters:
branch
-currency
-- Returns:
- List of
B2BCostCenterModel
-
-