org.cocome.tradingsystem.inventory.data.enterprise
Interface EnterpriseQueryIf
- All Known Implementing Classes:
- EnterpriseQueryImpl
public interface EnterpriseQueryIf
This interface provides methods for querying the database.
It is used by the InventoryApplication. The methods are
derived from methods defined in ReportingIf.
- Author:
- Yannick Welsch
queryEnterpriseById
TradingEnterprise queryEnterpriseById(long enterpriseId,
PersistenceContext pctx)
- Parameters:
enterpriseId
- The unique identifier of an TradingEnterprise objectpctx
- The persistence context
- Returns:
- A TradingEnterprise object which has the specified id
getMeanTimeToDelivery
long getMeanTimeToDelivery(ProductSupplier supplier,
TradingEnterprise enterprise,
PersistenceContext pctx)
- Parameters:
supplier
- The supplier which delivers the productsenterprise
- The enterprise for which the products are deliveredpctx
- The persistence context
- Returns:
- The mean time to delivery in milliseconds