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_PitBoss/PitBossBDO.java
035: *-----------------------------------------------------------------------------
036: */
037:
038: package poker.data.DODS_PitBoss;
039:
040: //import dods.builder.sourceGenerators.Query.DataObjectException;
041: import com.lutris.dods.builder.generator.query.*;
042:
043: /**
044: * PitBossBDO contains the same set and get methods as
045: * the PitBossDO class.
046: * Business Object (BO) classes typically need these set and get methods.
047: * So by deriving a BO from a BDO, or by implementing a BO that
048: * contains a BDO, the developer of the BO is spared some work.
049: *
050: * @author <AUTHOR>
051: * @version $Revision: 1.1 $
052: */
053: public class PitBossBDO implements java.io.Serializable {
054:
055: /**
056: * The PitBossDO object upon which the set and get methods operate.
057: * This member is protected so that classes derived from PitBossBDO
058: * can access the underlying Data Object.
059: */
060: protected PitBossDO DO;
061:
062: /**
063: * Like the class <CODE>PitBossDO</CODE>,
064: * this class acts as a factory.
065: * Business Object (BO) classes typically need these set and get methods.
066: * So by deriving a BO from a BDO, or by implementing a BO that
067: * contains one or more BDOs, the developer of the BO is spared some work.
068: */
069: public static PitBossBDO createVirgin() throws Exception {
070: PitBossBDO bdo = new PitBossBDO();
071: bdo.DO = PitBossDO.createVirgin();
072: return bdo;
073: }
074:
075: /**
076: * The createExisting method is used to create a <CODE>PitBossBDO</CODE>
077: * from a <CODE>PitBossDO</CODE> that was returned by
078: * the <CODE>PitBossQuery</CODE> class.
079: */
080: public static PitBossBDO createExisting(PitBossDO DO) {
081: PitBossBDO bdo = new PitBossBDO();
082: bdo.DO = DO;
083: return bdo;
084: }
085:
086: /**
087: * The developer of a Business Object that derives from this class
088: * can override the methods:<CODE>
089: * beforeAnyGet
090: * beforeAnySet
091: * afterAnySet
092: * </CODE> to handle any general assertions or cleanup needed
093: * for <CODE>get</CODE> and <CODE>set</CODE> methods.
094: */
095: protected void beforeAnyGet() {
096: }
097:
098: protected void beforeAnySet() {
099: }
100:
101: protected void afterAnySet() {
102: }
103:
104: /**
105: * Get GameName of the PitBossDO
106: *
107: * @return GameName of the PitBossDO
108: */
109: public String getGameName() throws DataObjectException {
110: return DO.getGameName();
111: }
112:
113: /**
114: * Set GameName of the PitBossDO
115: *
116: * @param GameName of the PitBossDO
117: */
118:
119: public void setGameName(String GameName) throws DataObjectException {
120: DO.setGameName(GameName);
121: }
122:
123: /**
124: * Get TotalDollars of the PitBossDO
125: *
126: * @return TotalDollars of the PitBossDO
127: */
128: public int getTotalDollars() throws DataObjectException {
129: return DO.getTotalDollars();
130: }
131:
132: /**
133: * Set TotalDollars of the PitBossDO
134: *
135: * @param TotalDollars of the PitBossDO
136: */
137:
138: public void setTotalDollars(int TotalDollars)
139: throws DataObjectException {
140: DO.setTotalDollars(TotalDollars);
141: }
142:
143: /**
144: * Get TotalBankrupt of the PitBossDO
145: *
146: * @return TotalBankrupt of the PitBossDO
147: */
148: public int getTotalBankrupt() throws DataObjectException {
149: return DO.getTotalBankrupt();
150: }
151:
152: /**
153: * Set TotalBankrupt of the PitBossDO
154: *
155: * @param TotalBankrupt of the PitBossDO
156: */
157:
158: public void setTotalBankrupt(int TotalBankrupt)
159: throws DataObjectException {
160: DO.setTotalBankrupt(TotalBankrupt);
161: }
162:
163: /**
164: * Get TotalHandsDealt of the PitBossDO
165: *
166: * @return TotalHandsDealt of the PitBossDO
167: */
168: public int getTotalHandsDealt() throws DataObjectException {
169: return DO.getTotalHandsDealt();
170: }
171:
172: /**
173: * Set TotalHandsDealt of the PitBossDO
174: *
175: * @param TotalHandsDealt of the PitBossDO
176: */
177:
178: public void setTotalHandsDealt(int TotalHandsDealt)
179: throws DataObjectException {
180: DO.setTotalHandsDealt(TotalHandsDealt);
181: }
182:
183: /**
184: * Get TotalHandsWon of the PitBossDO
185: *
186: * @return TotalHandsWon of the PitBossDO
187: */
188: public int getTotalHandsWon() throws DataObjectException {
189: return DO.getTotalHandsWon();
190: }
191:
192: /**
193: * Set TotalHandsWon of the PitBossDO
194: *
195: * @param TotalHandsWon of the PitBossDO
196: */
197:
198: public void setTotalHandsWon(int TotalHandsWon)
199: throws DataObjectException {
200: DO.setTotalHandsWon(TotalHandsWon);
201: }
202:
203: }
|