Source Code Cross Referenced for AttachD.java in  » Database-ORM » openjpa » org » apache » openjpa » persistence » kernel » common » apps » 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 » openjpa » org.apache.openjpa.persistence.kernel.common.apps 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Licensed to the Apache Software Foundation (ASF) under one
003:         * or more contributor license agreements.  See the NOTICE file
004:         * distributed with this work for additional information
005:         * regarding copyright ownership.  The ASF licenses this file
006:         * to you under the Apache License, Version 2.0 (the
007:         * "License"); you may not use this file except in compliance
008:         * with the License.  You may obtain a copy of the License at
009:         *
010:         * http://www.apache.org/licenses/LICENSE-2.0
011:         *
012:         * Unless required by applicable law or agreed to in writing,
013:         * software distributed under the License is distributed on an
014:         * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015:         * KIND, either express or implied.  See the License for the
016:         * specific language governing permissions and limitations
017:         * under the License.    
018:         */
019:        package org.apache.openjpa.persistence.kernel.common.apps;
020:
021:        import java.io.Serializable;
022:        import java.math.BigInteger;
023:        import java.util.HashMap;
024:        import java.util.HashSet;
025:        import java.util.Map;
026:        import java.util.Set;
027:        import java.util.TreeMap;
028:        import javax.persistence.Basic;
029:        import javax.persistence.CascadeType;
030:        import javax.persistence.Column;
031:        import javax.persistence.Embedded;
032:        import javax.persistence.Entity;
033:        import javax.persistence.GeneratedValue;
034:        import javax.persistence.GenerationType;
035:        import javax.persistence.Id;
036:        import javax.persistence.ManyToMany;
037:        import javax.persistence.ManyToOne;
038:
039:        import org.apache.openjpa.persistence.jdbc.KeyColumn;
040:        import org.apache.openjpa.persistence.FetchAttribute;
041:        import org.apache.openjpa.persistence.FetchGroup;
042:        import org.apache.openjpa.persistence.FetchGroups;
043:        import org.apache.openjpa.persistence.PersistentMap;
044:        import org.apache.openjpa.persistence.jdbc.KeyColumn;
045:
046:        @Entity
047:        @FetchGroups({@FetchGroup(name="all",attributes={@FetchAttribute(name="bs",recursionDepth=0),@FetchAttribute(name="pcStringMap"),@FetchAttribute(name="bigIntegerPCMap",recursionDepth=0),@FetchAttribute(name="embeddedE",recursionDepth=0),@FetchAttribute(name="embeddedA",recursionDepth=0)})})
048:        public class AttachD implements  Serializable {
049:
050:            @Id
051:            @GeneratedValue(strategy=GenerationType.AUTO)
052:            @Column(name="D_ID")
053:            private int id;
054:
055:            private Object version;
056:
057:            @Basic
058:            private String dstr;
059:            @Basic
060:            private int dint;
061:            @Basic
062:            private double ddbl;
063:
064:            @ManyToOne(cascade={CascadeType.PERSIST,CascadeType.MERGE})
065:            private AttachA a;
066:
067:            @ManyToMany(mappedBy="ds",cascade={CascadeType.PERSIST,CascadeType.MERGE})
068:            private Set<AttachB> bs = new HashSet();
069:
070:            @PersistentMap(keyCascade={CascadeType.PERSIST,CascadeType.MERGE})
071:            @KeyColumn(name="strngmap")
072:            private Map<AttachA, String> pcStringMap = new HashMap();
073:
074:            @PersistentMap(elementCascade={CascadeType.PERSIST,CascadeType.MERGE})
075:            @KeyColumn(name="intmap")
076:            private TreeMap<BigInteger, AttachF> bigIntegerPCMap = new TreeMap<BigInteger, AttachF>();
077:
078:            @Embedded
079:            private AttachE embeddedE;
080:
081:            @Embedded
082:            private AttachA embeddedA;
083:
084:            public int getId() {
085:                return id;
086:            }
087:
088:            public void setDstr(String dstr) {
089:                this .dstr = dstr;
090:            }
091:
092:            public String getDstr() {
093:                return this .dstr;
094:            }
095:
096:            public void setDint(int dint) {
097:                this .dint = dint;
098:            }
099:
100:            public int getDint() {
101:                return this .dint;
102:            }
103:
104:            public void setDdbl(double ddbl) {
105:                this .ddbl = ddbl;
106:            }
107:
108:            public double getDdbl() {
109:                return this .ddbl;
110:            }
111:
112:            public AttachA getA() {
113:                return a;
114:            }
115:
116:            public void setA(AttachA a) {
117:                this .a = a;
118:            }
119:
120:            public void setBs(Set bs) {
121:                this .bs = bs;
122:            }
123:
124:            public Set getBs() {
125:                return this .bs;
126:            }
127:
128:            public void setPcStringMap(Map pcStringMap) {
129:                this .pcStringMap = pcStringMap;
130:            }
131:
132:            public Map getPcStringMap() {
133:                return this .pcStringMap;
134:            }
135:
136:            public void setBigIntegerPCMap(TreeMap bigIntegerPCMap) {
137:                this .bigIntegerPCMap = bigIntegerPCMap;
138:            }
139:
140:            public TreeMap getBigIntegerPCMap() {
141:                return this .bigIntegerPCMap;
142:            }
143:
144:            public void setEmbeddedE(AttachE embeddedE) {
145:                this .embeddedE = embeddedE;
146:            }
147:
148:            public AttachE getEmbeddedE() {
149:                return this .embeddedE;
150:            }
151:
152:            public void setEmbeddedA(AttachA embeddedA) {
153:                this .embeddedA = embeddedA;
154:            }
155:
156:            public AttachA getEmbeddedA() {
157:                return this .embeddedA;
158:            }
159:
160:            public Object getVersion() {
161:                return this.version;
162:            }
163:        }
w__ww_.j_a___v___a__2__s._c__o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.