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.IPoliceCar;
008: import java.util.Date;
009:
010: public class CpdPoliceCarPO
011: extends
012: com.completex.objective.persistency.examples.ex003a.domain.Product
013: implements ICpdPoliceCar, java.io.Externalizable {
014:
015: public CpdPoliceCarPO() {
016: }
017:
018: public CpdPoliceCarPO(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.PoliceCar CPD_FACTORY_POLICE_CAR_ATTR;
031:
032: private transient int cpdIndexPoliceCarAttr;
033:
034: protected void doSetupCompound() {
035: cpdIndexPoliceCarAttr = nextCompoundIndex();
036: compoundEntry(cpdIndexPoliceCarAttr,
037: (PersistentObject) cpdFactoryPoliceCarAttr()
038: .newPersistentInstance());
039: compoundCascadeDelete(cpdIndexPoliceCarAttr, true);
040: compoundCascadeInsert(cpdIndexPoliceCarAttr, true);
041: }
042:
043: protected com.completex.objective.persistency.examples.ex003a.domain.PoliceCar cpdFactoryPoliceCarAttr() {
044: if (CPD_FACTORY_POLICE_CAR_ATTR == null) {
045: synchronized (com.completex.objective.persistency.examples.ex003a.domain.PoliceCar.class) {
046: if (CPD_FACTORY_POLICE_CAR_ATTR == null) {
047: CPD_FACTORY_POLICE_CAR_ATTR = new com.completex.objective.persistency.examples.ex003a.domain.PoliceCar();
048: }
049: }
050: }
051: return CPD_FACTORY_POLICE_CAR_ATTR;
052: }
053:
054: // Containment type - "is"
055: protected com.completex.objective.persistency.examples.ex003a.domain.PoliceCar extractCpdEntryPoliceCarAttr() {
056: return (com.completex.objective.persistency.examples.ex003a.domain.PoliceCar) compoundEntry(cpdIndexPoliceCarAttr);
057: }
058:
059: //
060: // policeCarAttr:
061: //
062: public String getPoliceCarAttr() {
063: return extractCpdEntryPoliceCarAttr().getPoliceCarAttr();
064: }
065:
066: public void setPoliceCarAttr(String policeCarAttr) {
067: extractCpdEntryPoliceCarAttr().setPoliceCarAttr(policeCarAttr);
068: }
069:
070: public boolean izNullPoliceCarAttr() {
071: return extractCpdEntryPoliceCarAttr().izNullPoliceCarAttr();
072: }
073:
074: public void setNullPoliceCarAttr() {
075: extractCpdEntryPoliceCarAttr().setNullPoliceCarAttr();
076: }
077:
078: //
079: // lastUpdated:
080: //
081: public Date getLastUpdated() {
082: return extractCpdEntryPoliceCarAttr().getLastUpdated();
083: }
084:
085: public void setLastUpdated(Date lastUpdated) {
086: extractCpdEntryPoliceCarAttr().setLastUpdated(lastUpdated);
087: }
088:
089: public boolean izNullLastUpdated() {
090: return extractCpdEntryPoliceCarAttr().izNullLastUpdated();
091: }
092:
093: public void setNullLastUpdated() {
094: extractCpdEntryPoliceCarAttr().setNullLastUpdated();
095: }
096:
097: //
098: // creationDate:
099: //
100: public Date getCreationDate() {
101: return extractCpdEntryPoliceCarAttr().getCreationDate();
102: }
103:
104: public void setCreationDate(Date creationDate) {
105: extractCpdEntryPoliceCarAttr().setCreationDate(creationDate);
106: }
107:
108: public boolean izNullCreationDate() {
109: return extractCpdEntryPoliceCarAttr().izNullCreationDate();
110: }
111:
112: public void setNullCreationDate() {
113: extractCpdEntryPoliceCarAttr().setNullCreationDate();
114: }
115:
116: public boolean compound() {
117: return true;
118: }
119:
120: }
|