public boolean isProcessingDateFromNull() { return this.getProcessingDateFrom() == null; }
public Timestamp getProcessingDateFrom() { return this.zSynchronizedGetData().getProcessingDateFrom(); }
protected void zCheckOptimisticLocking(MithraTransaction tx, MithraDataObject d, MithraDataObject nd) { PetData newData = (PetData) d; PetData data = (PetData) nd; if (PetFinder.getMithraObjectPortal().getTxParticipationMode(tx).isOptimisticLocking() && !tx.retryOnOptimisticLockFailure() && !newData.getProcessingDateFrom().equals(data.getProcessingDateFrom())) { throw new MithraOptimisticLockException("Optimistic lock failure. "+data.zGetPrintablePrimaryKey()); } }
public void setPrimaryKeyAttributes(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { PetData data = (PetData)dataObj; TimeZone conversionTimeZone = null; pos = setPrimaryKeyAttributesWithoutOptimistic(stm,pos,dataObj,databaseTimeZone,dt); if (PetFinder.getMithraObjectPortal().getTxParticipationMode().isOptimisticLocking()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; dt.setTimestamp(stm, pos, data.getProcessingDateFrom(), false, conversionTimeZone); pos++; } }
dt.setTimestamp(stm, pos, data.getProcessingDateFrom(), false, conversionTimeZone); pos++; if(data.isProcessingDateToNull())
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()); }