public void copyNonPrimaryKeyAttributesFrom(PetAbstract from) throws MithraBusinessException { this.copyNonPrimaryKeyAttributesFrom((MithraTransactionalObject)from); }
public void cascadeInsertUntil(Timestamp exclusiveUntil) throws MithraBusinessException { this.insertUntil(exclusiveUntil); }
public boolean isModifiedSinceDetachmentByDependentRelationships() { if(this.isModifiedSinceDetachment()) return true; return false; }
protected void copyNonPrimaryKeyAttributesFromImpl(MithraTransactionalObject f, MithraTransaction tx) throws MithraBusinessException { PetAbstract from = (PetAbstract) f; PetData newData = from.zSynchronizedGetData(); this.setPersonId(newData.getPersonId()); this.setPetAge(newData.getPetAge()); this.setPetTypeId(newData.getPetTypeId()); }
public void setPetType(PetType petType) DatedTransactionalBehavior _behavior = zGetTransactionalBehaviorForWrite(); PetData _data = (PetData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) if (_petType == null) this.setPetTypeId(0); this.setPetTypeId( _petType.getPetTypeId()); this.setPetTypeId(0); this.setPetTypeId( _petType.getPetTypeId());
public void setOwner(Person owner) { Person _owner = (Person) owner; DatedTransactionalBehavior _behavior = zGetTransactionalBehaviorForWrite(); PetData _data = (PetData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { Object _prev = _data.getOwner(); if (_behavior.isDetached() && _prev != null) { ((DelegatingList)((Person)_prev).getPets()).zMarkMoved( (Pet) this); } _data.setOwner(_owner); _owner.getPets().add((Pet) this); } else if (_behavior.isPersisted()) { if (_owner == null) { this.setPersonId(0); } else { this.setPersonId( _owner.getPersonId()); } } else throw new RuntimeException("not implemented"); }
public Pet copyDetachedValuesToOriginalOrInsertIfNew() { return (Pet) this.zCopyDetachedValuesToOriginalOrInsertIfNew(); }
public void cascadeTerminate() { this.terminate(); }
public void cascadeTerminateUntil(Timestamp exclusiveUntil) throws MithraBusinessException { this.terminateUntil(exclusiveUntil); }
public Pet zFindOriginal() { PetData data = (PetData) this.currentData; Operation op; op = PetFinder.petName().eq(data.getPetName()); op = op.and(PetFinder.processingDate().eq(this.getProcessingDate())); return PetFinder.findOne(op); }