Source Code Cross Referenced for TiephyValue.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » jtests » beans » relation » tier » 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 » JOnAS 4.8.6 » org.objectweb.jonas.jtests.beans.relation.tier 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.objectweb.jonas.jtests.beans.relation.tier;
002:
003:        /**
004:         * Value object for TIEPHY.
005:         */
006:
007:        public class TiephyValue extends java.lang.Object implements 
008:                java.io.Serializable {
009:
010:            // define attributes
011:            // define column 'numinttie' and update flag
012:            private java.lang.Integer numinttie;
013:
014:            private boolean numinttieHasBeenSet = false;
015:
016:            // define column 'nomusatie' and update flag
017:            private java.lang.String nomusatie;
018:
019:            private boolean nomusatieHasBeenSet = false;
020:
021:            // define primary key
022:            private java.lang.Integer __pk;
023:
024:            // public constructor
025:            public TiephyValue() {
026:            }
027:
028:            // copy constructor ..
029:            // TODO Cloneable is better than this !
030:            public TiephyValue(TiephyValue otherValue) {
031:                this .numinttie = otherValue.numinttie;
032:                numinttieHasBeenSet = true;
033:
034:                this .nomusatie = otherValue.nomusatie;
035:                nomusatieHasBeenSet = true;
036:
037:                //TODO ? correct ?
038:                // pk = otherValue.getPrimaryKey();
039:            }
040:
041:            /*
042:             * ALL FIELDS EXCEPT PRIMARY KEY
043:             */
044:            // getter-setter for nomusatie
045:            public java.lang.String getNomusatie() {
046:                return this .nomusatie;
047:            }
048:
049:            public void setNomusatie(java.lang.String nomusatie) {
050:                this .nomusatie = nomusatie;
051:                this .nomusatieHasBeenSet = true;
052:            }
053:
054:            public boolean nomusatieHasBeenSet() {
055:                return nomusatieHasBeenSet;
056:            }
057:
058:            /*
059:             * PRIMARY KEY(s)
060:             */
061:            public java.lang.Integer getPrimaryKey() {
062:                return __pk;
063:            }
064:
065:            public java.lang.Integer getNuminttie() {
066:                return this .numinttie;
067:            }
068:
069:            public void setNuminttie(java.lang.Integer numinttie) {
070:                this .numinttie = numinttie;
071:                __pk = numinttie;
072:                numinttieHasBeenSet = true;
073:
074:            }
075:
076:            public void setPrimaryKey(java.lang.Integer numinttie) {
077:                setNuminttie(numinttie);
078:            }
079:
080:            protected boolean numinttieHasBeenSet() {
081:                return numinttieHasBeenSet;
082:            }
083:
084:            /*
085:             * Exposes getMethod of type getXXXXValue(), for each related table.
086:             */
087:            public java.lang.Integer getTierPK() {
088:                return getNuminttie();
089:            }
090:
091:            /*
092:             * Generated toString() method, includes all fields and inherited fields
093:             * from superclass toString
094:             */
095:            public String toString() {
096:
097:                StringBuffer str = new StringBuffer("{");
098:
099:                str.append("{[Tiephy], ");
100:
101:                str.append("numinttie" + getNuminttie() + ", "); // table isSimplePk ?
102:                // true column isPk ?
103:                // true
104:                str.append("nomusatie" + getNomusatie() + ", "); // table isSimplePk ?
105:                // true column isPk ?
106:                // false
107:                str.append("{[Tiephy]");
108:                return (str.toString());
109:            }
110:
111:            /*
112:             * ToXML builds an XML String of fields and inherited fields
113:             */
114:            public String toXML() {
115:
116:                StringBuffer str = new StringBuffer("{");
117:                str.append("<docTiephy>");
118:                str.append("<numinttie>" + getNuminttie() + "</numinttie>");
119:                str.append("<nomusatie>" + getNomusatie() + "</nomusatie>");
120:
121:                str.append("</docTiephy>");
122:                return (str.toString());
123:            }
124:
125:            public boolean hasIdentity() {
126:                return numinttieHasBeenSet();
127:            }
128:
129:            public void validateData() throws Exception {
130:                // mandatory columns
131:                if (numinttie == null)
132:                    throw new Exception(
133:                            "the field : 'numinttie' must not be null !");
134:                if (nomusatie == null)
135:                    throw new Exception(
136:                            "the field : 'nomusatie' must not be null !");
137:            }
138:        }
w_ww.ja___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.