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

Method Summary
 long getMeanTimeToDelivery(ProductSupplier supplier, TradingEnterprise enterprise, PersistenceContext pctx)
           
 TradingEnterprise queryEnterpriseById(long enterpriseId, PersistenceContext pctx)
           
 

Method Detail

queryEnterpriseById

TradingEnterprise queryEnterpriseById(long enterpriseId,
                                      PersistenceContext pctx)
Parameters:
enterpriseId - The unique identifier of an TradingEnterprise object
pctx - 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 products
enterprise - The enterprise for which the products are delivered
pctx - The persistence context
Returns:
The mean time to delivery in milliseconds