KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > basic > Order


1 /**
2  * Speedo: an implementation of JDO compliant personality on top of JORM generic
3  * I/O sub-system.
4  * Copyright (C) 2004 France Telecom R&D
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 of the License, or (at your option) 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 USA
19  */

20 package org.objectweb.speedo.pobjects.basic;
21
22 import java.util.Collection JavaDoc;
23 import java.util.Date JavaDoc;
24
25 /**
26  *
27  * @author S.Chassande-Barrioz
28  */

29 public class Order {
30     long id;
31     String JavaDoc userId;
32     float amount;
33     int authCode;
34     Date JavaDoc saleDateTime;
35     String JavaDoc ccLastDigits;
36     Collection JavaDoc orderLines;
37
38     public Order(long id) {
39         this.id = id;
40     }
41
42     public long getId() {
43         return id;
44     }
45
46     public String JavaDoc getUserId() {
47         return userId;
48     }
49
50     public void setUserId(String JavaDoc userId) {
51         this.userId = userId;
52     }
53
54     public float getAmount() {
55         return amount;
56     }
57
58     public void setAmount(float amount) {
59         this.amount = amount;
60     }
61
62     public int getAuthCode() {
63         return authCode;
64     }
65
66     public void setAuthCode(int authCode) {
67         this.authCode = authCode;
68     }
69
70     public Date JavaDoc getSaleDateTime() {
71         return saleDateTime;
72     }
73
74     public void setSaleDateTime(Date JavaDoc saleDateTime) {
75         this.saleDateTime = saleDateTime;
76     }
77
78     public String JavaDoc getCcLastDigits() {
79         return ccLastDigits;
80     }
81
82     public void setCcLastDigits(String JavaDoc ccLastDigits) {
83         this.ccLastDigits = ccLastDigits;
84     }
85
86     public Collection JavaDoc getOrderLines() {
87         return orderLines;
88     }
89
90     public void setOrderLines(Collection JavaDoc orderLines) {
91         this.orderLines = orderLines;
92     }
93 }
94
Popular Tags