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 theB2BBookingLineEntryDao
- Spring Bean ID:
- b2bBookingLineEntryDao
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BBookingLineEntryDao()
DefaultGenericDao is only usable when typecode is set.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<B2BBookingLineEntryModel>
findOpenBookingLineEntriesByCostCenterAndDate(java.util.List<B2BCostCenterModel> costCenters, java.util.Date bookingDate)
Finds open booking linesjava.lang.Double
findTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, java.util.Date startDate, java.util.Date endDate)
Gets the total cost of BookingLines between a particular date rangejava.util.List<B2BBookingLineEntryModel>
getOpenBookingLineEntries(java.util.List<B2BCostCenterModel> costCenters, java.util.Date bookingDate)
Deprecated.Since 4.4.java.lang.Double
getTotalCost(B2BCostCenterModel costCenter, java.util.Date startDate, java.util.Date endDate)
Deprecated.Since 4.4.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
getTotalCost
@Deprecated(since="4.4") public java.lang.Double getTotalCost(B2BCostCenterModel costCenter, java.util.Date startDate, java.util.Date endDate)
Deprecated.Since 4.4. UsefindTotalCostByCostCenterAndDate(B2BCostCenterModel,Date,Date)
insteadDescription copied from interface:B2BBookingLineEntryDao
Gets the total cost of BookingLines between particular dates- Specified by:
getTotalCost
in 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 java.lang.Double findTotalCostByCostCenterAndDate(B2BCostCenterModel costCenter, java.util.Date startDate, java.util.Date endDate)
Description copied from interface:B2BBookingLineEntryDao
Gets the total cost of BookingLines between a particular date range- Specified by:
findTotalCostByCostCenterAndDate
in 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") public java.util.List<B2BBookingLineEntryModel> getOpenBookingLineEntries(java.util.List<B2BCostCenterModel> costCenters, java.util.Date bookingDate)
Deprecated.Since 4.4. Use findOpenBookingLineEntries(List, Date)} instead- Specified by:
getOpenBookingLineEntries
in interfaceB2BBookingLineEntryDao
- Returns:
- a list of open bookings
-
findOpenBookingLineEntriesByCostCenterAndDate
public java.util.List<B2BBookingLineEntryModel> findOpenBookingLineEntriesByCostCenterAndDate(java.util.List<B2BCostCenterModel> costCenters, java.util.Date bookingDate)
Description copied from interface:B2BBookingLineEntryDao
Finds open booking lines- Specified by:
findOpenBookingLineEntriesByCostCenterAndDate
in interfaceB2BBookingLineEntryDao
- Parameters:
costCenters
- the costCenterbookingDate
- the booking date- Returns:
- a list of open bookings
-
-