Source Code Cross Referenced for GameDataBDO.java in  » J2EE » Enhydra-Demos » poker » data » DODS_GameData » 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 » Enhydra Demos » poker.data.DODS_GameData 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*-----------------------------------------------------------------------------
002:         * Enhydra Java Application Server
003:         * Copyright 1997-1999 Lutris Technologies, Inc.
004:         * All rights reserved.
005:         *
006:         * Redistribution and use in source and binary forms, with or without
007:         * modification, are permitted provided that the following conditions
008:         * are met:
009:         * 1. Redistributions of source code must retain the above copyright
010:         *    notice, this list of conditions and the following disclaimer.
011:         * 2. Redistributions in binary form must reproduce the above copyright
012:         *    notice, this list of conditions and the following disclaimer in
013:         *    the documentation and/or other materials provided with the distribution.
014:         * 3. All advertising materials mentioning features or use of this software
015:         *    must display the following acknowledgement:
016:         *      This product includes Enhydra software developed by Lutris
017:         *      Technologies, Inc. and its contributors.
018:         * 4. Neither the name of Lutris Technologies nor the names of its contributors
019:         *    may be used to endorse or promote products derived from this software
020:         *    without specific prior written permission.
021:         *
022:         * THIS SOFTWARE IS PROVIDED BY LUTRIS TECHNOLOGIES AND CONTRIBUTORS ``AS IS''
023:         * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
024:         * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
025:         * ARE DISCLAIMED.  IN NO EVENT SHALL LUTRIS TECHNOLOGIES OR CONTRIBUTORS BE
026:         * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
027:         * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
028:         * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
029:         * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
030:         * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
031:         * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
032:         * POSSIBILITY OF SUCH DAMAGE.
033:         *-----------------------------------------------------------------------------
034:         * /root/test/poker/data/DODS_GameData/GameDataBDO.java
035:         *-----------------------------------------------------------------------------
036:         */
037:
038:        package poker.data.DODS_GameData;
039:
040:        import com.lutris.dods.builder.generator.query.DataObjectException;
041:
042:        /**
043:         * GameDataBDO contains the same set and get methods as
044:         * the GameDataDO class.
045:         * Business Object (BO) classes typically need these set and get methods.
046:         * So by deriving a BO from a BDO, or by implementing a BO that
047:         * contains a BDO, the developer of the BO is spared some work.
048:         *
049:         * @author <AUTHOR>
050:         * @version $Revision: 1.1 $
051:         */
052:        public class GameDataBDO implements  java.io.Serializable {
053:
054:            /**
055:             * The GameDataDO object upon which the set and get methods operate.
056:             * This member is protected so that classes derived from GameDataBDO
057:             * can access the underlying Data Object.
058:             */
059:            protected GameDataDO DO;
060:
061:            /**
062:             * Like the class <CODE>GameDataDO</CODE>,
063:             * this class acts as a factory.
064:             * Business Object (BO) classes typically need these set and get methods.
065:             * So by deriving a BO from a BDO, or by implementing a BO that
066:             * contains one or more BDOs, the developer of the BO is spared some work.
067:             */
068:            public static GameDataBDO createVirgin() throws Exception {
069:                GameDataBDO bdo = new GameDataBDO();
070:                bdo.DO = GameDataDO.createVirgin();
071:                return bdo;
072:            }
073:
074:            /**
075:             * The createExisting method is used to create a <CODE>GameDataBDO</CODE>
076:             * from a <CODE>GameDataDO</CODE> that was returned by
077:             * the <CODE>GameDataQuery</CODE> class.
078:             */
079:            public static GameDataBDO createExisting(GameDataDO DO) {
080:                GameDataBDO bdo = new GameDataBDO();
081:                bdo.DO = DO;
082:                return bdo;
083:            }
084:
085:            /**
086:             * The developer of a Business Object that derives from this class
087:             * can override the methods:<CODE>
088:             *     beforeAnyGet
089:             *     beforeAnySet
090:             *     afterAnySet
091:             * </CODE> to handle any general assertions or cleanup needed
092:             * for <CODE>get</CODE> and <CODE>set</CODE> methods.
093:             */
094:            protected void beforeAnyGet() {
095:            }
096:
097:            protected void beforeAnySet() {
098:            }
099:
100:            protected void afterAnySet() {
101:            }
102:
103:            /**
104:             * Get Cash of the GameDataDO
105:             *
106:             * @return Cash of the GameDataDO
107:             */
108:            public int getCash() throws DataObjectException {
109:                return DO.getCash();
110:            }
111:
112:            /**
113:             * Set Cash of the GameDataDO
114:             *
115:             * @param Cash of the GameDataDO
116:             */
117:
118:            public void setCash(int Cash) throws DataObjectException {
119:                DO.setCash(Cash);
120:            }
121:
122:            /**
123:             * Get Deck of the GameDataDO
124:             *
125:             * @return Deck of the GameDataDO
126:             */
127:            public String getDeck() throws DataObjectException {
128:                return DO.getDeck();
129:            }
130:
131:            /**
132:             * Set Deck of the GameDataDO
133:             *
134:             * @param Deck of the GameDataDO
135:             */
136:
137:            public void setDeck(String Deck) throws DataObjectException {
138:                DO.setDeck(Deck);
139:            }
140:
141:            /**
142:             * Get Email of the GameDataDO
143:             *
144:             * @return Email of the GameDataDO
145:             */
146:            public String getEmail() throws DataObjectException {
147:                return DO.getEmail();
148:            }
149:
150:            /**
151:             * Set Email of the GameDataDO
152:             *
153:             * @param Email of the GameDataDO
154:             */
155:
156:            public void setEmail(String Email) throws DataObjectException {
157:                DO.setEmail(Email);
158:            }
159:
160:            /**
161:             * Get LargestBet of the GameDataDO
162:             *
163:             * @return LargestBet of the GameDataDO
164:             */
165:            public int getLargestBet() throws DataObjectException {
166:                return DO.getLargestBet();
167:            }
168:
169:            /**
170:             * Set LargestBet of the GameDataDO
171:             *
172:             * @param LargestBet of the GameDataDO
173:             */
174:
175:            public void setLargestBet(int LargestBet)
176:                    throws DataObjectException {
177:                DO.setLargestBet(LargestBet);
178:            }
179:
180:            /**
181:             * Get Name of the GameDataDO
182:             *
183:             * @return Name of the GameDataDO
184:             */
185:            public String getName() throws DataObjectException {
186:                return DO.getName();
187:            }
188:
189:            /**
190:             * Set Name of the GameDataDO
191:             *
192:             * @param Name of the GameDataDO
193:             */
194:
195:            public void setName(String Name) throws DataObjectException {
196:                DO.setName(Name);
197:            }
198:
199:            /**
200:             * Get Password of the GameDataDO
201:             *
202:             * @return Password of the GameDataDO
203:             */
204:            public String getPassword() throws DataObjectException {
205:                return DO.getPassword();
206:            }
207:
208:            /**
209:             * Set Password of the GameDataDO
210:             *
211:             * @param Password of the GameDataDO
212:             */
213:
214:            public void setPassword(String Password) throws DataObjectException {
215:                DO.setPassword(Password);
216:            }
217:
218:            /**
219:             * Get SmallestBet of the GameDataDO
220:             *
221:             * @return SmallestBet of the GameDataDO
222:             */
223:            public int getSmallestBet() throws DataObjectException {
224:                return DO.getSmallestBet();
225:            }
226:
227:            /**
228:             * Set SmallestBet of the GameDataDO
229:             *
230:             * @param SmallestBet of the GameDataDO
231:             */
232:
233:            public void setSmallestBet(int SmallestBet)
234:                    throws DataObjectException {
235:                DO.setSmallestBet(SmallestBet);
236:            }
237:
238:            /**
239:             * Get TotalPlayed of the GameDataDO
240:             *
241:             * @return TotalPlayed of the GameDataDO
242:             */
243:            public int getTotalPlayed() throws DataObjectException {
244:                return DO.getTotalPlayed();
245:            }
246:
247:            /**
248:             * Set TotalPlayed of the GameDataDO
249:             *
250:             * @param TotalPlayed of the GameDataDO
251:             */
252:
253:            public void setTotalPlayed(int TotalPlayed)
254:                    throws DataObjectException {
255:                DO.setTotalPlayed(TotalPlayed);
256:            }
257:
258:            /**
259:             * Get TotalWon of the GameDataDO
260:             *
261:             * @return TotalWon of the GameDataDO
262:             */
263:            public int getTotalWon() throws DataObjectException {
264:                return DO.getTotalWon();
265:            }
266:
267:            /**
268:             * Set TotalWon of the GameDataDO
269:             *
270:             * @param TotalWon of the GameDataDO
271:             */
272:
273:            public void setTotalWon(int TotalWon) throws DataObjectException {
274:                DO.setTotalWon(TotalWon);
275:            }
276:
277:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.