Source Code Cross Referenced for JDOField.java in  » Database-ORM » XORM » org » xorm » util » jdoxml » 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 » XORM » org.xorm.util.jdoxml 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:            $Header: /cvsroot/xorm/xorm/src/org/xorm/util/jdoxml/JDOField.java,v 1.2 2003/06/12 05:09:51 wbiggs Exp $
003:
004:            This file is part of XORM.
005:
006:            XORM is free software; you can redistribute it and/or modify
007:            it under the terms of the GNU General Public License as published by
008:            the Free Software Foundation; either version 2 of the License, or
009:            (at your option) any later version.
010:
011:            XORM is distributed in the hope that it will be useful,
012:            but WITHOUT ANY WARRANTY; without even the implied warranty of
013:            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014:            GNU General Public License for more details.
015:
016:            You should have received a copy of the GNU General Public License
017:            along with XORM; if not, write to the Free Software
018:            Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
019:         */
020:        package org.xorm.util.jdoxml;
021:
022:        import java.util.ArrayList;
023:        import java.util.Collection;
024:
025:        /**
026:         * Represents a JDO XML field declaration.
027:         */
028:        public class JDOField {
029:            private String name;
030:            private Collection extensions = new ArrayList();
031:            private JDONullValue nullValue;
032:            private JDOPersistenceModifier persistenceModifier;
033:            private Boolean defaultFetchGroup;
034:            private Boolean embedded;
035:            private boolean primaryKey = false;
036:
037:            // Zero or one of the following three will be set
038:            private JDOCollection collection;
039:            private JDOMap map;
040:            private JDOArray array;
041:
042:            public String getName() {
043:                return name;
044:            }
045:
046:            public void setName(String name) {
047:                this .name = name;
048:            }
049:
050:            public Collection getExtensions() {
051:                return extensions;
052:            }
053:
054:            public JDONullValue getNullValue() {
055:                return nullValue;
056:            }
057:
058:            public void setNullValue(JDONullValue nullValue) {
059:                this .nullValue = nullValue;
060:            }
061:
062:            public JDOPersistenceModifier getPersistenceModifier() {
063:                return persistenceModifier;
064:            }
065:
066:            public void setPersistenceModifier(
067:                    JDOPersistenceModifier persistenceModifier) {
068:                this .persistenceModifier = persistenceModifier;
069:            }
070:
071:            public Boolean isDefaultFetchGroup() {
072:                return defaultFetchGroup;
073:            }
074:
075:            public void setDefaultFetchGroup(Boolean value) {
076:                this .defaultFetchGroup = value;
077:            }
078:
079:            public Boolean isEmbedded() {
080:                return embedded;
081:            }
082:
083:            public void setEmbedded(Boolean value) {
084:                this .embedded = value;
085:            }
086:
087:            public boolean isPrimaryKey() {
088:                return primaryKey;
089:            }
090:
091:            public void setPrimaryKey(boolean value) {
092:                this .primaryKey = value;
093:            }
094:
095:            public JDOCollection getCollection() {
096:                return collection;
097:            }
098:
099:            public void setCollection(JDOCollection collection) {
100:                this .map = null;
101:                this .array = null;
102:                this .collection = collection;
103:            }
104:
105:            public JDOMap getMap() {
106:                return map;
107:            }
108:
109:            public void setMap(JDOMap map) {
110:                this .array = null;
111:                this .collection = null;
112:                this .map = map;
113:            }
114:
115:            public JDOArray getArray() {
116:                return array;
117:            }
118:
119:            public void setArray(JDOArray array) {
120:                this.map = null;
121:                this.collection = null;
122:                this.array = array;
123:            }
124:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.