Source Code Cross Referenced for OrderPoBean.java in  » Database-ORM » ODAL » com » odal » petstore » persistence » gen » bean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » ODAL » com.odal.petstore.persistence.gen.bean 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
003:         */package com.odal.petstore.persistence.gen.bean;
004:
005:        import java.util.List;
006:        import java.util.ArrayList;
007:        import java.util.Date;
008:        import java.math.BigDecimal;
009:
010:        public class OrderPoBean implements  java.io.Serializable {
011:
012:            public OrderPoBean() {
013:            }
014:
015:            //
016:            // Basic object stuff:
017:            //
018:            public OrderPoBean(long orderId) {
019:                this ();
020:                setOrderId(orderId);
021:            }
022:
023:            private long orderId;
024:            private String userId;
025:            private Date orderDate;
026:            private String shipAddress1;
027:            private String shipAddress2;
028:            private String shipCity;
029:            private String shipState;
030:            private String shipZip;
031:            private String shipCountry;
032:            private String billAddress1;
033:            private String billAddress2;
034:            private String billCity;
035:            private String billState;
036:            private String billZip;
037:            private String billCountry;
038:            private String courier;
039:            private BigDecimal totalPrice;
040:            private String billToFirstName;
041:            private String billToLastName;
042:            private String shipToFirstName;
043:            private String shipToLastName;
044:            private String creditCard;
045:            private String expiryDate;
046:            private String cardType;
047:            private String locale;
048:
049:            //
050:            // orderId:
051:            //
052:            public long getOrderId() {
053:                return this .orderId;
054:            }
055:
056:            public void setOrderId(long orderId) {
057:                this .orderId = orderId;
058:            }
059:
060:            //
061:            // userId:
062:            //
063:            public String getUserId() {
064:                return this .userId;
065:            }
066:
067:            public void setUserId(String userId) {
068:                this .userId = userId;
069:            }
070:
071:            //
072:            // orderDate:
073:            //
074:            public Date getOrderDate() {
075:                return this .orderDate;
076:            }
077:
078:            public void setOrderDate(Date orderDate) {
079:                this .orderDate = orderDate;
080:            }
081:
082:            //
083:            // shipAddress1:
084:            //
085:            public String getShipAddress1() {
086:                return this .shipAddress1;
087:            }
088:
089:            public void setShipAddress1(String shipAddress1) {
090:                this .shipAddress1 = shipAddress1;
091:            }
092:
093:            //
094:            // shipAddress2:
095:            //
096:            public String getShipAddress2() {
097:                return this .shipAddress2;
098:            }
099:
100:            public void setShipAddress2(String shipAddress2) {
101:                this .shipAddress2 = shipAddress2;
102:            }
103:
104:            //
105:            // shipCity:
106:            //
107:            public String getShipCity() {
108:                return this .shipCity;
109:            }
110:
111:            public void setShipCity(String shipCity) {
112:                this .shipCity = shipCity;
113:            }
114:
115:            //
116:            // shipState:
117:            //
118:            public String getShipState() {
119:                return this .shipState;
120:            }
121:
122:            public void setShipState(String shipState) {
123:                this .shipState = shipState;
124:            }
125:
126:            //
127:            // shipZip:
128:            //
129:            public String getShipZip() {
130:                return this .shipZip;
131:            }
132:
133:            public void setShipZip(String shipZip) {
134:                this .shipZip = shipZip;
135:            }
136:
137:            //
138:            // shipCountry:
139:            //
140:            public String getShipCountry() {
141:                return this .shipCountry;
142:            }
143:
144:            public void setShipCountry(String shipCountry) {
145:                this .shipCountry = shipCountry;
146:            }
147:
148:            //
149:            // billAddress1:
150:            //
151:            public String getBillAddress1() {
152:                return this .billAddress1;
153:            }
154:
155:            public void setBillAddress1(String billAddress1) {
156:                this .billAddress1 = billAddress1;
157:            }
158:
159:            //
160:            // billAddress2:
161:            //
162:            public String getBillAddress2() {
163:                return this .billAddress2;
164:            }
165:
166:            public void setBillAddress2(String billAddress2) {
167:                this .billAddress2 = billAddress2;
168:            }
169:
170:            //
171:            // billCity:
172:            //
173:            public String getBillCity() {
174:                return this .billCity;
175:            }
176:
177:            public void setBillCity(String billCity) {
178:                this .billCity = billCity;
179:            }
180:
181:            //
182:            // billState:
183:            //
184:            public String getBillState() {
185:                return this .billState;
186:            }
187:
188:            public void setBillState(String billState) {
189:                this .billState = billState;
190:            }
191:
192:            //
193:            // billZip:
194:            //
195:            public String getBillZip() {
196:                return this .billZip;
197:            }
198:
199:            public void setBillZip(String billZip) {
200:                this .billZip = billZip;
201:            }
202:
203:            //
204:            // billCountry:
205:            //
206:            public String getBillCountry() {
207:                return this .billCountry;
208:            }
209:
210:            public void setBillCountry(String billCountry) {
211:                this .billCountry = billCountry;
212:            }
213:
214:            //
215:            // courier:
216:            //
217:            public String getCourier() {
218:                return this .courier;
219:            }
220:
221:            public void setCourier(String courier) {
222:                this .courier = courier;
223:            }
224:
225:            //
226:            // totalPrice:
227:            //
228:            public BigDecimal getTotalPrice() {
229:                return this .totalPrice;
230:            }
231:
232:            public void setTotalPrice(BigDecimal totalPrice) {
233:                this .totalPrice = totalPrice;
234:            }
235:
236:            //
237:            // billToFirstName:
238:            //
239:            public String getBillToFirstName() {
240:                return this .billToFirstName;
241:            }
242:
243:            public void setBillToFirstName(String billToFirstName) {
244:                this .billToFirstName = billToFirstName;
245:            }
246:
247:            //
248:            // billToLastName:
249:            //
250:            public String getBillToLastName() {
251:                return this .billToLastName;
252:            }
253:
254:            public void setBillToLastName(String billToLastName) {
255:                this .billToLastName = billToLastName;
256:            }
257:
258:            //
259:            // shipToFirstName:
260:            //
261:            public String getShipToFirstName() {
262:                return this .shipToFirstName;
263:            }
264:
265:            public void setShipToFirstName(String shipToFirstName) {
266:                this .shipToFirstName = shipToFirstName;
267:            }
268:
269:            //
270:            // shipToLastName:
271:            //
272:            public String getShipToLastName() {
273:                return this .shipToLastName;
274:            }
275:
276:            public void setShipToLastName(String shipToLastName) {
277:                this .shipToLastName = shipToLastName;
278:            }
279:
280:            //
281:            // creditCard:
282:            //
283:            public String getCreditCard() {
284:                return this .creditCard;
285:            }
286:
287:            public void setCreditCard(String creditCard) {
288:                this .creditCard = creditCard;
289:            }
290:
291:            //
292:            // expiryDate:
293:            //
294:            public String getExpiryDate() {
295:                return this .expiryDate;
296:            }
297:
298:            public void setExpiryDate(String expiryDate) {
299:                this .expiryDate = expiryDate;
300:            }
301:
302:            //
303:            // cardType:
304:            //
305:            public String getCardType() {
306:                return this .cardType;
307:            }
308:
309:            public void setCardType(String cardType) {
310:                this .cardType = cardType;
311:            }
312:
313:            //
314:            // locale:
315:            //
316:            public String getLocale() {
317:                return this .locale;
318:            }
319:
320:            public void setLocale(String locale) {
321:                this .locale = locale;
322:            }
323:
324:            //
325:            // Complex object part:
326:            //
327:            private List lineItems = new ArrayList();
328:
329:            public List getLineItems() {
330:                return lineItems;
331:            }
332:
333:            public void setLineItems(List lineItems) {
334:                if (lineItems == null) {
335:                    throw new IllegalArgumentException(
336:                            "Attempt to set collection to null");
337:                }
338:                this .lineItems = lineItems;
339:            }
340:
341:            public boolean addLineItem(LineItemPoBean lineItem) {
342:                return this .lineItems.add(lineItem);
343:            }
344:
345:            public boolean removeLineItem(LineItemPoBean lineItem) {
346:                if (this .lineItems == null) {
347:                    return false;
348:                }
349:                return this .lineItems.remove(lineItem);
350:            }
351:
352:            //
353:            // Compound object part: 
354:            //   
355:
356:            // Containment type - "is"
357:
358:            private Date timestamp;
359:            private String status;
360:
361:            //
362:            // timestamp:
363:            //
364:            public Date getTimestamp() {
365:                return this .timestamp;
366:            }
367:
368:            public void setTimestamp(Date timestamp) {
369:                this .timestamp = timestamp;
370:            }
371:
372:            //
373:            // status:
374:            //
375:            public String getStatus() {
376:                return this .status;
377:            }
378:
379:            public void setStatus(String status) {
380:                this .status = status;
381:            }
382:
383:            public String toString() {
384:                StringBuffer buffer = new StringBuffer();
385:                buffer.append("{ " + "class = \"").append(
386:                        this .getClass().getName()).append("\" fields = ")
387:                        .append("{ ");
388:
389:                buffer.append("orderId").append(" = \"").append(orderId)
390:                        .append("\" ");
391:                buffer.append("userId").append(" = \"").append(userId).append(
392:                        "\" ");
393:                buffer.append("orderDate").append(" = \"").append(orderDate)
394:                        .append("\" ");
395:                buffer.append("shipAddress1").append(" = \"").append(
396:                        shipAddress1).append("\" ");
397:                buffer.append("shipAddress2").append(" = \"").append(
398:                        shipAddress2).append("\" ");
399:                buffer.append("shipCity").append(" = \"").append(shipCity)
400:                        .append("\" ");
401:                buffer.append("shipState").append(" = \"").append(shipState)
402:                        .append("\" ");
403:                buffer.append("shipZip").append(" = \"").append(shipZip)
404:                        .append("\" ");
405:                buffer.append("shipCountry").append(" = \"")
406:                        .append(shipCountry).append("\" ");
407:                buffer.append("billAddress1").append(" = \"").append(
408:                        billAddress1).append("\" ");
409:                buffer.append("billAddress2").append(" = \"").append(
410:                        billAddress2).append("\" ");
411:                buffer.append("billCity").append(" = \"").append(billCity)
412:                        .append("\" ");
413:                buffer.append("billState").append(" = \"").append(billState)
414:                        .append("\" ");
415:                buffer.append("billZip").append(" = \"").append(billZip)
416:                        .append("\" ");
417:                buffer.append("billCountry").append(" = \"")
418:                        .append(billCountry).append("\" ");
419:                buffer.append("courier").append(" = \"").append(courier)
420:                        .append("\" ");
421:                buffer.append("totalPrice").append(" = \"").append(totalPrice)
422:                        .append("\" ");
423:                buffer.append("billToFirstName").append(" = \"").append(
424:                        billToFirstName).append("\" ");
425:                buffer.append("billToLastName").append(" = \"").append(
426:                        billToLastName).append("\" ");
427:                buffer.append("shipToFirstName").append(" = \"").append(
428:                        shipToFirstName).append("\" ");
429:                buffer.append("shipToLastName").append(" = \"").append(
430:                        shipToLastName).append("\" ");
431:                buffer.append("creditCard").append(" = \"").append(creditCard)
432:                        .append("\" ");
433:                buffer.append("expiryDate").append(" = \"").append(expiryDate)
434:                        .append("\" ");
435:                buffer.append("cardType").append(" = \"").append(cardType)
436:                        .append("\" ");
437:                buffer.append("locale").append(" = \"").append(locale).append(
438:                        "\" ");
439:                buffer.append("}}");
440:                return buffer.toString();
441:            }
442:
443:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.