Source Code Cross Referenced for CpxCustomerPO.java in  » Database-ORM » ODAL » com » completex » objective » persistency » examples » ex004 » cpxpos » 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.completex.objective.persistency.examples.ex004.cpxpos 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
003:         */package com.completex.objective.persistency.examples.ex004.cpxpos;
004:
005:        import com.completex.objective.components.persistency.*;
006:        import java.sql.SQLException;
007:
008:        public class CpxCustomerPO
009:                extends
010:                com.completex.objective.persistency.examples.ex004.domain.Customer
011:                implements  java.io.Externalizable {
012:
013:            public CpxCustomerPO() {
014:            }
015:
016:            public CpxCustomerPO(Long customerId) {
017:                super (customerId);
018:            }
019:
020:            //
021:            // Complex object part:
022:            //
023:            public static final String CPX_CHILD_CONTACT = "contact";
024:            private com.completex.objective.persistency.examples.ex004.domain.Contact contact;
025:
026:            protected static final int CPX_INDEX_CONTACT = 0;
027:
028:            public boolean complex() {
029:                return true;
030:            }
031:
032:            protected Link[] links(QueryFactory queryFactory) {
033:                try {
034:                    Link[] links = new Link[1];
035:                    Query query;
036:                    Link link;
037:                    query = queryFactory
038:                            .newQuery((PersistentObject) cpxFactoryContact());
039:                    link = new ChainedLink(
040:                            query,
041:                            new int[] { CpxCustomerPO.ICOL_CONTACT_ID, },
042:                            new int[] { com.completex.objective.persistency.examples.ex004.domain.Contact.ICOL_CONTACT_ID, },
043:                            CPX_CHILD_CONTACT);
044:                    link.setLazyRetrieval(true);
045:                    link.setCascadeInsert(true);
046:                    link.setCascadeUpdate(true);
047:                    link.setCascadeDelete(true);
048:                    link.setInsertBeforeParent(true);
049:                    links[CPX_INDEX_CONTACT] = link;
050:                    return links;
051:                } catch (Exception e) {
052:                    throw new OdalRuntimePersistencyException(e);
053:                }
054:            }
055:
056:            /**
057:             *
058:             * @return Child factory
059:             */
060:            protected com.completex.objective.persistency.examples.ex004.domain.Contact cpxFactoryContact() {
061:                return new com.completex.objective.persistency.examples.ex004.domain.Contact();
062:            }
063:
064:            public com.completex.objective.persistency.examples.ex004.domain.Contact getContact() {
065:                return (this .contact = (com.completex.objective.persistency.examples.ex004.domain.Contact) getFirstChildObject(
066:                        CPX_CHILD_CONTACT, this .contact));
067:            }
068:
069:            public com.completex.objective.persistency.examples.ex004.domain.Contact _getContact() {
070:                return (this .contact = (com.completex.objective.persistency.examples.ex004.domain.Contact) getFirstChildObjectStraight(
071:                        CPX_CHILD_CONTACT, this .contact));
072:            }
073:
074:            public void setContact(
075:                    com.completex.objective.persistency.examples.ex004.domain.Contact contact) {
076:                this .contact = (com.completex.objective.persistency.examples.ex004.domain.Contact) setChildObjectSafe(
077:                        CPX_CHILD_CONTACT, contact);
078:            }
079:
080:            protected void doUnflatten() {
081:                unflatten(toLink(), CPX_CHILD_CONTACT,
082:                        (PersistentObject) contact);
083:            }
084:
085:            protected void doFlatten() {
086:                flatten((PersistentObject) contact);
087:            }
088:
089:            protected void doPreFlatten() {
090:                _getContact();
091:            }
092:
093:            //
094:            // Compound object part: 
095:            //        
096:
097:            public boolean compound() {
098:                return false;
099:            }
100:
101:        }
w___w__w.___ja___va___2__s.___co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.