org.cocome.tradingsystem.inventory.data.enterprise.impl
Class EnterpriseQueryImpl

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.data.enterprise.impl.EnterpriseQueryImpl
All Implemented Interfaces:
EnterpriseQueryIf

public class EnterpriseQueryImpl
extends java.lang.Object
implements EnterpriseQueryIf

Author:
Yannick Welsch

Constructor Summary
EnterpriseQueryImpl()
           
 
Method Summary
 long getMeanTimeToDelivery(ProductSupplier supplier, TradingEnterprise enterprise, PersistenceContext pctx)
           
 TradingEnterprise queryEnterpriseById(long enterpriseId, PersistenceContext pctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseQueryImpl

public EnterpriseQueryImpl()
Method Detail

queryEnterpriseById

public TradingEnterprise queryEnterpriseById(long enterpriseId,
                                             PersistenceContext pctx)
Specified by:
queryEnterpriseById in interface EnterpriseQueryIf
Parameters:
enterpriseId - The unique identifier of an TradingEnterprise object
pctx - The persistence context
Returns:
A TradingEnterprise object which has the specified id

getMeanTimeToDelivery

public long getMeanTimeToDelivery(ProductSupplier supplier,
                                  TradingEnterprise enterprise,
                                  PersistenceContext pctx)
Specified by:
getMeanTimeToDelivery in interface EnterpriseQueryIf
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