01: /**
02: * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
03: */package com.completex.objective.persistency.examples.ex003a.cpxpos;
04:
05: import com.completex.objective.components.persistency.*;
06: import java.sql.SQLException;
07:
08: public class CpdProductPO
09: extends
10: com.completex.objective.persistency.examples.ex003a.domain.Product
11: implements ICpdProduct, java.io.Externalizable {
12:
13: public CpdProductPO() {
14: }
15:
16: public CpdProductPO(Long productId) {
17: super (productId);
18: }
19:
20: //
21: // Complex object part:
22: //
23:
24: //
25: // Compound object part:
26: //
27: private static final com.completex.objective.persistency.examples.ex003a.domain.CpdTaxiCar DELEGATE_FACTORY_TAXICAR = new com.completex.objective.persistency.examples.ex003a.domain.CpdTaxiCar();
28: private static final com.completex.objective.persistency.examples.ex003a.domain.CpdPoliceCar DELEGATE_FACTORY_POLICECAR = new com.completex.objective.persistency.examples.ex003a.domain.CpdPoliceCar();
29:
30: protected com.completex.objective.persistency.examples.ex003a.domain.CpdTaxiCar delegateFactoryTaxiCar() {
31: return DELEGATE_FACTORY_TAXICAR;
32: }
33:
34: protected com.completex.objective.persistency.examples.ex003a.domain.CpdPoliceCar delegateFactoryPoliceCar() {
35: return DELEGATE_FACTORY_POLICECAR;
36: }
37:
38: public DelegatePersistentObjectFactory delegateFactory() {
39: if (delegateFactory == null) {
40: delegateFactory = new com.completex.objective.components.persistency.core.impl.CompoundDelegateFactoryImpl();
41: delegateFactory
42: .setDelegatePersistentObjects(new PersistentObject[] {
43: this , delegateFactoryTaxiCar(),
44: delegateFactoryPoliceCar(), });
45: delegateFactory.setDelegateValues(new String[] { "product",
46: "taxiCar", "policeCar", });
47: delegateFactory
48: .setDiscriminatorColumnName(CpdProductPO.COL_NAME);
49: }
50: return delegateFactory;
51: }
52:
53: public boolean compound() {
54: return false;
55: }
56:
57: }
|