Source Code Cross Referenced for ShoppingOrderModelImpl.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » shopping » model » impl » 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 » Portal » liferay portal 4.4.2 » com.liferay.portlet.shopping.model.impl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /**
0002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
0003:         *
0004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
0005:         * of this software and associated documentation files (the "Software"), to deal
0006:         * in the Software without restriction, including without limitation the rights
0007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008:         * copies of the Software, and to permit persons to whom the Software is
0009:         * furnished to do so, subject to the following conditions:
0010:         *
0011:         * The above copyright notice and this permission notice shall be included in
0012:         * all copies or substantial portions of the Software.
0013:         *
0014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0020:         * SOFTWARE.
0021:         */package com.liferay.portlet.shopping.model.impl;
0022:
0023:        import com.liferay.portal.kernel.bean.ReadOnlyBeanHandler;
0024:        import com.liferay.portal.kernel.util.DateUtil;
0025:        import com.liferay.portal.kernel.util.GetterUtil;
0026:        import com.liferay.portal.model.impl.BaseModelImpl;
0027:        import com.liferay.portal.util.PropsUtil;
0028:
0029:        import com.liferay.portlet.shopping.model.ShoppingOrder;
0030:
0031:        import com.liferay.util.Html;
0032:
0033:        import java.io.Serializable;
0034:
0035:        import java.lang.reflect.Proxy;
0036:
0037:        import java.sql.Types;
0038:
0039:        import java.util.Date;
0040:
0041:        /**
0042:         * <a href="ShoppingOrderModelImpl.java.html"><b><i>View Source</i></b></a>
0043:         *
0044:         * <p>
0045:         * ServiceBuilder generated this class. Modifications in this class will be
0046:         * overwritten the next time is generated.
0047:         * </p>
0048:         *
0049:         * <p>
0050:         * This class is a model that represents the <code>ShoppingOrder</code> table
0051:         * in the database.
0052:         * </p>
0053:         *
0054:         * @author Brian Wing Shun Chan
0055:         *
0056:         * @see com.liferay.portlet.shopping.service.model.ShoppingOrder
0057:         * @see com.liferay.portlet.shopping.service.model.ShoppingOrderModel
0058:         * @see com.liferay.portlet.shopping.service.model.impl.ShoppingOrderImpl
0059:         *
0060:         */
0061:        public class ShoppingOrderModelImpl extends BaseModelImpl {
0062:            public static final String TABLE_NAME = "ShoppingOrder";
0063:            public static final Object[][] TABLE_COLUMNS = {
0064:                    { "orderId", new Integer(Types.BIGINT) },
0065:
0066:                    { "groupId", new Integer(Types.BIGINT) },
0067:
0068:                    { "companyId", new Integer(Types.BIGINT) },
0069:
0070:                    { "userId", new Integer(Types.BIGINT) },
0071:
0072:                    { "userName", new Integer(Types.VARCHAR) },
0073:
0074:                    { "createDate", new Integer(Types.TIMESTAMP) },
0075:
0076:                    { "modifiedDate", new Integer(Types.TIMESTAMP) },
0077:
0078:                    { "number_", new Integer(Types.VARCHAR) },
0079:
0080:                    { "tax", new Integer(Types.DOUBLE) },
0081:
0082:                    { "shipping", new Integer(Types.DOUBLE) },
0083:
0084:                    { "altShipping", new Integer(Types.VARCHAR) },
0085:
0086:                    { "requiresShipping", new Integer(Types.BOOLEAN) },
0087:
0088:                    { "insure", new Integer(Types.BOOLEAN) },
0089:
0090:                    { "insurance", new Integer(Types.DOUBLE) },
0091:
0092:                    { "couponCodes", new Integer(Types.VARCHAR) },
0093:
0094:                    { "couponDiscount", new Integer(Types.DOUBLE) },
0095:
0096:                    { "billingFirstName", new Integer(Types.VARCHAR) },
0097:
0098:                    { "billingLastName", new Integer(Types.VARCHAR) },
0099:
0100:                    { "billingEmailAddress", new Integer(Types.VARCHAR) },
0101:
0102:                    { "billingCompany", new Integer(Types.VARCHAR) },
0103:
0104:                    { "billingStreet", new Integer(Types.VARCHAR) },
0105:
0106:                    { "billingCity", new Integer(Types.VARCHAR) },
0107:
0108:                    { "billingState", new Integer(Types.VARCHAR) },
0109:
0110:                    { "billingZip", new Integer(Types.VARCHAR) },
0111:
0112:                    { "billingCountry", new Integer(Types.VARCHAR) },
0113:
0114:                    { "billingPhone", new Integer(Types.VARCHAR) },
0115:
0116:                    { "shipToBilling", new Integer(Types.BOOLEAN) },
0117:
0118:                    { "shippingFirstName", new Integer(Types.VARCHAR) },
0119:
0120:                    { "shippingLastName", new Integer(Types.VARCHAR) },
0121:
0122:                    { "shippingEmailAddress", new Integer(Types.VARCHAR) },
0123:
0124:                    { "shippingCompany", new Integer(Types.VARCHAR) },
0125:
0126:                    { "shippingStreet", new Integer(Types.VARCHAR) },
0127:
0128:                    { "shippingCity", new Integer(Types.VARCHAR) },
0129:
0130:                    { "shippingState", new Integer(Types.VARCHAR) },
0131:
0132:                    { "shippingZip", new Integer(Types.VARCHAR) },
0133:
0134:                    { "shippingCountry", new Integer(Types.VARCHAR) },
0135:
0136:                    { "shippingPhone", new Integer(Types.VARCHAR) },
0137:
0138:                    { "ccName", new Integer(Types.VARCHAR) },
0139:
0140:                    { "ccType", new Integer(Types.VARCHAR) },
0141:
0142:                    { "ccNumber", new Integer(Types.VARCHAR) },
0143:
0144:                    { "ccExpMonth", new Integer(Types.INTEGER) },
0145:
0146:                    { "ccExpYear", new Integer(Types.INTEGER) },
0147:
0148:                    { "ccVerNumber", new Integer(Types.VARCHAR) },
0149:
0150:                    { "comments", new Integer(Types.VARCHAR) },
0151:
0152:                    { "ppTxnId", new Integer(Types.VARCHAR) },
0153:
0154:                    { "ppPaymentStatus", new Integer(Types.VARCHAR) },
0155:
0156:                    { "ppPaymentGross", new Integer(Types.DOUBLE) },
0157:
0158:                    { "ppReceiverEmail", new Integer(Types.VARCHAR) },
0159:
0160:                    { "ppPayerEmail", new Integer(Types.VARCHAR) },
0161:
0162:                    { "sendOrderEmail", new Integer(Types.BOOLEAN) },
0163:
0164:                    { "sendShippingEmail", new Integer(Types.BOOLEAN) } };
0165:            public static final String TABLE_SQL_CREATE = "create table ShoppingOrder (orderId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,number_ VARCHAR(75) null,tax DOUBLE,shipping DOUBLE,altShipping VARCHAR(75) null,requiresShipping BOOLEAN,insure BOOLEAN,insurance DOUBLE,couponCodes VARCHAR(75) null,couponDiscount DOUBLE,billingFirstName VARCHAR(75) null,billingLastName VARCHAR(75) null,billingEmailAddress VARCHAR(75) null,billingCompany VARCHAR(75) null,billingStreet VARCHAR(75) null,billingCity VARCHAR(75) null,billingState VARCHAR(75) null,billingZip VARCHAR(75) null,billingCountry VARCHAR(75) null,billingPhone VARCHAR(75) null,shipToBilling BOOLEAN,shippingFirstName VARCHAR(75) null,shippingLastName VARCHAR(75) null,shippingEmailAddress VARCHAR(75) null,shippingCompany VARCHAR(75) null,shippingStreet VARCHAR(75) null,shippingCity VARCHAR(75) null,shippingState VARCHAR(75) null,shippingZip VARCHAR(75) null,shippingCountry VARCHAR(75) null,shippingPhone VARCHAR(75) null,ccName VARCHAR(75) null,ccType VARCHAR(75) null,ccNumber VARCHAR(75) null,ccExpMonth INTEGER,ccExpYear INTEGER,ccVerNumber VARCHAR(75) null,comments STRING null,ppTxnId VARCHAR(75) null,ppPaymentStatus VARCHAR(75) null,ppPaymentGross DOUBLE,ppReceiverEmail VARCHAR(75) null,ppPayerEmail VARCHAR(75) null,sendOrderEmail BOOLEAN,sendShippingEmail BOOLEAN)";
0166:            public static final String TABLE_SQL_DROP = "drop table ShoppingOrder";
0167:            public static final boolean CACHE_ENABLED = GetterUtil
0168:                    .getBoolean(
0169:                            PropsUtil
0170:                                    .get("value.object.finder.cache.enabled.com.liferay.portlet.shopping.model.ShoppingOrder"),
0171:                            true);
0172:            public static final long LOCK_EXPIRATION_TIME = GetterUtil
0173:                    .getLong(PropsUtil
0174:                            .get("lock.expiration.time.com.liferay.portlet.shopping.model.ShoppingOrder"));
0175:
0176:            public ShoppingOrderModelImpl() {
0177:            }
0178:
0179:            public long getPrimaryKey() {
0180:                return _orderId;
0181:            }
0182:
0183:            public void setPrimaryKey(long pk) {
0184:                setOrderId(pk);
0185:            }
0186:
0187:            public Serializable getPrimaryKeyObj() {
0188:                return new Long(_orderId);
0189:            }
0190:
0191:            public long getOrderId() {
0192:                return _orderId;
0193:            }
0194:
0195:            public void setOrderId(long orderId) {
0196:                if (orderId != _orderId) {
0197:                    _orderId = orderId;
0198:                }
0199:            }
0200:
0201:            public long getGroupId() {
0202:                return _groupId;
0203:            }
0204:
0205:            public void setGroupId(long groupId) {
0206:                if (groupId != _groupId) {
0207:                    _groupId = groupId;
0208:                }
0209:            }
0210:
0211:            public long getCompanyId() {
0212:                return _companyId;
0213:            }
0214:
0215:            public void setCompanyId(long companyId) {
0216:                if (companyId != _companyId) {
0217:                    _companyId = companyId;
0218:                }
0219:            }
0220:
0221:            public long getUserId() {
0222:                return _userId;
0223:            }
0224:
0225:            public void setUserId(long userId) {
0226:                if (userId != _userId) {
0227:                    _userId = userId;
0228:                }
0229:            }
0230:
0231:            public String getUserName() {
0232:                return GetterUtil.getString(_userName);
0233:            }
0234:
0235:            public void setUserName(String userName) {
0236:                if (((userName == null) && (_userName != null))
0237:                        || ((userName != null) && (_userName == null))
0238:                        || ((userName != null) && (_userName != null) && !userName
0239:                                .equals(_userName))) {
0240:                    _userName = userName;
0241:                }
0242:            }
0243:
0244:            public Date getCreateDate() {
0245:                return _createDate;
0246:            }
0247:
0248:            public void setCreateDate(Date createDate) {
0249:                if (((createDate == null) && (_createDate != null))
0250:                        || ((createDate != null) && (_createDate == null))
0251:                        || ((createDate != null) && (_createDate != null) && !createDate
0252:                                .equals(_createDate))) {
0253:                    _createDate = createDate;
0254:                }
0255:            }
0256:
0257:            public Date getModifiedDate() {
0258:                return _modifiedDate;
0259:            }
0260:
0261:            public void setModifiedDate(Date modifiedDate) {
0262:                if (((modifiedDate == null) && (_modifiedDate != null))
0263:                        || ((modifiedDate != null) && (_modifiedDate == null))
0264:                        || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate
0265:                                .equals(_modifiedDate))) {
0266:                    _modifiedDate = modifiedDate;
0267:                }
0268:            }
0269:
0270:            public String getNumber() {
0271:                return GetterUtil.getString(_number);
0272:            }
0273:
0274:            public void setNumber(String number) {
0275:                if (((number == null) && (_number != null))
0276:                        || ((number != null) && (_number == null))
0277:                        || ((number != null) && (_number != null) && !number
0278:                                .equals(_number))) {
0279:                    _number = number;
0280:                }
0281:            }
0282:
0283:            public double getTax() {
0284:                return _tax;
0285:            }
0286:
0287:            public void setTax(double tax) {
0288:                if (tax != _tax) {
0289:                    _tax = tax;
0290:                }
0291:            }
0292:
0293:            public double getShipping() {
0294:                return _shipping;
0295:            }
0296:
0297:            public void setShipping(double shipping) {
0298:                if (shipping != _shipping) {
0299:                    _shipping = shipping;
0300:                }
0301:            }
0302:
0303:            public String getAltShipping() {
0304:                return GetterUtil.getString(_altShipping);
0305:            }
0306:
0307:            public void setAltShipping(String altShipping) {
0308:                if (((altShipping == null) && (_altShipping != null))
0309:                        || ((altShipping != null) && (_altShipping == null))
0310:                        || ((altShipping != null) && (_altShipping != null) && !altShipping
0311:                                .equals(_altShipping))) {
0312:                    _altShipping = altShipping;
0313:                }
0314:            }
0315:
0316:            public boolean getRequiresShipping() {
0317:                return _requiresShipping;
0318:            }
0319:
0320:            public boolean isRequiresShipping() {
0321:                return _requiresShipping;
0322:            }
0323:
0324:            public void setRequiresShipping(boolean requiresShipping) {
0325:                if (requiresShipping != _requiresShipping) {
0326:                    _requiresShipping = requiresShipping;
0327:                }
0328:            }
0329:
0330:            public boolean getInsure() {
0331:                return _insure;
0332:            }
0333:
0334:            public boolean isInsure() {
0335:                return _insure;
0336:            }
0337:
0338:            public void setInsure(boolean insure) {
0339:                if (insure != _insure) {
0340:                    _insure = insure;
0341:                }
0342:            }
0343:
0344:            public double getInsurance() {
0345:                return _insurance;
0346:            }
0347:
0348:            public void setInsurance(double insurance) {
0349:                if (insurance != _insurance) {
0350:                    _insurance = insurance;
0351:                }
0352:            }
0353:
0354:            public String getCouponCodes() {
0355:                return GetterUtil.getString(_couponCodes);
0356:            }
0357:
0358:            public void setCouponCodes(String couponCodes) {
0359:                if (((couponCodes == null) && (_couponCodes != null))
0360:                        || ((couponCodes != null) && (_couponCodes == null))
0361:                        || ((couponCodes != null) && (_couponCodes != null) && !couponCodes
0362:                                .equals(_couponCodes))) {
0363:                    _couponCodes = couponCodes;
0364:                }
0365:            }
0366:
0367:            public double getCouponDiscount() {
0368:                return _couponDiscount;
0369:            }
0370:
0371:            public void setCouponDiscount(double couponDiscount) {
0372:                if (couponDiscount != _couponDiscount) {
0373:                    _couponDiscount = couponDiscount;
0374:                }
0375:            }
0376:
0377:            public String getBillingFirstName() {
0378:                return GetterUtil.getString(_billingFirstName);
0379:            }
0380:
0381:            public void setBillingFirstName(String billingFirstName) {
0382:                if (((billingFirstName == null) && (_billingFirstName != null))
0383:                        || ((billingFirstName != null) && (_billingFirstName == null))
0384:                        || ((billingFirstName != null)
0385:                                && (_billingFirstName != null) && !billingFirstName
0386:                                .equals(_billingFirstName))) {
0387:                    _billingFirstName = billingFirstName;
0388:                }
0389:            }
0390:
0391:            public String getBillingLastName() {
0392:                return GetterUtil.getString(_billingLastName);
0393:            }
0394:
0395:            public void setBillingLastName(String billingLastName) {
0396:                if (((billingLastName == null) && (_billingLastName != null))
0397:                        || ((billingLastName != null) && (_billingLastName == null))
0398:                        || ((billingLastName != null)
0399:                                && (_billingLastName != null) && !billingLastName
0400:                                .equals(_billingLastName))) {
0401:                    _billingLastName = billingLastName;
0402:                }
0403:            }
0404:
0405:            public String getBillingEmailAddress() {
0406:                return GetterUtil.getString(_billingEmailAddress);
0407:            }
0408:
0409:            public void setBillingEmailAddress(String billingEmailAddress) {
0410:                if (((billingEmailAddress == null) && (_billingEmailAddress != null))
0411:                        || ((billingEmailAddress != null) && (_billingEmailAddress == null))
0412:                        || ((billingEmailAddress != null)
0413:                                && (_billingEmailAddress != null) && !billingEmailAddress
0414:                                .equals(_billingEmailAddress))) {
0415:                    _billingEmailAddress = billingEmailAddress;
0416:                }
0417:            }
0418:
0419:            public String getBillingCompany() {
0420:                return GetterUtil.getString(_billingCompany);
0421:            }
0422:
0423:            public void setBillingCompany(String billingCompany) {
0424:                if (((billingCompany == null) && (_billingCompany != null))
0425:                        || ((billingCompany != null) && (_billingCompany == null))
0426:                        || ((billingCompany != null)
0427:                                && (_billingCompany != null) && !billingCompany
0428:                                .equals(_billingCompany))) {
0429:                    _billingCompany = billingCompany;
0430:                }
0431:            }
0432:
0433:            public String getBillingStreet() {
0434:                return GetterUtil.getString(_billingStreet);
0435:            }
0436:
0437:            public void setBillingStreet(String billingStreet) {
0438:                if (((billingStreet == null) && (_billingStreet != null))
0439:                        || ((billingStreet != null) && (_billingStreet == null))
0440:                        || ((billingStreet != null) && (_billingStreet != null) && !billingStreet
0441:                                .equals(_billingStreet))) {
0442:                    _billingStreet = billingStreet;
0443:                }
0444:            }
0445:
0446:            public String getBillingCity() {
0447:                return GetterUtil.getString(_billingCity);
0448:            }
0449:
0450:            public void setBillingCity(String billingCity) {
0451:                if (((billingCity == null) && (_billingCity != null))
0452:                        || ((billingCity != null) && (_billingCity == null))
0453:                        || ((billingCity != null) && (_billingCity != null) && !billingCity
0454:                                .equals(_billingCity))) {
0455:                    _billingCity = billingCity;
0456:                }
0457:            }
0458:
0459:            public String getBillingState() {
0460:                return GetterUtil.getString(_billingState);
0461:            }
0462:
0463:            public void setBillingState(String billingState) {
0464:                if (((billingState == null) && (_billingState != null))
0465:                        || ((billingState != null) && (_billingState == null))
0466:                        || ((billingState != null) && (_billingState != null) && !billingState
0467:                                .equals(_billingState))) {
0468:                    _billingState = billingState;
0469:                }
0470:            }
0471:
0472:            public String getBillingZip() {
0473:                return GetterUtil.getString(_billingZip);
0474:            }
0475:
0476:            public void setBillingZip(String billingZip) {
0477:                if (((billingZip == null) && (_billingZip != null))
0478:                        || ((billingZip != null) && (_billingZip == null))
0479:                        || ((billingZip != null) && (_billingZip != null) && !billingZip
0480:                                .equals(_billingZip))) {
0481:                    _billingZip = billingZip;
0482:                }
0483:            }
0484:
0485:            public String getBillingCountry() {
0486:                return GetterUtil.getString(_billingCountry);
0487:            }
0488:
0489:            public void setBillingCountry(String billingCountry) {
0490:                if (((billingCountry == null) && (_billingCountry != null))
0491:                        || ((billingCountry != null) && (_billingCountry == null))
0492:                        || ((billingCountry != null)
0493:                                && (_billingCountry != null) && !billingCountry
0494:                                .equals(_billingCountry))) {
0495:                    _billingCountry = billingCountry;
0496:                }
0497:            }
0498:
0499:            public String getBillingPhone() {
0500:                return GetterUtil.getString(_billingPhone);
0501:            }
0502:
0503:            public void setBillingPhone(String billingPhone) {
0504:                if (((billingPhone == null) && (_billingPhone != null))
0505:                        || ((billingPhone != null) && (_billingPhone == null))
0506:                        || ((billingPhone != null) && (_billingPhone != null) && !billingPhone
0507:                                .equals(_billingPhone))) {
0508:                    _billingPhone = billingPhone;
0509:                }
0510:            }
0511:
0512:            public boolean getShipToBilling() {
0513:                return _shipToBilling;
0514:            }
0515:
0516:            public boolean isShipToBilling() {
0517:                return _shipToBilling;
0518:            }
0519:
0520:            public void setShipToBilling(boolean shipToBilling) {
0521:                if (shipToBilling != _shipToBilling) {
0522:                    _shipToBilling = shipToBilling;
0523:                }
0524:            }
0525:
0526:            public String getShippingFirstName() {
0527:                return GetterUtil.getString(_shippingFirstName);
0528:            }
0529:
0530:            public void setShippingFirstName(String shippingFirstName) {
0531:                if (((shippingFirstName == null) && (_shippingFirstName != null))
0532:                        || ((shippingFirstName != null) && (_shippingFirstName == null))
0533:                        || ((shippingFirstName != null)
0534:                                && (_shippingFirstName != null) && !shippingFirstName
0535:                                .equals(_shippingFirstName))) {
0536:                    _shippingFirstName = shippingFirstName;
0537:                }
0538:            }
0539:
0540:            public String getShippingLastName() {
0541:                return GetterUtil.getString(_shippingLastName);
0542:            }
0543:
0544:            public void setShippingLastName(String shippingLastName) {
0545:                if (((shippingLastName == null) && (_shippingLastName != null))
0546:                        || ((shippingLastName != null) && (_shippingLastName == null))
0547:                        || ((shippingLastName != null)
0548:                                && (_shippingLastName != null) && !shippingLastName
0549:                                .equals(_shippingLastName))) {
0550:                    _shippingLastName = shippingLastName;
0551:                }
0552:            }
0553:
0554:            public String getShippingEmailAddress() {
0555:                return GetterUtil.getString(_shippingEmailAddress);
0556:            }
0557:
0558:            public void setShippingEmailAddress(String shippingEmailAddress) {
0559:                if (((shippingEmailAddress == null) && (_shippingEmailAddress != null))
0560:                        || ((shippingEmailAddress != null) && (_shippingEmailAddress == null))
0561:                        || ((shippingEmailAddress != null)
0562:                                && (_shippingEmailAddress != null) && !shippingEmailAddress
0563:                                .equals(_shippingEmailAddress))) {
0564:                    _shippingEmailAddress = shippingEmailAddress;
0565:                }
0566:            }
0567:
0568:            public String getShippingCompany() {
0569:                return GetterUtil.getString(_shippingCompany);
0570:            }
0571:
0572:            public void setShippingCompany(String shippingCompany) {
0573:                if (((shippingCompany == null) && (_shippingCompany != null))
0574:                        || ((shippingCompany != null) && (_shippingCompany == null))
0575:                        || ((shippingCompany != null)
0576:                                && (_shippingCompany != null) && !shippingCompany
0577:                                .equals(_shippingCompany))) {
0578:                    _shippingCompany = shippingCompany;
0579:                }
0580:            }
0581:
0582:            public String getShippingStreet() {
0583:                return GetterUtil.getString(_shippingStreet);
0584:            }
0585:
0586:            public void setShippingStreet(String shippingStreet) {
0587:                if (((shippingStreet == null) && (_shippingStreet != null))
0588:                        || ((shippingStreet != null) && (_shippingStreet == null))
0589:                        || ((shippingStreet != null)
0590:                                && (_shippingStreet != null) && !shippingStreet
0591:                                .equals(_shippingStreet))) {
0592:                    _shippingStreet = shippingStreet;
0593:                }
0594:            }
0595:
0596:            public String getShippingCity() {
0597:                return GetterUtil.getString(_shippingCity);
0598:            }
0599:
0600:            public void setShippingCity(String shippingCity) {
0601:                if (((shippingCity == null) && (_shippingCity != null))
0602:                        || ((shippingCity != null) && (_shippingCity == null))
0603:                        || ((shippingCity != null) && (_shippingCity != null) && !shippingCity
0604:                                .equals(_shippingCity))) {
0605:                    _shippingCity = shippingCity;
0606:                }
0607:            }
0608:
0609:            public String getShippingState() {
0610:                return GetterUtil.getString(_shippingState);
0611:            }
0612:
0613:            public void setShippingState(String shippingState) {
0614:                if (((shippingState == null) && (_shippingState != null))
0615:                        || ((shippingState != null) && (_shippingState == null))
0616:                        || ((shippingState != null) && (_shippingState != null) && !shippingState
0617:                                .equals(_shippingState))) {
0618:                    _shippingState = shippingState;
0619:                }
0620:            }
0621:
0622:            public String getShippingZip() {
0623:                return GetterUtil.getString(_shippingZip);
0624:            }
0625:
0626:            public void setShippingZip(String shippingZip) {
0627:                if (((shippingZip == null) && (_shippingZip != null))
0628:                        || ((shippingZip != null) && (_shippingZip == null))
0629:                        || ((shippingZip != null) && (_shippingZip != null) && !shippingZip
0630:                                .equals(_shippingZip))) {
0631:                    _shippingZip = shippingZip;
0632:                }
0633:            }
0634:
0635:            public String getShippingCountry() {
0636:                return GetterUtil.getString(_shippingCountry);
0637:            }
0638:
0639:            public void setShippingCountry(String shippingCountry) {
0640:                if (((shippingCountry == null) && (_shippingCountry != null))
0641:                        || ((shippingCountry != null) && (_shippingCountry == null))
0642:                        || ((shippingCountry != null)
0643:                                && (_shippingCountry != null) && !shippingCountry
0644:                                .equals(_shippingCountry))) {
0645:                    _shippingCountry = shippingCountry;
0646:                }
0647:            }
0648:
0649:            public String getShippingPhone() {
0650:                return GetterUtil.getString(_shippingPhone);
0651:            }
0652:
0653:            public void setShippingPhone(String shippingPhone) {
0654:                if (((shippingPhone == null) && (_shippingPhone != null))
0655:                        || ((shippingPhone != null) && (_shippingPhone == null))
0656:                        || ((shippingPhone != null) && (_shippingPhone != null) && !shippingPhone
0657:                                .equals(_shippingPhone))) {
0658:                    _shippingPhone = shippingPhone;
0659:                }
0660:            }
0661:
0662:            public String getCcName() {
0663:                return GetterUtil.getString(_ccName);
0664:            }
0665:
0666:            public void setCcName(String ccName) {
0667:                if (((ccName == null) && (_ccName != null))
0668:                        || ((ccName != null) && (_ccName == null))
0669:                        || ((ccName != null) && (_ccName != null) && !ccName
0670:                                .equals(_ccName))) {
0671:                    _ccName = ccName;
0672:                }
0673:            }
0674:
0675:            public String getCcType() {
0676:                return GetterUtil.getString(_ccType);
0677:            }
0678:
0679:            public void setCcType(String ccType) {
0680:                if (((ccType == null) && (_ccType != null))
0681:                        || ((ccType != null) && (_ccType == null))
0682:                        || ((ccType != null) && (_ccType != null) && !ccType
0683:                                .equals(_ccType))) {
0684:                    _ccType = ccType;
0685:                }
0686:            }
0687:
0688:            public String getCcNumber() {
0689:                return GetterUtil.getString(_ccNumber);
0690:            }
0691:
0692:            public void setCcNumber(String ccNumber) {
0693:                if (((ccNumber == null) && (_ccNumber != null))
0694:                        || ((ccNumber != null) && (_ccNumber == null))
0695:                        || ((ccNumber != null) && (_ccNumber != null) && !ccNumber
0696:                                .equals(_ccNumber))) {
0697:                    _ccNumber = ccNumber;
0698:                }
0699:            }
0700:
0701:            public int getCcExpMonth() {
0702:                return _ccExpMonth;
0703:            }
0704:
0705:            public void setCcExpMonth(int ccExpMonth) {
0706:                if (ccExpMonth != _ccExpMonth) {
0707:                    _ccExpMonth = ccExpMonth;
0708:                }
0709:            }
0710:
0711:            public int getCcExpYear() {
0712:                return _ccExpYear;
0713:            }
0714:
0715:            public void setCcExpYear(int ccExpYear) {
0716:                if (ccExpYear != _ccExpYear) {
0717:                    _ccExpYear = ccExpYear;
0718:                }
0719:            }
0720:
0721:            public String getCcVerNumber() {
0722:                return GetterUtil.getString(_ccVerNumber);
0723:            }
0724:
0725:            public void setCcVerNumber(String ccVerNumber) {
0726:                if (((ccVerNumber == null) && (_ccVerNumber != null))
0727:                        || ((ccVerNumber != null) && (_ccVerNumber == null))
0728:                        || ((ccVerNumber != null) && (_ccVerNumber != null) && !ccVerNumber
0729:                                .equals(_ccVerNumber))) {
0730:                    _ccVerNumber = ccVerNumber;
0731:                }
0732:            }
0733:
0734:            public String getComments() {
0735:                return GetterUtil.getString(_comments);
0736:            }
0737:
0738:            public void setComments(String comments) {
0739:                if (((comments == null) && (_comments != null))
0740:                        || ((comments != null) && (_comments == null))
0741:                        || ((comments != null) && (_comments != null) && !comments
0742:                                .equals(_comments))) {
0743:                    _comments = comments;
0744:                }
0745:            }
0746:
0747:            public String getPpTxnId() {
0748:                return GetterUtil.getString(_ppTxnId);
0749:            }
0750:
0751:            public void setPpTxnId(String ppTxnId) {
0752:                if (((ppTxnId == null) && (_ppTxnId != null))
0753:                        || ((ppTxnId != null) && (_ppTxnId == null))
0754:                        || ((ppTxnId != null) && (_ppTxnId != null) && !ppTxnId
0755:                                .equals(_ppTxnId))) {
0756:                    _ppTxnId = ppTxnId;
0757:                }
0758:            }
0759:
0760:            public String getPpPaymentStatus() {
0761:                return GetterUtil.getString(_ppPaymentStatus);
0762:            }
0763:
0764:            public void setPpPaymentStatus(String ppPaymentStatus) {
0765:                if (((ppPaymentStatus == null) && (_ppPaymentStatus != null))
0766:                        || ((ppPaymentStatus != null) && (_ppPaymentStatus == null))
0767:                        || ((ppPaymentStatus != null)
0768:                                && (_ppPaymentStatus != null) && !ppPaymentStatus
0769:                                .equals(_ppPaymentStatus))) {
0770:                    _ppPaymentStatus = ppPaymentStatus;
0771:                }
0772:            }
0773:
0774:            public double getPpPaymentGross() {
0775:                return _ppPaymentGross;
0776:            }
0777:
0778:            public void setPpPaymentGross(double ppPaymentGross) {
0779:                if (ppPaymentGross != _ppPaymentGross) {
0780:                    _ppPaymentGross = ppPaymentGross;
0781:                }
0782:            }
0783:
0784:            public String getPpReceiverEmail() {
0785:                return GetterUtil.getString(_ppReceiverEmail);
0786:            }
0787:
0788:            public void setPpReceiverEmail(String ppReceiverEmail) {
0789:                if (((ppReceiverEmail == null) && (_ppReceiverEmail != null))
0790:                        || ((ppReceiverEmail != null) && (_ppReceiverEmail == null))
0791:                        || ((ppReceiverEmail != null)
0792:                                && (_ppReceiverEmail != null) && !ppReceiverEmail
0793:                                .equals(_ppReceiverEmail))) {
0794:                    _ppReceiverEmail = ppReceiverEmail;
0795:                }
0796:            }
0797:
0798:            public String getPpPayerEmail() {
0799:                return GetterUtil.getString(_ppPayerEmail);
0800:            }
0801:
0802:            public void setPpPayerEmail(String ppPayerEmail) {
0803:                if (((ppPayerEmail == null) && (_ppPayerEmail != null))
0804:                        || ((ppPayerEmail != null) && (_ppPayerEmail == null))
0805:                        || ((ppPayerEmail != null) && (_ppPayerEmail != null) && !ppPayerEmail
0806:                                .equals(_ppPayerEmail))) {
0807:                    _ppPayerEmail = ppPayerEmail;
0808:                }
0809:            }
0810:
0811:            public boolean getSendOrderEmail() {
0812:                return _sendOrderEmail;
0813:            }
0814:
0815:            public boolean isSendOrderEmail() {
0816:                return _sendOrderEmail;
0817:            }
0818:
0819:            public void setSendOrderEmail(boolean sendOrderEmail) {
0820:                if (sendOrderEmail != _sendOrderEmail) {
0821:                    _sendOrderEmail = sendOrderEmail;
0822:                }
0823:            }
0824:
0825:            public boolean getSendShippingEmail() {
0826:                return _sendShippingEmail;
0827:            }
0828:
0829:            public boolean isSendShippingEmail() {
0830:                return _sendShippingEmail;
0831:            }
0832:
0833:            public void setSendShippingEmail(boolean sendShippingEmail) {
0834:                if (sendShippingEmail != _sendShippingEmail) {
0835:                    _sendShippingEmail = sendShippingEmail;
0836:                }
0837:            }
0838:
0839:            public ShoppingOrder toEscapedModel() {
0840:                if (isEscapedModel()) {
0841:                    return (ShoppingOrder) this ;
0842:                } else {
0843:                    ShoppingOrder model = new ShoppingOrderImpl();
0844:
0845:                    model.setEscapedModel(true);
0846:
0847:                    model.setOrderId(getOrderId());
0848:                    model.setGroupId(getGroupId());
0849:                    model.setCompanyId(getCompanyId());
0850:                    model.setUserId(getUserId());
0851:                    model.setUserName(Html.escape(getUserName()));
0852:                    model.setCreateDate(getCreateDate());
0853:                    model.setModifiedDate(getModifiedDate());
0854:                    model.setNumber(Html.escape(getNumber()));
0855:                    model.setTax(getTax());
0856:                    model.setShipping(getShipping());
0857:                    model.setAltShipping(Html.escape(getAltShipping()));
0858:                    model.setRequiresShipping(getRequiresShipping());
0859:                    model.setInsure(getInsure());
0860:                    model.setInsurance(getInsurance());
0861:                    model.setCouponCodes(Html.escape(getCouponCodes()));
0862:                    model.setCouponDiscount(getCouponDiscount());
0863:                    model.setBillingFirstName(Html
0864:                            .escape(getBillingFirstName()));
0865:                    model.setBillingLastName(Html.escape(getBillingLastName()));
0866:                    model.setBillingEmailAddress(Html
0867:                            .escape(getBillingEmailAddress()));
0868:                    model.setBillingCompany(Html.escape(getBillingCompany()));
0869:                    model.setBillingStreet(Html.escape(getBillingStreet()));
0870:                    model.setBillingCity(Html.escape(getBillingCity()));
0871:                    model.setBillingState(Html.escape(getBillingState()));
0872:                    model.setBillingZip(Html.escape(getBillingZip()));
0873:                    model.setBillingCountry(Html.escape(getBillingCountry()));
0874:                    model.setBillingPhone(Html.escape(getBillingPhone()));
0875:                    model.setShipToBilling(getShipToBilling());
0876:                    model.setShippingFirstName(Html
0877:                            .escape(getShippingFirstName()));
0878:                    model.setShippingLastName(Html
0879:                            .escape(getShippingLastName()));
0880:                    model.setShippingEmailAddress(Html
0881:                            .escape(getShippingEmailAddress()));
0882:                    model.setShippingCompany(Html.escape(getShippingCompany()));
0883:                    model.setShippingStreet(Html.escape(getShippingStreet()));
0884:                    model.setShippingCity(Html.escape(getShippingCity()));
0885:                    model.setShippingState(Html.escape(getShippingState()));
0886:                    model.setShippingZip(Html.escape(getShippingZip()));
0887:                    model.setShippingCountry(Html.escape(getShippingCountry()));
0888:                    model.setShippingPhone(Html.escape(getShippingPhone()));
0889:                    model.setCcName(Html.escape(getCcName()));
0890:                    model.setCcType(Html.escape(getCcType()));
0891:                    model.setCcNumber(Html.escape(getCcNumber()));
0892:                    model.setCcExpMonth(getCcExpMonth());
0893:                    model.setCcExpYear(getCcExpYear());
0894:                    model.setCcVerNumber(Html.escape(getCcVerNumber()));
0895:                    model.setComments(Html.escape(getComments()));
0896:                    model.setPpTxnId(Html.escape(getPpTxnId()));
0897:                    model.setPpPaymentStatus(Html.escape(getPpPaymentStatus()));
0898:                    model.setPpPaymentGross(getPpPaymentGross());
0899:                    model.setPpReceiverEmail(Html.escape(getPpReceiverEmail()));
0900:                    model.setPpPayerEmail(Html.escape(getPpPayerEmail()));
0901:                    model.setSendOrderEmail(getSendOrderEmail());
0902:                    model.setSendShippingEmail(getSendShippingEmail());
0903:
0904:                    model = (ShoppingOrder) Proxy.newProxyInstance(
0905:                            ShoppingOrder.class.getClassLoader(),
0906:                            new Class[] { ShoppingOrder.class },
0907:                            new ReadOnlyBeanHandler(model));
0908:
0909:                    return model;
0910:                }
0911:            }
0912:
0913:            public Object clone() {
0914:                ShoppingOrderImpl clone = new ShoppingOrderImpl();
0915:
0916:                clone.setOrderId(getOrderId());
0917:                clone.setGroupId(getGroupId());
0918:                clone.setCompanyId(getCompanyId());
0919:                clone.setUserId(getUserId());
0920:                clone.setUserName(getUserName());
0921:                clone.setCreateDate(getCreateDate());
0922:                clone.setModifiedDate(getModifiedDate());
0923:                clone.setNumber(getNumber());
0924:                clone.setTax(getTax());
0925:                clone.setShipping(getShipping());
0926:                clone.setAltShipping(getAltShipping());
0927:                clone.setRequiresShipping(getRequiresShipping());
0928:                clone.setInsure(getInsure());
0929:                clone.setInsurance(getInsurance());
0930:                clone.setCouponCodes(getCouponCodes());
0931:                clone.setCouponDiscount(getCouponDiscount());
0932:                clone.setBillingFirstName(getBillingFirstName());
0933:                clone.setBillingLastName(getBillingLastName());
0934:                clone.setBillingEmailAddress(getBillingEmailAddress());
0935:                clone.setBillingCompany(getBillingCompany());
0936:                clone.setBillingStreet(getBillingStreet());
0937:                clone.setBillingCity(getBillingCity());
0938:                clone.setBillingState(getBillingState());
0939:                clone.setBillingZip(getBillingZip());
0940:                clone.setBillingCountry(getBillingCountry());
0941:                clone.setBillingPhone(getBillingPhone());
0942:                clone.setShipToBilling(getShipToBilling());
0943:                clone.setShippingFirstName(getShippingFirstName());
0944:                clone.setShippingLastName(getShippingLastName());
0945:                clone.setShippingEmailAddress(getShippingEmailAddress());
0946:                clone.setShippingCompany(getShippingCompany());
0947:                clone.setShippingStreet(getShippingStreet());
0948:                clone.setShippingCity(getShippingCity());
0949:                clone.setShippingState(getShippingState());
0950:                clone.setShippingZip(getShippingZip());
0951:                clone.setShippingCountry(getShippingCountry());
0952:                clone.setShippingPhone(getShippingPhone());
0953:                clone.setCcName(getCcName());
0954:                clone.setCcType(getCcType());
0955:                clone.setCcNumber(getCcNumber());
0956:                clone.setCcExpMonth(getCcExpMonth());
0957:                clone.setCcExpYear(getCcExpYear());
0958:                clone.setCcVerNumber(getCcVerNumber());
0959:                clone.setComments(getComments());
0960:                clone.setPpTxnId(getPpTxnId());
0961:                clone.setPpPaymentStatus(getPpPaymentStatus());
0962:                clone.setPpPaymentGross(getPpPaymentGross());
0963:                clone.setPpReceiverEmail(getPpReceiverEmail());
0964:                clone.setPpPayerEmail(getPpPayerEmail());
0965:                clone.setSendOrderEmail(getSendOrderEmail());
0966:                clone.setSendShippingEmail(getSendShippingEmail());
0967:
0968:                return clone;
0969:            }
0970:
0971:            public int compareTo(Object obj) {
0972:                if (obj == null) {
0973:                    return -1;
0974:                }
0975:
0976:                ShoppingOrderImpl shoppingOrder = (ShoppingOrderImpl) obj;
0977:
0978:                int value = 0;
0979:
0980:                value = DateUtil.compareTo(getCreateDate(), shoppingOrder
0981:                        .getCreateDate());
0982:
0983:                value = value * -1;
0984:
0985:                if (value != 0) {
0986:                    return value;
0987:                }
0988:
0989:                return 0;
0990:            }
0991:
0992:            public boolean equals(Object obj) {
0993:                if (obj == null) {
0994:                    return false;
0995:                }
0996:
0997:                ShoppingOrderImpl shoppingOrder = null;
0998:
0999:                try {
1000:                    shoppingOrder = (ShoppingOrderImpl) obj;
1001:                } catch (ClassCastException cce) {
1002:                    return false;
1003:                }
1004:
1005:                long pk = shoppingOrder.getPrimaryKey();
1006:
1007:                if (getPrimaryKey() == pk) {
1008:                    return true;
1009:                } else {
1010:                    return false;
1011:                }
1012:            }
1013:
1014:            public int hashCode() {
1015:                return (int) getPrimaryKey();
1016:            }
1017:
1018:            private long _orderId;
1019:            private long _groupId;
1020:            private long _companyId;
1021:            private long _userId;
1022:            private String _userName;
1023:            private Date _createDate;
1024:            private Date _modifiedDate;
1025:            private String _number;
1026:            private double _tax;
1027:            private double _shipping;
1028:            private String _altShipping;
1029:            private boolean _requiresShipping;
1030:            private boolean _insure;
1031:            private double _insurance;
1032:            private String _couponCodes;
1033:            private double _couponDiscount;
1034:            private String _billingFirstName;
1035:            private String _billingLastName;
1036:            private String _billingEmailAddress;
1037:            private String _billingCompany;
1038:            private String _billingStreet;
1039:            private String _billingCity;
1040:            private String _billingState;
1041:            private String _billingZip;
1042:            private String _billingCountry;
1043:            private String _billingPhone;
1044:            private boolean _shipToBilling;
1045:            private String _shippingFirstName;
1046:            private String _shippingLastName;
1047:            private String _shippingEmailAddress;
1048:            private String _shippingCompany;
1049:            private String _shippingStreet;
1050:            private String _shippingCity;
1051:            private String _shippingState;
1052:            private String _shippingZip;
1053:            private String _shippingCountry;
1054:            private String _shippingPhone;
1055:            private String _ccName;
1056:            private String _ccType;
1057:            private String _ccNumber;
1058:            private int _ccExpMonth;
1059:            private int _ccExpYear;
1060:            private String _ccVerNumber;
1061:            private String _comments;
1062:            private String _ppTxnId;
1063:            private String _ppPaymentStatus;
1064:            private double _ppPaymentGross;
1065:            private String _ppReceiverEmail;
1066:            private String _ppPayerEmail;
1067:            private boolean _sendOrderEmail;
1068:            private boolean _sendShippingEmail;
1069:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.