[GemStone-Smalltalk] Transcient instance variable

Dale Henrichs via GemStone-Smalltalk gemstone-smalltalk at lists.gemtalksystems.com
Mon Nov 10 15:16:42 PST 2014


Richard and Bob,

dbTransient instance variables are only cleared when a persistent object is
faulted in from disk/SPC, not at transaction boundaries as Bob appears to
need ...

Dale

On Mon, Nov 10, 2014 at 2:56 PM, Richard Sargent via GemStone-Smalltalk <
gemstone-smalltalk at lists.gemtalksystems.com> wrote:

> 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.
> _______________________________________________
> GemStone-Smalltalk mailing list
> GemStone-Smalltalk at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/gemstone-smalltalk/attachments/20141110/c278c369/attachment.html>


More information about the GemStone-Smalltalk mailing list