001: /**
002: * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
003: */package com.odal.petstore.persistence.gen.cmp;
004:
005: import com.completex.objective.components.persistency.*;
006: import java.sql.SQLException;
007:
008: public class CmpAccount extends
009: com.odal.petstore.persistence.gen.pos.AccountPO implements
010: java.io.Externalizable {
011:
012: public CmpAccount() {
013: }
014:
015: public CmpAccount(String userId) {
016: super (userId);
017: }
018:
019: //
020: // Complex object part:
021: //
022:
023: //
024: // Compound object part:
025: //
026:
027: private static com.odal.petstore.persistence.gen.pos.SignonPO CPD_FACTORY_SIGNON;
028: private static com.odal.petstore.persistence.gen.pos.ProfilePO CPD_FACTORY_PROFILE;
029: private static com.odal.petstore.persistence.gen.pos.BannerDataPO CPD_FACTORY_BANNERDATA;
030:
031: private transient int cpdIndexsignon;
032: private transient int cpdIndexprofile;
033: private transient int cpdIndexbannerdata;
034:
035: protected void doSetupCompound() {
036: super .doSetupCompound();
037: cpdIndexsignon = nextCompoundIndex();
038: compoundEntry(cpdIndexsignon,
039: (PersistentObject) cpdFactorySignon()
040: .newPersistentInstance());
041: compoundCascadeDelete(cpdIndexsignon, true);
042: compoundCascadeInsert(cpdIndexsignon, true);
043: cpdIndexprofile = nextCompoundIndex();
044: compoundEntry(cpdIndexprofile,
045: (PersistentObject) cpdFactoryProfile()
046: .newPersistentInstance());
047: compoundCascadeDelete(cpdIndexprofile, true);
048: compoundCascadeInsert(cpdIndexprofile, true);
049: cpdIndexbannerdata = nextCompoundIndex();
050: compoundEntry(cpdIndexbannerdata,
051: (PersistentObject) cpdFactoryBannerdata()
052: .newPersistentInstance());
053: compoundCascadeDelete(cpdIndexbannerdata, false);
054: compoundCascadeInsert(cpdIndexbannerdata, false);
055: }
056:
057: protected com.odal.petstore.persistence.gen.pos.SignonPO cpdFactorySignon() {
058: if (CPD_FACTORY_SIGNON == null) {
059: synchronized (com.odal.petstore.persistence.gen.pos.SignonPO.class) {
060: if (CPD_FACTORY_SIGNON == null) {
061: CPD_FACTORY_SIGNON = new com.odal.petstore.persistence.gen.pos.SignonPO();
062: }
063: }
064: }
065: return CPD_FACTORY_SIGNON;
066: }
067:
068: // Containment type - "is"
069: protected com.odal.petstore.persistence.gen.pos.SignonPO extractCpdEntrySignon() {
070: return (com.odal.petstore.persistence.gen.pos.SignonPO) compoundEntry(cpdIndexsignon);
071: }
072:
073: //
074: // userName:
075: //
076: public String getUserName() {
077: return extractCpdEntrySignon().getUserName();
078: }
079:
080: public void setUserName(String userName) {
081: extractCpdEntrySignon().setUserName(userName);
082: }
083:
084: public boolean izNullUserName() {
085: return extractCpdEntrySignon().izNullUserName();
086: }
087:
088: public void setNullUserName() {
089: extractCpdEntrySignon().setNullUserName();
090: }
091:
092: //
093: // password:
094: //
095: public String getPassword() {
096: return extractCpdEntrySignon().getPassword();
097: }
098:
099: public void setPassword(String password) {
100: extractCpdEntrySignon().setPassword(password);
101: }
102:
103: public boolean izNullPassword() {
104: return extractCpdEntrySignon().izNullPassword();
105: }
106:
107: public void setNullPassword() {
108: extractCpdEntrySignon().setNullPassword();
109: }
110:
111: protected com.odal.petstore.persistence.gen.pos.ProfilePO cpdFactoryProfile() {
112: if (CPD_FACTORY_PROFILE == null) {
113: synchronized (com.odal.petstore.persistence.gen.pos.ProfilePO.class) {
114: if (CPD_FACTORY_PROFILE == null) {
115: CPD_FACTORY_PROFILE = new com.odal.petstore.persistence.gen.pos.ProfilePO();
116: }
117: }
118: }
119: return CPD_FACTORY_PROFILE;
120: }
121:
122: // Containment type - "is"
123: protected com.odal.petstore.persistence.gen.pos.ProfilePO extractCpdEntryProfile() {
124: return (com.odal.petstore.persistence.gen.pos.ProfilePO) compoundEntry(cpdIndexprofile);
125: }
126:
127: //
128: // langPref:
129: //
130: public String getLangPref() {
131: return extractCpdEntryProfile().getLangPref();
132: }
133:
134: public void setLangPref(String langPref) {
135: extractCpdEntryProfile().setLangPref(langPref);
136: }
137:
138: public boolean izNullLangPref() {
139: return extractCpdEntryProfile().izNullLangPref();
140: }
141:
142: public void setNullLangPref() {
143: extractCpdEntryProfile().setNullLangPref();
144: }
145:
146: //
147: // myListOpt:
148: //
149: public Long getMyListOpt() {
150: return extractCpdEntryProfile().getMyListOpt();
151: }
152:
153: public void setMyListOpt(Long myListOpt) {
154: extractCpdEntryProfile().setMyListOpt(myListOpt);
155: }
156:
157: public boolean izNullMyListOpt() {
158: return extractCpdEntryProfile().izNullMyListOpt();
159: }
160:
161: public void setNullMyListOpt() {
162: extractCpdEntryProfile().setNullMyListOpt();
163: }
164:
165: //
166: // bannerOpt:
167: //
168: public Long getBannerOpt() {
169: return extractCpdEntryProfile().getBannerOpt();
170: }
171:
172: public void setBannerOpt(Long bannerOpt) {
173: extractCpdEntryProfile().setBannerOpt(bannerOpt);
174: }
175:
176: public boolean izNullBannerOpt() {
177: return extractCpdEntryProfile().izNullBannerOpt();
178: }
179:
180: public void setNullBannerOpt() {
181: extractCpdEntryProfile().setNullBannerOpt();
182: }
183:
184: protected com.odal.petstore.persistence.gen.pos.BannerDataPO cpdFactoryBannerdata() {
185: if (CPD_FACTORY_BANNERDATA == null) {
186: synchronized (com.odal.petstore.persistence.gen.pos.BannerDataPO.class) {
187: if (CPD_FACTORY_BANNERDATA == null) {
188: CPD_FACTORY_BANNERDATA = new com.odal.petstore.persistence.gen.pos.BannerDataPO();
189: }
190: }
191: }
192: return CPD_FACTORY_BANNERDATA;
193: }
194:
195: // Containment type - "is"
196: protected com.odal.petstore.persistence.gen.pos.BannerDataPO extractCpdEntryBannerdata() {
197: return (com.odal.petstore.persistence.gen.pos.BannerDataPO) compoundEntry(cpdIndexbannerdata);
198: }
199:
200: //
201: // favCategory:
202: //
203: public String getFavCategory() {
204: return extractCpdEntryBannerdata().getFavCategory();
205: }
206:
207: public void setFavCategory(String favCategory) {
208: extractCpdEntryBannerdata().setFavCategory(favCategory);
209: }
210:
211: public boolean izNullFavCategory() {
212: return extractCpdEntryBannerdata().izNullFavCategory();
213: }
214:
215: public void setNullFavCategory() {
216: extractCpdEntryBannerdata().setNullFavCategory();
217: }
218:
219: //
220: // bannerName:
221: //
222: public String getBannerName() {
223: return extractCpdEntryBannerdata().getBannerName();
224: }
225:
226: public void setBannerName(String bannerName) {
227: extractCpdEntryBannerdata().setBannerName(bannerName);
228: }
229:
230: public boolean izNullBannerName() {
231: return extractCpdEntryBannerdata().izNullBannerName();
232: }
233:
234: public void setNullBannerName() {
235: extractCpdEntryBannerdata().setNullBannerName();
236: }
237:
238: public boolean compound() {
239: return true;
240: }
241:
242: }
|