public void zSetNonTxDetachedDeleted() { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); AccountBalanceData _newData = (AccountBalanceData) behavior.getCurrentDataForRead(this); this.zSetNonTxPersistenceState(DatedPersistenceState.DETACHED_DELETED); }
public AccountBalance getDetachedCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); Timestamp[] asOfAttributes = new Timestamp[2]; asOfAttributes[0] = this.businessDate; asOfAttributes[1] = this.processingDate; AccountBalanceAbstract result = (AccountBalanceAbstract) behavior.getDetachedCopy(this, asOfAttributes); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.DETACHED); } return (AccountBalance ) result; }
public void zSetTxDetachedDeleted() { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); if (behavior.isDetached() && behavior.isDeleted()) return; AccountBalanceData _newData = (AccountBalanceData) behavior.getCurrentDataForRead(this); this.zSetTxPersistenceState(DatedPersistenceState.DETACHED_DELETED); }
public AccountBalance getNonPersistentCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); MithraDataObject data = behavior.getCurrentDataForRead(this); MithraDataObject newData = data.copy(!behavior.isPersisted()); Timestamp[] asOfAttributes = new Timestamp[2]; asOfAttributes[0] = this.businessDate; asOfAttributes[1] = this.processingDate; AccountBalanceAbstract result = (AccountBalanceAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (AccountBalance ) result; }