public int computeHashCodeFromRelated(Object _srcObject, Object _srcData) { PetData _castedSrcData = (PetData) _srcData; return HashUtil.hash(_castedSrcData.getPetTypeId()); }
public int getPetTypeId() { return this.zSynchronizedGetData().getPetTypeId(); }
public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1) { PetData _castedSrcData = (PetData) _srcData; PetTypeData _castedTargetData = (PetTypeData) _targetData; if (_castedSrcData.getPetTypeId() == _castedTargetData.getPetTypeId()) { return true; } return false; }
public boolean zNonPrimaryKeyAttributesChanged(MithraDataObject newData, double toleranceForFloatingPointFields) { final PetData other = (PetData) newData; if ( getPersonId() != other.getPersonId()) { return true; } if ( getPetAge() != other.getPetAge()) { return true; } if ( getPetTypeId() != other.getPetTypeId()) { 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()); }
stm.setInt(pos++, data.getPersonId()); stm.setInt(pos++, data.getPetAge()); stm.setInt(pos++, data.getPetTypeId()); if(data.isProcessingDateFromNull())
public void copyNonPkAttributes(MithraDataObject newData) { final PetData petData = (PetData) newData; this.setPersonId(petData.getPersonId()); this.setPetAge(petData.getPetAge()); this.setPetTypeId(petData.getPetTypeId()); this.setProcessingDateFrom(petData.getProcessingDateFrom()); this.setProcessingDateTo(petData.getProcessingDateTo()); }
if (_related == null) _op = PetTypeFinder.petTypeId().eq(_data.getPetTypeId()); Operation detachedOp = PetTypeFinder.petTypeId().eq(_data.getPetTypeId()); _result = PetTypeFinder.zFindOneForRelationship(detachedOp); _op = PetTypeFinder.petTypeId().eq(_data.getPetTypeId());