RE: JDBC: Getting started with Serialization

From: "SHARMA, Vivek, GNW IT" <Vivek(dot)Sharma(at)greenwichnatwest(dot)com>
To: "'Peter Mount'" <peter(at)retep(dot)org(dot)uk>
Cc: "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: JDBC: Getting started with Serialization
Date: 1999-12-23 12:02:26
Message-ID: F370715B4543D211B9E00008C7A4A2880200C5C8@lonxpr0212.lon.grnw.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Thank you for your prompt reply. Judging by your email, I think that I have
actually tried what you have said -- it is nice to know that I am not
completely on the wrong path :-).

You asked if I could send you some further details regarding this error:

>>> * Trying to use the create(Connection db, Class c) or create(Connection
db,
>>> Object o) methods I just get a null pointer exception.

>> Can you send me some more details on this please.

Unfortunately there is not much detail that I can forward to you at this
point in time. That was the only exception raised and my source code is at
home (this is my work email account) and so I can not forward it to you from
here.

I think I have already done most of what you suggested. However I do have a
few questions. In your example, why is there a variable called sting? Is it
there purely as an example or is it meant to signify something?

> package mypackage;
> public class myclass implements Serializable
> {
> public long oid;
> public String string;
>}

Also what is the "type" parameter (of Type String) in the Serialize
constuctor meant to be for?

I have downloaded the source code for postgres to look at the driver code.
However I can see no example there for using Serialization. However, I
should be able to see how it all works by looking through the source driver.

Regards,

Viv.

********************************************************************
This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
********************************************************************

Browse pgsql-interfaces by date

  From Date Subject
Next Message Enrique Rodriguez Lazaro 1999-12-23 12:10:18 Re: [ADMIN] Ghost insert
Previous Message Enrique Rodriguez Lazaro 1999-12-23 10:27:01 Re: [ADMIN] Ghost insert