🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14475

Re: Serialization A.K.A. Object Persistence

#14475
From: Hugo Ferreira
Date: Thu, 02 Sep 1999 00:00
44 lines
1877 bytes
Hi Kev,

When you serialize an object, any of its references are also serialized.
If any of the referenced objects do not implement Serializable, then
an exception will be thrown.

You can override serialization partially or fully. You can indicate
which references you do not want to serialize, or you can override the
serialization completelly (see tutorial).

This override of the serialization will permit you to:
1.reconnect to the database.
2.calculate/initilize any new data.

Remember : you may only serialize the button or grid if these are implement
Serializable and all references attached to them do the same.

HTH
Hugo ferreira.


Kevin D <kevind@saccapital.com> wrote in message
news:7qk73p$dd313@forums.borland.com...
> If serialization allows my to freeze-dry an object, can I store the user
> preferences for my GUI.
>
> Say I have a form with a grid that is attached to a database and maybe a
> radio button that indicated what data to select.
>
> Could I save: The column widths, column positions, the sort order with in
> the grid and the radio button selection.
>
> Now if I serialize, I can save these states.
> But what happens to the data in the grid, is it serialized.
>
>
> I want to save my users GUI preferences, only.
>
>
> KD
>
>
>
>
Technical Details
Message-ID: <7qlrh1$f3216@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7qk73p$dd313@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5c74fbb69558dbd8
X-Google-Attributes: gidf74b3,public
From: "Hugo Ferreira" <hmf@inescn.pt>
Subject: Re: Serialization A.K.A. Object Persistence
Date: 1999/09/02
Message-ID: <7qlrh1$f3216@forums.borland.com>
X-Deja-AN: 520147158
References: <7qk73p$dd313@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: INESC Norte
X-MSMail-Priority: Normal
Reply-To: "Hugo Ferreira" <hmf@inescn.pt>
Newsgroups: borland.public.jbuilder.java.language