net.sf.oness.order.model.facade
Class OrderSpringFacadeDelegate

java.lang.Object
  extended bynet.sf.oness.common.all.BaseObject
      extended bynet.sf.oness.order.model.facade.OrderSpringFacadeDelegate
All Implemented Interfaces:
java.lang.Cloneable, OrderFacadeDelegate, java.io.Serializable

public class OrderSpringFacadeDelegate
extends net.sf.oness.common.all.BaseObject
implements OrderFacadeDelegate

Version:
$Revision: 1.20 $
Author:
Carlos Sanchez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.oness.common.all.BaseObject
log
 
Constructor Summary
OrderSpringFacadeDelegate()
           
 
Method Summary
 DeliveryDocketWithParty createDeliveryDocket(DeliveryDocket deliveryDocket, java.util.Map map)
          Create a delivery docket.
 DeliveryDocketWithParty createDeliveryDocketItems(java.util.Map deliveryDocketItems, java.lang.Long deliveryDocketId)
          Add delivery docket items to a delivery docket.
 void createInvoices(java.util.Collection deliveryDocketIds)
          Create invoices.
 OrderWithParty createOrder(Order order)
          Create an order.
 OrderWithParty createOrderItem(OrderItem orderItem, java.lang.Long orderId)
          Add an order item to an order.
 OrderWithParty createOrderItems(java.util.Collection orderItems, java.lang.Long orderId)
          Add order items to an order.
 void deleteDeliveryDocket(java.lang.Long id)
          Delete a delivery docket
 void deleteOrder(java.lang.Long id)
          Delete an order
 net.sf.oness.common.model.util.PaginatedList findDeliveryDocket(DeliveryDocket deliveryDocket, int firstElement, int maxElements)
          Find delivery dockets
 DeliveryDocketWithParty findDeliveryDocketWithDetails(java.lang.Long id)
          Find a delivery docket.
 net.sf.oness.common.model.util.PaginatedList findInvoice(Invoice invoice, int firstElement, int maxElements)
          Find invoices
 InvoiceWithParty findInvoiceWithDetails(java.lang.Long id)
          Find an invoice.
 net.sf.oness.common.model.util.PaginatedList findOrder(Order order, int firstElement, int maxElements)
          Find orders
 OrderWithParty findOrderWithDetails(java.lang.Long id)
          Find an order.
 net.sf.oness.common.model.dao.Dao getDeliveryDocketDao()
           
 net.sf.oness.common.model.dao.Dao getDeliveryDocketItemDao()
           
 net.sf.oness.inventory.model.facade.InventoryFacadeDelegate getInventoryFacadeDelegate()
           
 net.sf.oness.common.model.dao.Dao getInvoiceDao()
           
 net.sf.oness.common.model.dao.Dao getInvoiceItemDao()
           
 net.sf.oness.common.model.dao.Dao getOrderDao()
           
 net.sf.oness.common.model.dao.Dao getOrderItemDao()
           
 net.sf.oness.party.model.facade.PartyFacadeDelegate getPartyFacadeDelegate()
           
 void setDeliveryDocketDao(net.sf.oness.common.model.dao.Dao deliveryDocketDao)
           
 void setDeliveryDocketItemDao(net.sf.oness.common.model.dao.Dao deliveryDocketItemDao)
           
 void setInventoryFacadeDelegate(net.sf.oness.inventory.model.facade.InventoryFacadeDelegate inventoryFacadeDelegate)
           
 void setInvoiceDao(net.sf.oness.common.model.dao.Dao invoiceDao)
           
 void setInvoiceItemDao(net.sf.oness.common.model.dao.Dao invoiceItemDao)
           
 void setOrderDao(net.sf.oness.common.model.dao.Dao orderDao)
           
 void setOrderItemDao(net.sf.oness.common.model.dao.Dao orderItemDao)
           
 void setPartyFacadeDelegate(net.sf.oness.party.model.facade.PartyFacadeDelegate partyFacadeDelegate)
           
 DeliveryDocketWithParty updateDeliveryDocket(DeliveryDocket deliveryDocket, java.util.Collection items)
          Update a delivery docket.
 OrderWithParty updateOrder(Order order, java.util.Collection items)
          Update an order.
 
Methods inherited from class net.sf.oness.common.all.BaseObject
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderSpringFacadeDelegate

public OrderSpringFacadeDelegate()
Method Detail

setPartyFacadeDelegate

public void setPartyFacadeDelegate(net.sf.oness.party.model.facade.PartyFacadeDelegate partyFacadeDelegate)
Parameters:
partyFacadeDelegate - The partyFacadeDelegate to set.

getPartyFacadeDelegate

public net.sf.oness.party.model.facade.PartyFacadeDelegate getPartyFacadeDelegate()
Returns:
Returns the partyFacadeDelegate.

setInventoryFacadeDelegate

