01: /**
02: * Speedo: an implementation of JDO compliant personality on top of JORM generic
03: * I/O sub-system.
04: * Copyright (C) 2004 France Telecom R&D
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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: */package org.objectweb.speedo.pobjects.basic;
20:
21: import java.util.Collection;
22: import java.util.Date;
23:
24: /**
25: *
26: * @author S.Chassande-Barrioz
27: */
28: public class Order {
29: long id;
30: String userId;
31: float amount;
32: int authCode;
33: Date saleDateTime;
34: String ccLastDigits;
35: Collection orderLines;
36:
37: public Order(long id) {
38: this .id = id;
39: }
40:
41: public long getId() {
42: return id;
43: }
44:
45: public String getUserId() {
46: return userId;
47: }
48:
49: public void setUserId(String userId) {
50: this .userId = userId;
51: }
52:
53: public float getAmount() {
54: return amount;
55: }
56:
57: public void setAmount(float amount) {
58: this .amount = amount;
59: }
60:
61: public int getAuthCode() {
62: return authCode;
63: }
64:
65: public void setAuthCode(int authCode) {
66: this .authCode = authCode;
67: }
68:
69: public Date getSaleDateTime() {
70: return saleDateTime;
71: }
72:
73: public void setSaleDateTime(Date saleDateTime) {
74: this .saleDateTime = saleDateTime;
75: }
76:
77: public String getCcLastDigits() {
78: return ccLastDigits;
79: }
80:
81: public void setCcLastDigits(String ccLastDigits) {
82: this .ccLastDigits = ccLastDigits;
83: }
84:
85: public Collection getOrderLines() {
86: return orderLines;
87: }
88:
89: public void setOrderLines(Collection orderLines) {
90: this.orderLines = orderLines;
91: }
92: }
|