01: /**
02: * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
03: */package com.odal.petstore.persistence.gen.cmp;
04:
05: import com.completex.objective.components.persistency.*;
06: import java.sql.SQLException;
07:
08: public class CmpItem extends
09: com.odal.petstore.persistence.gen.pos.ItemPO implements
10: java.io.Externalizable {
11:
12: public CmpItem() {
13: }
14:
15: public CmpItem(String itemId) {
16: super (itemId);
17: }
18:
19: //
20: // Complex object part:
21: //
22:
23: //
24: // Compound object part:
25: //
26:
27: private static com.odal.petstore.persistence.gen.pos.ProductPO CPD_FACTORY_PRODUCT;
28:
29: private transient int cpdIndexproduct;
30:
31: protected void doSetupCompound() {
32: super .doSetupCompound();
33: cpdIndexproduct = nextCompoundIndex();
34: compoundEntry(cpdIndexproduct,
35: (PersistentObject) cpdFactoryProduct()
36: .newPersistentInstance());
37: compoundCascadeDelete(cpdIndexproduct, false);
38: compoundCascadeInsert(cpdIndexproduct, false);
39: }
40:
41: protected com.odal.petstore.persistence.gen.pos.ProductPO cpdFactoryProduct() {
42: if (CPD_FACTORY_PRODUCT == null) {
43: synchronized (com.odal.petstore.persistence.gen.pos.ProductPO.class) {
44: if (CPD_FACTORY_PRODUCT == null) {
45: CPD_FACTORY_PRODUCT = new com.odal.petstore.persistence.gen.pos.ProductPO();
46: }
47: }
48: }
49: return CPD_FACTORY_PRODUCT;
50: }
51:
52: // Containment type - "has"
53: public com.odal.petstore.persistence.gen.pos.ProductPO getProduct() {
54: return (com.odal.petstore.persistence.gen.pos.ProductPO) compoundEntry(cpdIndexproduct);
55: }
56:
57: protected void setProduct(
58: com.odal.petstore.persistence.gen.pos.ProductPO product) {
59: throw new UnsupportedOperationException();
60: }
61:
62: public boolean compound() {
63: return true;
64: }
65:
66: }
|