public void setInventoryFacadeDelegate(net.sf.oness.inventory.model.facade.InventoryFacadeDelegate inventoryFacadeDelegate)
Parameters:
inventoryFacadeDelegate - The inventoryFacadeDelegate to set.

getInventoryFacadeDelegate

public net.sf.oness.inventory.model.facade.InventoryFacadeDelegate getInventoryFacadeDelegate()
Returns:
Returns the inventoryFacadeDelegate.

setOrderDao

public void setOrderDao(net.sf.oness.common.model.dao.Dao orderDao)
Parameters:
orderDao - The orderDao to set.

getOrderDao

public net.sf.oness.common.model.dao.Dao getOrderDao()
Returns:
Returns the orderDao.

setOrderItemDao

public void setOrderItemDao(net.sf.oness.common.model.dao.Dao orderItemDao)
Parameters:
orderItemDao - The orderItemDao to set.

getOrderItemDao

public net.sf.oness.common.model.dao.Dao getOrderItemDao()
Returns:
Returns the orderItemDao.

setDeliveryDocketDao

public void setDeliveryDocketDao(net.sf.oness.common.model.dao.Dao deliveryDocketDao)
Parameters:
deliveryDocketDao - The deliveryDocketDao to set.

getDeliveryDocketDao

public net.sf.oness.common.model.dao.Dao getDeliveryDocketDao()
Returns:
Returns the deliveryDocketDao.

setDeliveryDocketItemDao

public void setDeliveryDocketItemDao(net.sf.oness.common.model.dao.Dao deliveryDocketItemDao)
Parameters:
deliveryDocketItemDao - The deliveryDocketItemDao to set.

getDeliveryDocketItemDao

public net.sf.oness.common.model.dao.Dao getDeliveryDocketItemDao()
Returns:
Returns the deliveryDocketItemDao.

setInvoiceDao

public void setInvoiceDao(net.sf.oness.common.model.dao.Dao invoiceDao)
Parameters:
invoiceDao - The invoiceDao to set.

getInvoiceDao

public net.sf.oness.common.model.dao.Dao getInvoiceDao()
Returns:
Returns the invoiceDao.

setInvoiceItemDao

public void setInvoiceItemDao(net.sf.oness.common.model.dao.Dao invoiceItemDao)
Parameters:
invoiceItemDao - The invoiceItemDao to set.

getInvoiceItemDao

public net.sf.oness.common.model.dao.Dao getInvoiceItemDao()
Returns:
Returns the invoiceItemDao.

findOrderWithDetails

public OrderWithParty findOrderWithDetails(java.lang.Long id)
Description copied from interface: OrderFacadeDelegate
Find an order.

Specified by:
findOrderWithDetails in interface OrderFacadeDelegate
Parameters:
id -
Returns:
The order with items
See Also:
OrderFacadeDelegate.findOrderWithDetails(java.lang.Long)

createOrder

public OrderWithParty createOrder(Order order)
Description copied from interface: OrderFacadeDelegate
Create an order.

Specified by:
createOrder in interface OrderFacadeDelegate
Parameters:
order -
Returns:
The order created
See Also:
OrderFacadeDelegate.createOrder(net.sf.oness.order.model.bo.Order)

deleteOrder

public void deleteOrder(java.lang.Long id)
Description copied from interface: OrderFacadeDelegate
Delete an order

Specified by:
deleteOrder in interface OrderFacadeDelegate
Parameters:
id -
See Also:
OrderFacadeDelegate.deleteOrder(java.lang.Long)

findOrder

public net.sf.oness.common.model.util.PaginatedList findOrder(Order order,
                                                              int firstElement,
                                                              int maxElements)
Description copied from interface: OrderFacadeDelegate
Find orders

Specified by:
findOrder in interface OrderFacadeDelegate
Parameters:
order -
firstElement -
maxElements -
Returns:
List of OrderWithParty objects
See Also:
OrderFacadeDelegate.findOrder(net.sf.oness.order.model.bo.Order, int, int)

updateOrder

public OrderWithParty updateOrder(Order order,
                                  java.util.Collection items)
Description copied from interface: OrderFacadeDelegate
Update an order.

Specified by:
updateOrder in interface OrderFacadeDelegate
Parameters:
order -
items -
Returns:
The order updated
See Also:
OrderFacadeDelegate.updateOrder(net.sf.oness.order.model.bo.Order, java.util.Collection)

createOrderItem

public OrderWithParty createOrderItem(OrderItem orderItem,
                                      java.lang.Long orderId)
Description copied from interface: OrderFacadeDelegate
Add an order item to an order. If the product is already in the order the quantity is added.

Specified by:
createOrderItem in interface OrderFacadeDelegate
Parameters:
orderItem -
orderId -
Returns:
The order updated
See Also:
OrderFacadeDelegate.createOrderItem(net.sf.oness.order.model.bo.OrderItem, java.lang.Long)

createOrderItems

public OrderWithParty createOrderItems(java.util.Collection orderItems,
                                       java.lang.Long orderId)
