KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dotcom > OrderMessage


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - Dyade
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA.
20  *
21  * Initial developer(s): Frederic Maistre (INRIA)
22  * Contributor(s):
23  */

24 package dotcom;
25
26 /**
27  * An OrderMessage contains an order.
28  *
29  * @author Maistre Frederic
30  *
31  * @see WebOrdering
32  * @see CustomerTreatment
33  * @see InventoryTreatment
34  * @see BillingTreatment
35  * @see ControlTreatment
36  * @see DeliveryTreatment
37  */

38 public class OrderMessage implements java.io.Serializable JavaDoc {
39   /** Order id. */
40   int id ;
41   /** Item ordered. */
42   String JavaDoc item ;
43   /** Result of InventoryServer's treatement: true if validated, false otherwise. */
44   boolean inventoryOK ;
45   /** Result of ControlServer's treatement: true if validated, false otherwise. */
46   boolean billingOK ;
47   
48   /**
49    * Creates an OrderMessage.
50    *
51    * @param id order id
52    * @param choice item
53    */

54   OrderMessage (int id, String JavaDoc choice) {
55      this.id = id ;
56      this.item = choice ;
57      inventoryOK = false ;
58      billingOK = false ;
59   }
60 }
61
Popular Tags