001: /**
002: * GENERATED CODE: DO NOT MODIFY IT UNDER ANY CIRCUMSTANCES!!!
003: */package com.completex.objective.persistency.examples.ex003a.cpxpos;
004:
005: import com.completex.objective.components.persistency.*;
006: import java.sql.SQLException;
007: import com.completex.objective.persistency.examples.ex003a.pos.ITaxiCar;
008: import java.util.Date;
009:
010: public class CpdTaxiCarPO
011: extends
012: com.completex.objective.persistency.examples.ex003a.domain.Product
013: implements ICpdTaxiCar, java.io.Externalizable {
014:
015: public CpdTaxiCarPO() {
016: }
017:
018: public CpdTaxiCarPO(Long productId) {
019: super (productId);
020: }
021:
022: //
023: // Complex object part:
024: //
025:
026: //
027: // Compound object part:
028: //
029:
030: private static com.completex.objective.persistency.examples.ex003a.domain.TaxiCar CPD_FACTORY_TAXI_CAR_ATTR;
031:
032: private transient int cpdIndexTaxiCarAttr;
033:
034: protected void doSetupCompound() {
035: cpdIndexTaxiCarAttr = nextCompoundIndex();
036: compoundEntry(cpdIndexTaxiCarAttr,
037: (PersistentObject) cpdFactoryTaxiCarAttr()
038: .newPersistentInstance());
039: compoundCascadeDelete(cpdIndexTaxiCarAttr, true);
040: compoundCascadeInsert(cpdIndexTaxiCarAttr, true);
041: }
042:
043: protected com.completex.objective.persistency.examples.ex003a.domain.TaxiCar cpdFactoryTaxiCarAttr() {
044: if (CPD_FACTORY_TAXI_CAR_ATTR == null) {
045: synchronized (com.completex.objective.persistency.examples.ex003a.domain.TaxiCar.class) {
046: if (CPD_FACTORY_TAXI_CAR_ATTR == null) {
047: CPD_FACTORY_TAXI_CAR_ATTR = new com.completex.objective.persistency.examples.ex003a.domain.TaxiCar();
048: }
049: }
050: }
051: return CPD_FACTORY_TAXI_CAR_ATTR;
052: }
053:
054: // Containment type - "is"
055: protected com.completex.objective.persistency.examples.ex003a.domain.TaxiCar extractCpdEntryTaxiCarAttr() {
056: return (com.completex.objective.persistency.examples.ex003a.domain.TaxiCar) compoundEntry(cpdIndexTaxiCarAttr);
057: }
058:
059: //
060: // taxiCarAttr:
061: //
062: public String getTaxiCarAttr() {
063: return extractCpdEntryTaxiCarAttr().getTaxiCarAttr();
064: }
065:
066: public void setTaxiCarAttr(String taxiCarAttr) {
067: extractCpdEntryTaxiCarAttr().setTaxiCarAttr(taxiCarAttr);
068: }
069:
070: public boolean izNullTaxiCarAttr() {
071: return extractCpdEntryTaxiCarAttr().izNullTaxiCarAttr();
072: }
073:
074: public void setNullTaxiCarAttr() {
075: extractCpdEntryTaxiCarAttr().setNullTaxiCarAttr();
076: }
077:
078: //
079: // lastUpdated:
080: //
081: public Date getLastUpdated() {
082: return extractCpdEntryTaxiCarAttr().getLastUpdated();
083: }
084:
085: public void setLastUpdated(Date lastUpdated) {
086: extractCpdEntryTaxiCarAttr().setLastUpdated(lastUpdated);
087: }
088:
089: public boolean izNullLastUpdated() {
090: return extractCpdEntryTaxiCarAttr().izNullLastUpdated();
091: }
092:
093: public void setNullLastUpdated() {
094: extractCpdEntryTaxiCarAttr().setNullLastUpdated();
095: }
096:
097: //
098: // creationDate:
099: //
100: public Date getCreationDate() {
101: return extractCpdEntryTaxiCarAttr().getCreationDate();
102: }
103:
104: public void setCreationDate(Date creationDate) {
105: extractCpdEntryTaxiCarAttr().setCreationDate(creationDate);
106: }
107:
108: public boolean izNullCreationDate() {
109: return extractCpdEntryTaxiCarAttr().izNullCreationDate();
110: }
111:
112: public void setNullCreationDate() {
113: extractCpdEntryTaxiCarAttr().setNullCreationDate();
114: }
115:
116: public boolean compound() {
117: return true;
118: }
119:
120: }
|