Yes!
 I'm so impressed by the Turbine's beautiful Feature.
Now I can access the first Email Page over 5 - 10 times faster.

Thanks,

youngho

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jon Stevens
Sent: Tuesday, June 27, 2000 4:54 AM
To: Turbine
Subject: Re: Object Saving.


on 6/26/2000 9:38 AM, "John McNally" <[EMAIL PROTECTED]> wrote:

> If you save objects in the user permanent hashtable and they are
> serializable, they will be saved when the user object is removed from the
> session.

for example:

data.getUser().setTemp("data", object)

You can then retrieve it with:

data.getUser().getTemp("data");

if you want it to persist longer than the session (as a serialized byte[] in
the Visitor.OBJECTDATA column), replace set/getTemp with set/getPerm.

i think this is a really cool automatic "feature" in Turbine.

please note that the user must be "logged" in in order for set/getPerm to
work properly. we should probably throw an exception if someone tries to use
set/getPerm and the data.getUser().hasLoggedIn() returns false.

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to