org.openxma.dsl.reference.service.impl
Class OrderServiceImpl

java.lang.Object
  extended by org.openxma.dsl.reference.service.impl.OrderServiceImpl
All Implemented Interfaces:
OrderService

@Service(value="orderService")
public class OrderServiceImpl
extends java.lang.Object
implements OrderService


Field Summary
protected  CustomerDao customerDao
           
protected  org.apache.commons.logging.Log logger
           
protected  org.openxma.dsl.platform.service.Mapper mapper
           
protected  OrderDao orderDao
           
protected  OrderItemDao orderItemDao
           
protected  ProductDao productDao
           
 
Constructor Summary
OrderServiceImpl()
           
 
Method Summary
 void deleteOrderView(java.lang.String oid)
           
 java.util.Set<Order> findAllOrderStatesBetweenDate(Order order, java.util.Date from, java.util.Date to)
           
 OrderView findByCustomerLastNameOrOrderNumber(CustomerLastNameOrOrderNumberQuery customerLastNameOrOrderNumberQuery)
           
 OrderView findByCustomerOrOrderNumber(CustomerOrOrderNumberQuery customerOrOrderNumberQuery)
           
 OrderView findByOrderNumber(OrderNumberQuery orderNumberQuery)
           
 OrderView findByOrderNumberAndCustomerFirstName(OrderNumberAndCustomerFirstNameQuery orderNumberAndCustomerFirstNameQuery)
           
 OrderView FindByStateAndDate(StateAndDateQuery stateAndDateQuery)
           
 OrderView loadOrderView(java.lang.String oid)
           
 java.util.List<OrderStateView> readOrderStateByCustomerAndDate(java.lang.Long customerId, java.util.Date reportDate)
           
 OrderView save(OrderView orderView)
           
 void setCustomerDao(CustomerDao customerDao)
           
 void setOrderDao(OrderDao orderDao)
           
 void setOrderItemDao(OrderItemDao orderItemDao)
           
 void setProductDao(ProductDao productDao)
           
 void update(OrderView orderView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger

mapper

protected org.openxma.dsl.platform.service.Mapper mapper

orderDao

protected OrderDao orderDao

customerDao

protected CustomerDao customerDao

orderItemDao

protected OrderItemDao orderItemDao

productDao

protected ProductDao productDao
Constructor Detail

OrderServiceImpl

public OrderServiceImpl()
Method Detail

setOrderDao

public void setOrderDao(OrderDao orderDao)

setCustomerDao

public void setCustomerDao(CustomerDao customerDao)

setOrderItemDao

public void setOrderItemDao(OrderItemDao orderItemDao)

setProductDao

public void setProductDao(ProductDao productDao)

save

@Transactional
public OrderView save(OrderView orderView)
Specified by:
save in interface OrderService

loadOrderView

@Transactional(readOnly=true)
public OrderView loadOrderView(java.lang.String oid)
Specified by:
loadOrderView in interface OrderService

update

@Transactional
public void update(OrderView orderView)
Specified by:
update in interface OrderService

deleteOrderView

@Transactional
public void deleteOrderView(java.lang.String oid)
Specified by:
deleteOrderView in interface OrderService

FindByStateAndDate

@Transactional(readOnly=true)
public OrderView FindByStateAndDate(StateAndDateQuery stateAndDateQuery)
Specified by:
FindByStateAndDate in interface OrderService

findByCustomerLastNameOrOrderNumber

@Transactional(readOnly=true)
public OrderView findByCustomerLastNameOrOrderNumber(CustomerLastNameOrOrderNumberQuery customerLastNameOrOrderNumberQuery)
Specified by:
findByCustomerLastNameOrOrderNumber in interface OrderService

findByCustomerOrOrderNumber

@Transactional(readOnly=true)
public OrderView findByCustomerOrOrderNumber(CustomerOrOrderNumberQuery customerOrOrderNumberQuery)
Specified by:
findByCustomerOrOrderNumber in interface OrderService

findByOrderNumber

@Transactional(readOnly=true)
public OrderView findByOrderNumber(OrderNumberQuery orderNumberQuery)
Specified by:
findByOrderNumber in interface OrderService

findByOrderNumberAndCustomerFirstName

@Transactional(readOnly=true)
public OrderView findByOrderNumberAndCustomerFirstName(OrderNumberAndCustomerFirstNameQuery orderNumberAndCustomerFirstNameQuery)
Specified by:
findByOrderNumberAndCustomerFirstName in interface OrderService

readOrderStateByCustomerAndDate

@Transactional(readOnly=true)
public java.util.List<OrderStateView> readOrderStateByCustomerAndDate(java.lang.Long customerId,
                                                                                    java.util.Date reportDate)
Specified by:
readOrderStateByCustomerAndDate in interface OrderService

findAllOrderStatesBetweenDate

@Transactional(readOnly=true)
public java.util.Set<Order> findAllOrderStatesBetweenDate(Order order,
                                                                        java.util.Date from,
                                                                        java.util.Date to)
Specified by:
findAllOrderStatesBetweenDate in interface OrderService


Copyright © 2010. All Rights Reserved.