Package de.hybris.platform.b2b.dao.impl
Class DefaultB2BBookingLineEntryDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<B2BBookingLineEntryModel>
de.hybris.platform.b2b.dao.impl.DefaultB2BBookingLineEntryDao
- All Implemented Interfaces:
B2BBookingLineEntryDao,GenericDao<B2BBookingLineEntryModel>
public class DefaultB2BBookingLineEntryDao
extends DefaultGenericDao<B2BBookingLineEntryModel>
implements B2BBookingLineEntryDao
Default implementation of the
B2BBookingLineEntryDao- Spring Bean ID:
- b2bBookingLineEntryDao
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGenericDao is only usable when typecode is set. -
Method Summary
Modifier and TypeMethodDescriptionfindOpenBookingLineEntriesByCostCenterAndDate(List<B2BCostCenterModel> costCenters, Date bookingDate) Finds open booking linesfindTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, Date startDate, Date endDate) Gets the total cost of BookingLines between a particular date rangegetOpenBookingLineEntries(List<B2BCostCenterModel> costCenters, Date bookingDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.getTotalCost(B2BCostCenterModel costCenter, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultB2BBookingLineEntryDao
public DefaultB2BBookingLineEntryDao()DefaultGenericDao is only usable when typecode is set.
-
-
Method Details
-
getTotalCost
@Deprecated(since="4.4", forRemoval=true) public Double getTotalCost(B2BCostCenterModel costCenter, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. UsefindTotalCostByCostCenterAndDate(B2BCostCenterModel,Date,Date)insteadDescription copied from interface:B2BBookingLineEntryDaoGets the total cost of BookingLines between particular dates- Specified by:
getTotalCostin interfaceB2BBookingLineEntryDao- Parameters:
costCenter- the costCenterstartDate- the startDate of the date rangeendDate- the endDate of the date range- Returns:
- amount of the total cost
-
findTotalCostByCostCenterAndDate
public Double findTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, Date startDate, Date endDate) Description copied from interface:B2BBookingLineEntryDaoGets the total cost of BookingLines between a particular date range- Specified by:
findTotalCostByCostCenterAndDatein interfaceB2BBookingLineEntryDao- Parameters:
costCenter- the costCenterstartDate- the startDate of the date rangeendDate- the endDate of the date range- Returns:
- amount of the total cost
-
getOpenBookingLineEntries
@Deprecated(since="4.4", forRemoval=true) public List<B2BBookingLineEntryModel> getOpenBookingLineEntries(List<B2BCostCenterModel> costCenters, Date bookingDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. Use findOpenBookingLineEntries(List, Date)} instead- Specified by:
getOpenBookingLineEntriesin interfaceB2BBookingLineEntryDao- Returns:
- a list of open bookings
-
findOpenBookingLineEntriesByCostCenterAndDate
public List<B2BBookingLineEntryModel> findOpenBookingLineEntriesByCostCenterAndDate(List<B2BCostCenterModel> costCenters, Date bookingDate) Description copied from interface:B2BBookingLineEntryDaoFinds open booking lines- Specified by:
findOpenBookingLineEntriesByCostCenterAndDatein interfaceB2BBookingLineEntryDao- Parameters:
costCenters- the costCenterbookingDate- the booking date- Returns:
- a list of open bookings
-