@Override public Map< RelatedFinder, StatisticCounter > zAddNavigatedRelationshipsStats(RelatedFinder finder, Map< RelatedFinder, StatisticCounter > navigationStats) { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _behavior.addNavigatedRelationshipsStats(this, finder, navigationStats); return navigationStats; }
public void zSetNonTxDetachedDeleted() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); CustomerData _newData = (CustomerData) _behavior.getCurrentDataForRead(this); this.zSetNonTxPersistenceState(PersistenceState.DETACHED_DELETED); }
public void insert() throws MithraBusinessException { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); behavior.insert(this); }
@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); }
public void zSetTxDetachedDeleted() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); if (_behavior.isDetached() && _behavior.isDeleted()) return; CustomerData _newData = (CustomerData) _behavior.getCurrentDataForRead(this); this.zSetTxPersistenceState(PersistenceState.DETACHED_DELETED); }
private void checkAndGeneratePrimaryKeys() { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); CustomerData data = (CustomerData) behavior.getCurrentDataForWrite(this); if (!data.zGetIsCustomerIdSet()) { data.setCustomerId(generateCustomerId()); } }