protected void cascadeDeleteImpl() throws MithraBusinessException { this.delete(); }
public int generateAndSetCustomerId() { int nextValue =(int) this.generateCustomerId(); this.setCustomerId(nextValue); return nextValue; }
public boolean isModifiedSinceDetachmentByDependentRelationships() { if(this.isModifiedSinceDetachment()) return true; return false; }
public void insert() throws MithraBusinessException { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); behavior.insert(this); }
public void zSetNonTxDetachedDeleted() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); CustomerData _newData = (CustomerData) _behavior.getCurrentDataForRead(this); this.zSetNonTxPersistenceState(PersistenceState.DETACHED_DELETED); }
private void checkAndGeneratePrimaryKeys() { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); CustomerData data = (CustomerData) behavior.getCurrentDataForWrite(this); if (!data.zGetIsCustomerIdSet()) { data.setCustomerId(generateCustomerId()); } }
public void zSetTxDetachedDeleted() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); if (_behavior.isDetached() && _behavior.isDeleted()) return; CustomerData _newData = (CustomerData) _behavior.getCurrentDataForRead(this); this.zSetTxPersistenceState(PersistenceState.DETACHED_DELETED); }
public Customer copyDetachedValuesToOriginalOrInsertIfNew() { return (Customer) this.zCopyDetachedValuesToOriginalOrInsertIfNew(); }
public Customer getOriginalPersistentObject() { return this.zFindOriginal(); }
@Override public Map< RelatedFinder, StatisticCounter > zAddNavigatedRelationshipsStats(RelatedFinder finder, Map< RelatedFinder, StatisticCounter > navigationStats) { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _behavior.addNavigatedRelationshipsStats(this, finder, navigationStats); return navigationStats; }
public void setCustomerId(int newValue) { zSetInteger(CustomerFinder.customerId(), newValue, true, false ,false); }
public boolean zGetIsCustomerIdSet() { TransactionalBehavior behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); CustomerData data = (CustomerData) behavior.getCurrentDataForRead(this); return data.zGetIsCustomerIdSet(); }
@Override public Customer zCascadeCopyThenInsert() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); Customer original = (Customer) _behavior.copyThenInsert(this); return original; }
protected void cascadeInsertImpl() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); _behavior.insert(this); }