Class DefaultConsignmentDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<ConsignmentModel>
-
- de.hybris.platform.consignmenttrackingservices.daos.impl.DefaultConsignmentDao
-
- All Implemented Interfaces:
ConsignmentDao
,GenericDao<ConsignmentModel>
public class DefaultConsignmentDao extends DefaultGenericDao<ConsignmentModel> implements ConsignmentDao
The default implementation of ConsignmentDao
-
-
Constructor Summary
Constructors Constructor Description DefaultConsignmentDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ConsignmentModel>
findConsignmentByCode(java.lang.String orderCode, java.lang.String consignmentCode)
java.util.List<ConsignmentModel>
findConsignmentsByOrder(java.lang.String orderCode)
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findConsignmentByCode
public java.util.Optional<ConsignmentModel> findConsignmentByCode(java.lang.String orderCode, java.lang.String consignmentCode)
- Specified by:
findConsignmentByCode
in interfaceConsignmentDao
- Parameters:
orderCode
- code of this consignment's orderconsignmentCode
- code of ConsignmentModel- Returns:
- An optional containing the consignment if it exists and an empty optional otherwise
-
findConsignmentsByOrder
public java.util.List<ConsignmentModel> findConsignmentsByOrder(java.lang.String orderCode)
- Specified by:
findConsignmentsByOrder
in interfaceConsignmentDao
- Parameters:
orderCode
- order code for the consignments- Returns:
- all the consignments belong to this order
-
-