Source Code Cross Referenced for EjbRelationshipRoleType.java in  » J2EE » openejb3 » org » apache » openejb » jee » oejb2 » 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 » J2EE » openejb3 » org.apache.openejb.jee.oejb2 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Licensed to the Apache Software Foundation (ASF) under one or more
003:         * contributor license agreements.  See the NOTICE file distributed with
004:         * this work for additional information regarding copyright ownership.
005:         * The ASF licenses this file to You under the Apache License, Version 2.0
006:         * (the "License"); you may not use this file except in compliance with
007:         * the License.  You may obtain a copy of the License at
008:         *
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         * Unless required by applicable law or agreed to in writing, software
012:         * distributed under the License is distributed on an "AS IS" BASIS,
013:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         * See the License for the specific language governing permissions and
015:         * limitations under the License.
016:         */package org.apache.openejb.jee.oejb2;
017:
018:        import java.util.ArrayList;
019:        import java.util.List;
020:        import javax.xml.bind.annotation.XmlAccessType;
021:        import javax.xml.bind.annotation.XmlAccessorType;
022:        import javax.xml.bind.annotation.XmlElement;
023:        import javax.xml.bind.annotation.XmlType;
024:
025:        /**
026:         * <p>Java class for ejb-relationship-roleType complex type.
027:         * 
028:         * <p>The following schema fragment specifies the expected content contained within this class.
029:         * 
030:         * <pre>
031:         * &lt;complexType name="ejb-relationship-roleType">
032:         *   &lt;complexContent>
033:         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034:         *       &lt;sequence>
035:         *         &lt;element name="ejb-relationship-role-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
036:         *         &lt;element name="relationship-role-source">
037:         *           &lt;complexType>
038:         *             &lt;complexContent>
039:         *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
040:         *                 &lt;sequence>
041:         *                   &lt;element name="ejb-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
042:         *                 &lt;/sequence>
043:         *               &lt;/restriction>
044:         *             &lt;/complexContent>
045:         *           &lt;/complexType>
046:         *         &lt;/element>
047:         *         &lt;element name="cmr-field" minOccurs="0">
048:         *           &lt;complexType>
049:         *             &lt;complexContent>
050:         *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
051:         *                 &lt;sequence>
052:         *                   &lt;element name="cmr-field-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
053:         *                 &lt;/sequence>
054:         *               &lt;/restriction>
055:         *             &lt;/complexContent>
056:         *           &lt;/complexType>
057:         *         &lt;/element>
058:         *         &lt;element name="foreign-key-column-on-source" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
059:         *         &lt;element name="role-mapping">
060:         *           &lt;complexType>
061:         *             &lt;complexContent>
062:         *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
063:         *                 &lt;sequence>
064:         *                   &lt;element name="cmr-field-mapping" maxOccurs="unbounded">
065:         *                     &lt;complexType>
066:         *                       &lt;complexContent>
067:         *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
068:         *                           &lt;sequence>
069:         *                             &lt;element name="key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
070:         *                             &lt;element name="foreign-key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
071:         *                           &lt;/sequence>
072:         *                         &lt;/restriction>
073:         *                       &lt;/complexContent>
074:         *                     &lt;/complexType>
075:         *                   &lt;/element>
076:         *                 &lt;/sequence>
077:         *               &lt;/restriction>
078:         *             &lt;/complexContent>
079:         *           &lt;/complexType>
080:         *         &lt;/element>
081:         *       &lt;/sequence>
082:         *     &lt;/restriction>
083:         *   &lt;/complexContent>
084:         * &lt;/complexType>
085:         * </pre>
086:         * 
087:         * 
088:         */
089:        @XmlAccessorType(XmlAccessType.FIELD)
090:        @XmlType(name="ejb-relationship-roleType",propOrder={"ejbRelationshipRoleName","relationshipRoleSource","cmrField","foreignKeyColumnOnSource","roleMapping"})
091:        public class EjbRelationshipRoleType {
092:
093:            @XmlElement(name="ejb-relationship-role-name")
094:            protected String ejbRelationshipRoleName;
095:            @XmlElement(name="relationship-role-source",required=true)
096:            protected EjbRelationshipRoleType.RelationshipRoleSource relationshipRoleSource;
097:            @XmlElement(name="cmr-field")
098:            protected EjbRelationshipRoleType.CmrField cmrField;
099:            @XmlElement(name="foreign-key-column-on-source")
100:            protected EmptyType foreignKeyColumnOnSource;
101:            @XmlElement(name="role-mapping",required=true)
102:            protected EjbRelationshipRoleType.RoleMapping roleMapping;
103:
104:            /**
105:             * Gets the value of the ejbRelationshipRoleName property.
106:             * 
107:             * @return
108:             *     possible object is
109:             *     {@link String }
110:             *     
111:             */
112:            public String getEjbRelationshipRoleName() {
113:                return ejbRelationshipRoleName;
114:            }
115:
116:            /**
117:             * Sets the value of the ejbRelationshipRoleName property.
118:             * 
119:             * @param value
120:             *     allowed object is
121:             *     {@link String }
122:             *     
123:             */
124:            public void setEjbRelationshipRoleName(String value) {
125:                this .ejbRelationshipRoleName = value;
126:            }
127:
128:            /**
129:             * Gets the value of the relationshipRoleSource property.
130:             * 
131:             * @return
132:             *     possible object is
133:             *     {@link EjbRelationshipRoleType.RelationshipRoleSource }
134:             *     
135:             */
136:            public EjbRelationshipRoleType.RelationshipRoleSource getRelationshipRoleSource() {
137:                return relationshipRoleSource;
138:            }
139:
140:            /**
141:             * Sets the value of the relationshipRoleSource property.
142:             * 
143:             * @param value
144:             *     allowed object is
145:             *     {@link EjbRelationshipRoleType.RelationshipRoleSource }
146:             *     
147:             */
148:            public void setRelationshipRoleSource(
149:                    EjbRelationshipRoleType.RelationshipRoleSource value) {
150:                this .relationshipRoleSource = value;
151:            }
152:
153:            /**
154:             * Gets the value of the cmrField property.
155:             * 
156:             * @return
157:             *     possible object is
158:             *     {@link EjbRelationshipRoleType.CmrField }
159:             *     
160:             */
161:            public EjbRelationshipRoleType.CmrField getCmrField() {
162:                return cmrField;
163:            }
164:
165:            /**
166:             * Sets the value of the cmrField property.
167:             * 
168:             * @param value
169:             *     allowed object is
170:             *     {@link EjbRelationshipRoleType.CmrField }
171:             *     
172:             */
173:            public void setCmrField(EjbRelationshipRoleType.CmrField value) {
174:                this .cmrField = value;
175:            }
176:
177:            /**
178:             * Gets the value of the foreignKeyColumnOnSource property.
179:             * 
180:             * @return
181:             *     possible object is
182:             *     {@link boolean }
183:             *     
184:             */
185:            public boolean isForeignKeyColumnOnSource() {
186:                return foreignKeyColumnOnSource != null;
187:            }
188:
189:            /**
190:             * Sets the value of the foreignKeyColumnOnSource property.
191:             * 
192:             * @param value
193:             *     allowed object is
194:             *     {@link boolean }
195:             *     
196:             */
197:            public void setForeignKeyColumnOnSource(boolean value) {
198:                this .foreignKeyColumnOnSource = value ? new EmptyType() : null;
199:            }
200:
201:            /**
202:             * Gets the value of the roleMapping property.
203:             * 
204:             * @return
205:             *     possible object is
206:             *     {@link EjbRelationshipRoleType.RoleMapping }
207:             *     
208:             */
209:            public EjbRelationshipRoleType.RoleMapping getRoleMapping() {
210:                return roleMapping;
211:            }
212:
213:            /**
214:             * Sets the value of the roleMapping property.
215:             * 
216:             * @param value
217:             *     allowed object is
218:             *     {@link EjbRelationshipRoleType.RoleMapping }
219:             *     
220:             */
221:            public void setRoleMapping(EjbRelationshipRoleType.RoleMapping value) {
222:                this .roleMapping = value;
223:            }
224:
225:            /**
226:             * <p>Java class for anonymous complex type.
227:             * 
228:             * <p>The following schema fragment specifies the expected content contained within this class.
229:             * 
230:             * <pre>
231:             * &lt;complexType>
232:             *   &lt;complexContent>
233:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
234:             *       &lt;sequence>
235:             *         &lt;element name="cmr-field-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
236:             *       &lt;/sequence>
237:             *     &lt;/restriction>
238:             *   &lt;/complexContent>
239:             * &lt;/complexType>
240:             * </pre>
241:             * 
242:             * 
243:             */
244:            @XmlAccessorType(XmlAccessType.FIELD)
245:            @XmlType(name="",propOrder={"cmrFieldName"})
246:            public static class CmrField {
247:
248:                @XmlElement(name="cmr-field-name",required=true)
249:                protected String cmrFieldName;
250:
251:                /**
252:                 * Gets the value of the cmrFieldName property.
253:                 * 
254:                 * @return
255:                 *     possible object is
256:                 *     {@link String }
257:                 *     
258:                 */
259:                public String getCmrFieldName() {
260:                    return cmrFieldName;
261:                }
262:
263:                /**
264:                 * Sets the value of the cmrFieldName property.
265:                 * 
266:                 * @param value
267:                 *     allowed object is
268:                 *     {@link String }
269:                 *     
270:                 */
271:                public void setCmrFieldName(String value) {
272:                    this .cmrFieldName = value;
273:                }
274:
275:            }
276:
277:            /**
278:             * <p>Java class for anonymous complex type.
279:             * 
280:             * <p>The following schema fragment specifies the expected content contained within this class.
281:             * 
282:             * <pre>
283:             * &lt;complexType>
284:             *   &lt;complexContent>
285:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
286:             *       &lt;sequence>
287:             *         &lt;element name="ejb-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
288:             *       &lt;/sequence>
289:             *     &lt;/restriction>
290:             *   &lt;/complexContent>
291:             * &lt;/complexType>
292:             * </pre>
293:             * 
294:             * 
295:             */
296:            @XmlAccessorType(XmlAccessType.FIELD)
297:            @XmlType(name="",propOrder={"ejbName"})
298:            public static class RelationshipRoleSource {
299:
300:                @XmlElement(name="ejb-name",required=true)
301:                protected String ejbName;
302:
303:                /**
304:                 * Gets the value of the ejbName property.
305:                 * 
306:                 * @return
307:                 *     possible object is
308:                 *     {@link String }
309:                 *     
310:                 */
311:                public String getEjbName() {
312:                    return ejbName;
313:                }
314:
315:                /**
316:                 * Sets the value of the ejbName property.
317:                 * 
318:                 * @param value
319:                 *     allowed object is
320:                 *     {@link String }
321:                 *     
322:                 */
323:                public void setEjbName(String value) {
324:                    this .ejbName = value;
325:                }
326:
327:            }
328:
329:            /**
330:             * <p>Java class for anonymous complex type.
331:             * 
332:             * <p>The following schema fragment specifies the expected content contained within this class.
333:             * 
334:             * <pre>
335:             * &lt;complexType>
336:             *   &lt;complexContent>
337:             *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
338:             *       &lt;sequence>
339:             *         &lt;element name="cmr-field-mapping" maxOccurs="unbounded">
340:             *           &lt;complexType>
341:             *             &lt;complexContent>
342:             *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
343:             *                 &lt;sequence>
344:             *                   &lt;element name="key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
345:             *                   &lt;element name="foreign-key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
346:             *                 &lt;/sequence>
347:             *               &lt;/restriction>
348:             *             &lt;/complexContent>
349:             *           &lt;/complexType>
350:             *         &lt;/element>
351:             *       &lt;/sequence>
352:             *     &lt;/restriction>
353:             *   &lt;/complexContent>
354:             * &lt;/complexType>
355:             * </pre>
356:             * 
357:             * 
358:             */
359:            @XmlAccessorType(XmlAccessType.FIELD)
360:            @XmlType(name="",propOrder={"cmrFieldMapping"})
361:            public static class RoleMapping {
362:
363:                @XmlElement(name="cmr-field-mapping",required=true)
364:                protected List<EjbRelationshipRoleType.RoleMapping.CmrFieldMapping> cmrFieldMapping;
365:
366:                /**
367:                 * Gets the value of the cmrFieldMapping property.
368:                 * 
369:                 * <p>
370:                 * This accessor method returns a reference to the live list,
371:                 * not a snapshot. Therefore any modification you make to the
372:                 * returned list will be present inside the JAXB object.
373:                 * This is why there is not a <CODE>set</CODE> method for the cmrFieldMapping property.
374:                 * 
375:                 * <p>
376:                 * For example, to add a new item, do as follows:
377:                 * <pre>
378:                 *    getCmrFieldMapping().add(newItem);
379:                 * </pre>
380:                 * 
381:                 * 
382:                 * <p>
383:                 * Objects of the following type(s) are allowed in the list
384:                 * {@link EjbRelationshipRoleType.RoleMapping.CmrFieldMapping }
385:                 * 
386:                 * 
387:                 */
388:                public List<EjbRelationshipRoleType.RoleMapping.CmrFieldMapping> getCmrFieldMapping() {
389:                    if (cmrFieldMapping == null) {
390:                        cmrFieldMapping = new ArrayList<EjbRelationshipRoleType.RoleMapping.CmrFieldMapping>();
391:                    }
392:                    return this .cmrFieldMapping;
393:                }
394:
395:                /**
396:                 * <p>Java class for anonymous complex type.
397:                 * 
398:                 * <p>The following schema fragment specifies the expected content contained within this class.
399:                 * 
400:                 * <pre>
401:                 * &lt;complexType>
402:                 *   &lt;complexContent>
403:                 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
404:                 *       &lt;sequence>
405:                 *         &lt;element name="key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
406:                 *         &lt;element name="foreign-key-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
407:                 *       &lt;/sequence>
408:                 *     &lt;/restriction>
409:                 *   &lt;/complexContent>
410:                 * &lt;/complexType>
411:                 * </pre>
412:                 * 
413:                 * 
414:                 */
415:                @XmlAccessorType(XmlAccessType.FIELD)
416:                @XmlType(name="",propOrder={"keyColumn","foreignKeyColumn"})
417:                public static class CmrFieldMapping {
418:
419:                    @XmlElement(name="key-column",required=true)
420:                    protected String keyColumn;
421:                    @XmlElement(name="foreign-key-column",required=true)
422:                    protected String foreignKeyColumn;
423:
424:                    /**
425:                     * Gets the value of the keyColumn property.
426:                     * 
427:                     * @return
428:                     *     possible object is
429:                     *     {@link String }
430:                     *     
431:                     */
432:                    public String getKeyColumn() {
433:                        return keyColumn;
434:                    }
435:
436:                    /**
437:                     * Sets the value of the keyColumn property.
438:                     * 
439:                     * @param value
440:                     *     allowed object is
441:                     *     {@link String }
442:                     *     
443:                     */
444:                    public void setKeyColumn(String value) {
445:                        this .keyColumn = value;
446:                    }
447:
448:                    /**
449:                     * Gets the value of the foreignKeyColumn property.
450:                     * 
451:                     * @return
452:                     *     possible object is
453:                     *     {@link String }
454:                     *     
455:                     */
456:                    public String getForeignKeyColumn() {
457:                        return foreignKeyColumn;
458:                    }
459:
460:                    /**
461:                     * Sets the value of the foreignKeyColumn property.
462:                     * 
463:                     * @param value
464:                     *     allowed object is
465:                     *     {@link String }
466:                     *     
467:                     */
468:                    public void setForeignKeyColumn(String value) {
469:                        this.foreignKeyColumn = value;
470:                    }
471:
472:                }
473:
474:            }
475:
476:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.