Class DefaultInventoryEventDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.warehousing.inventoryevent.dao.impl.DefaultInventoryEventDao
-
- All Implemented Interfaces:
Dao,InventoryEventDao
public class DefaultInventoryEventDao extends AbstractItemDao implements InventoryEventDao
The default implementation ofInventoryEventDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringALLOCATION_EVENTS_FOR_CONSIGNMENT_ENTRIES_QUERY-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultInventoryEventDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AllocationEventModel>getAllocationEventsForConsignment(ConsignmentModel consignment)Retrieves a collection ofAllocationEventModelfor the givenConsignmentModeljava.util.Collection<AllocationEventModel>getAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)Retrieves a list ofAllocationEventModelrelated to aConsignmentEntryModeljava.util.Collection<AllocationEventModel>getAllocationEventsForOrderEntry(OrderEntryModel orderEntry)Retrieves a collection ofAllocationEventModelfor anOrderEntryModelprotected <T extends InventoryEventModel>
java.util.Collection<T>getInventoryEvents(FlexibleSearchQuery query)<T extends InventoryEventModel>
java.util.Collection<T>getInventoryEventsForStockLevel(StockLevelModel stockLevel, java.lang.Class<T> eventClassType)Retrieves a collection ofInventoryEventModelfor theStockLevelModel-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Field Detail
-
ALLOCATION_EVENTS_FOR_CONSIGNMENT_ENTRIES_QUERY
protected static final java.lang.String ALLOCATION_EVENTS_FOR_CONSIGNMENT_ENTRIES_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllocationEventsForConsignmentEntry
public java.util.Collection<AllocationEventModel> getAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
Description copied from interface:InventoryEventDaoRetrieves a list ofAllocationEventModelrelated to aConsignmentEntryModel- Specified by:
getAllocationEventsForConsignmentEntryin interfaceInventoryEventDao- Parameters:
consignmentEntry- theConsignmentEntryModelfor which to retrieve the event- Returns:
- the list of
AllocationEventModellinked to the entry.
-
getAllocationEventsForOrderEntry
public java.util.Collection<AllocationEventModel> getAllocationEventsForOrderEntry(OrderEntryModel orderEntry)
Description copied from interface:InventoryEventDaoRetrieves a collection ofAllocationEventModelfor anOrderEntryModel- Specified by:
getAllocationEventsForOrderEntryin interfaceInventoryEventDao- Parameters:
orderEntry- the order entry for which to retrieve the events- Returns:
- the collection of allocation events for the order entry
-
getInventoryEventsForStockLevel
public <T extends InventoryEventModel> java.util.Collection<T> getInventoryEventsForStockLevel(StockLevelModel stockLevel, java.lang.Class<T> eventClassType)
Description copied from interface:InventoryEventDaoRetrieves a collection ofInventoryEventModelfor theStockLevelModel- Specified by:
getInventoryEventsForStockLevelin interfaceInventoryEventDao- Parameters:
stockLevel- theStockLevelModelfor which the events need to be extractedeventClassType- the class representing the type of inventory event- Returns:
- the collection of inventory events for the given
StockLevelModel
-
getAllocationEventsForConsignment
public java.util.Collection<AllocationEventModel> getAllocationEventsForConsignment(ConsignmentModel consignment)
Description copied from interface:InventoryEventDaoRetrieves a collection ofAllocationEventModelfor the givenConsignmentModel- Specified by:
getAllocationEventsForConsignmentin interfaceInventoryEventDao- Parameters:
consignment- theConsignmentModelfor which all allocation events will be returned- Returns:
- the collection of
AllocationEventModel
-
getInventoryEvents
protected <T extends InventoryEventModel> java.util.Collection<T> getInventoryEvents(FlexibleSearchQuery query)
-
-