public Customer getNonPersistentCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); MithraDataObject data = behavior.getCurrentDataForRead(this); MithraDataObject newData = data.copy(!behavior.isPersisted()); Timestamp[] asOfAttributes = new Timestamp[1]; asOfAttributes[0] = this.processingDate; CustomerAbstract result = (CustomerAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (Customer ) result; }
public CustomerAccount getNonPersistentCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); MithraDataObject data = behavior.getCurrentDataForRead(this); MithraDataObject newData = data.copy(!behavior.isPersisted()); Timestamp[] asOfAttributes = new Timestamp[1]; asOfAttributes[0] = this.processingDate; CustomerAccountAbstract result = (CustomerAccountAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (CustomerAccount ) result; }
public Task getNonPersistentCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); MithraDataObject data = behavior.getCurrentDataForRead(this); MithraDataObject newData = data.copy(!behavior.isPersisted()); Timestamp[] asOfAttributes = new Timestamp[1]; asOfAttributes[0] = this.processingDate; TaskAbstract result = (TaskAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (Task ) result; }
public Pet getNonPersistentCopy() throws MithraBusinessException { DatedTransactionalBehavior behavior = this.zGetTransactionalBehavior(); MithraDataObject data = behavior.getCurrentDataForRead(this); MithraDataObject newData = data.copy(!behavior.isPersisted()); Timestamp[] asOfAttributes = new Timestamp[1]; asOfAttributes[0] = this.processingDate; PetAbstract result = (PetAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (Pet ) result; }
public Employee 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; EmployeeAbstract result = (EmployeeAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (Employee ) result; }
public Customer 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; CustomerAbstract result = (CustomerAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (Customer ) result; }
public CustomerAccount 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; CustomerAccountAbstract result = (CustomerAccountAbstract) ((MithraDatedObjectFactory) this.zGetPortal().getMithraDatedObjectFactory()).createObject(newData, asOfAttributes); result.zSetNonTxPersistenceState(MEMORY_STATE); if (result.transactionalState != null) { result.zSetTxPersistenceState(DatedPersistenceState.IN_MEMORY); } return (CustomerAccount ) result; }
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; }