Description copied from interface: OrderFacadeDelegate
Add order items to an order. If the product is already in the order the quantity is added.

Specified by:
createOrderItems in interface OrderFacadeDelegate
Parameters:
orderItems - Can't contain two items of the same product.
orderId -
Returns:
The order updated
See Also:
OrderFacadeDelegate.createOrderItems(java.util.Collection, java.lang.Long)

createDeliveryDocket

public DeliveryDocketWithParty createDeliveryDocket(DeliveryDocket deliveryDocket,
                                                    java.util.Map map)
Description copied from interface: OrderFacadeDelegate
Create a delivery docket.

Specified by:
createDeliveryDocket in interface OrderFacadeDelegate
Parameters:
deliveryDocket -
Returns:
The deliveryDocket created
See Also:
OrderFacadeDelegate.createDeliveryDocket(net.sf.oness.order.model.bo.DeliveryDocket, java.util.Map)

findDeliveryDocketWithDetails

public DeliveryDocketWithParty findDeliveryDocketWithDetails(java.lang.Long id)
Description copied from interface: OrderFacadeDelegate
Find a delivery docket.

Specified by:
findDeliveryDocketWithDetails in interface OrderFacadeDelegate
Parameters:
id -
Returns:
The deliveryDocket with items
See Also:
OrderFacadeDelegate.findDeliveryDocketWithDetails(java.lang.Long)

createDeliveryDocketItems

public DeliveryDocketWithParty createDeliveryDocketItems(java.util.Map deliveryDocketItems,
                                                         java.lang.Long deliveryDocketId)
Description copied from interface: OrderFacadeDelegate
Add delivery docket items to a delivery docket.

Specified by:
createDeliveryDocketItems in interface OrderFacadeDelegate
Parameters:
deliveryDocketItems - orderItem id as key and deliveryDocket as value
deliveryDocketId -
Returns:
The delivery docket updated
See Also:
net.sf.oness.order.model.facade.OrderFacadeDelegate#createDeliveryDocketItems(java.util.Collection, java.lang.Long)

findDeliveryDocket

public net.sf.oness.common.model.util.PaginatedList findDeliveryDocket(DeliveryDocket deliveryDocket,
                                                                       int firstElement,
                                                                       int maxElements)
Description copied from interface: OrderFacadeDelegate
Find delivery dockets

Specified by:
findDeliveryDocket in interface OrderFacadeDelegate
Parameters:
deliveryDocket -
firstElement -
maxElements -
Returns:
List of DeliveryDocketWithParty objects
See Also:
OrderFacadeDelegate.findDeliveryDocket(net.sf.oness.order.model.bo.DeliveryDocket, int, int)

updateDeliveryDocket

public DeliveryDocketWithParty updateDeliveryDocket(DeliveryDocket deliveryDocket,
                                                    java.util.Collection items)
Description copied from interface: OrderFacadeDelegate
Update a delivery docket.

Specified by:
updateDeliveryDocket in interface OrderFacadeDelegate
Parameters:
deliveryDocket -
items -
Returns:
The deliveryDocket updated
See Also:
OrderFacadeDelegate.updateDeliveryDocket(net.sf.oness.order.model.bo.DeliveryDocket, java.util.Collection)

deleteDeliveryDocket

public void deleteDeliveryDocket(java.lang.Long id)
Description copied from interface: OrderFacadeDelegate
Delete a delivery docket

Specified by:
deleteDeliveryDocket in interface OrderFacadeDelegate
Parameters:
id -
See Also:
OrderFacadeDelegate.deleteDeliveryDocket(java.lang.Long)

createInvoices

public void createInvoices(java.util.Collection deliveryDocketIds)
Description copied from interface: OrderFacadeDelegate
Create invoices.

Specified by:
createInvoices in interface OrderFacadeDelegate
Parameters:
deliveryDocketIds -
See Also:
OrderFacadeDelegate.createInvoices(java.util.Collection)

findInvoice

public net.sf.oness.common.model.util.PaginatedList findInvoice(Invoice invoice,
                                                                int firstElement,
                                                                int maxElements)
Description copied from interface: OrderFacadeDelegate
Find invoices

Specified by:
findInvoice in interface OrderFacadeDelegate
Parameters:
invoice -
firstElement -
maxElements -
Returns:
List of InvoiceWithParty objects
See Also:
OrderFacadeDelegate.findInvoice(net.sf.oness.order.model.bo.Invoice, int, int)

findInvoiceWithDetails

public InvoiceWithParty findInvoiceWithDetails(java.lang.Long id)
Description copied from interface: OrderFacadeDelegate
Find an invoice.

Specified by:
findInvoiceWithDetails in interface OrderFacadeDelegate
Parameters:
id -
Returns:
The invoice with items
See Also:
OrderFacadeDelegate.findInvoiceWithDetails(java.lang.Long)


Copyright © 2003-2005 ONess Project. All Rights Reserved.