org.openwms.tms.integration
Interface TransportOrderDao

All Superinterfaces:
GenericDao<TransportOrder,Long>
All Known Implementing Classes:
TransportOrderDaoImpl

public interface TransportOrderDao
extends GenericDao<TransportOrder,Long>

A TransportOrderDao - Adds specific functionality concerning TransportOrder Entity classes.

Since:
0.1
Version:
$Revision: 1409 $
Author:
Heiko Scherrer
See Also:
GenericDao, TransportOrder

Field Summary
 
Fields inherited from interface org.openwms.core.integration.GenericDao
FIND_ALL, FIND_BY_ID
 
Method Summary
 List<TransportOrder> findByIds(List<Long> ids)
          Find and retrieve a list of TransportOrders, searched by a list of their ids.
 List<TransportOrder> findForTUinState(TransportUnit transportUnit, TransportOrderState... states)
          Find a list of TransportOrders within defined states for a given TransportUnit.
 int getNumberOfTransportOrders(LocationGroup locationGroup)
          Get all active TransportOrders that have the target destination to this locationGroup.
 
Methods inherited from interface org.openwms.core.integration.GenericDao
findAll, findById, findByNamedParameters, findByPositionalParameters, findByUniqueId, persist, remove, save, setPersistentClass
 

Method Detail

getNumberOfTransportOrders

int getNumberOfTransportOrders(LocationGroup locationGroup)
Get all active TransportOrders that have the target destination to this locationGroup.

Parameters:
locationGroup - The group to search for
Returns:
The number of all active TransportOrders

findByIds

List<TransportOrder> findByIds(List<Long> ids)
Find and retrieve a list of TransportOrders, searched by a list of their ids.

Parameters:
ids - A list of technical keys of the orders to search for
Returns:
The list of TransportOrders.

findForTUinState

List<TransportOrder> findForTUinState(TransportUnit transportUnit,
                                      TransportOrderState... states)
Find a list of TransportOrders within defined states for a given TransportUnit. The implementation does never return null. In case no TransportOrders are found an empty List is returned.

Parameters:
transportUnit - The TransportUnit to search for
states - An arbitrary array of states
Returns:
A list of TransportOrders or an empty list.


Copyright © 2005-2011 openwms.org. All Rights Reserved.