[GemStone-Smalltalk] Transcient instance variable

Richard Sargent via GemStone-Smalltalk gemstone-smalltalk at lists.gemtalksystems.com
Mon Nov 10 14:56:24 PST 2014


Gemstone/S mailing list wrote
> I'm considering some refactoring that would benefit from having access to
> transcient instance variables.
> Something like SessionTemps, but stored on an instance variable and
> cleared on each abort or commit.
> It would be used to store pending updates. We do that now with a wrapper
> object, which works fine, 
> but the code would be cleaner if the domain object wrapped the pending
> updates instead.

Hi Bob,

You could use DbTransient instances in the instance variable. They might do
what you need.
Refer to the Programming Guide. The 3.1 guide has details in section 3.3,
Creating Classes with Special Cases of Persistence.




--
View this message in context: http://forum.world.st/Transcient-instance-variable-tp4789442p4789549.html
Sent from the Gemstone/S mailing list archive at Nabble.com.


More information about the GemStone-Smalltalk mailing list