Skip to Content
0
Oct 06, 2009 at 01:52 PM

ReKeyed Copy of a Persistent Object

75 Views

I have a persistent object that has the attributes:

Key1

Key2

Key_EffectiveDate

NonKey1

NonKey2

NonKey3

...

NonKeyn

I'd like to make a persistent copy of an object of this class, changing only the (key) effective date,

and retaining all the non key values.

Is there an easy way to do this?

I do not want to run a method that needs to have all the non-key attributes passed to it.

Rather, I want to run something that looks like

  =>createPersistentCopy(  OldKey = ... .. .
                           NewKey = ... .. .
                           returning newObjectRef ) 

( This is for an app we are creating that uses date delimited objects)

Thanks...

...Mike