Re: java object store

From: Felipe Schnack <felipes(at)ritterdosreis(dot)br>
To: Erik Price <eprice(at)ptc(dot)com>
Cc: dragos <mesaje(at)home(dot)ro>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: java object store
Date: 2003-08-04 14:16:41
Message-ID: 20030804111641.11de4adc.felipes@ritterdosreis.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

You could also store the object in an bytea field...
And to call the methods, you could use reflection. You just have to get these bytes from the database and call ClassLoader.defineClass()... very nice :-)

On Mon, 04 Aug 2003 10:02:39 -0400
Erik Price <eprice(at)ptc(dot)com> wrote:

>
>
> dragos wrote:
>
> > i am a new user of postgres system. I am trying to store a java object
> > into a postgresql table. I try but i didn;t succeed!
> >
> > my question is:
> > Can I store a java object into a postgres table an execute query
> > relative to it's methods in the database?
>
> You can serialize the object and then store the serialized form of the
> object into a BLOB column. However, you will not be able to query the
> database on methods. Perhaps you can investigate object/relational
> mapping (JDO, OJB, Torque, Hibernate, etc).
>
> > *Email has finally evolved* - *_Click Here_*
>
> A blinking image in an email is "evolution"?
>
> ;)
>
>
>
> Erik
>
>
> Erik
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--

/~\ The ASCII Felipe Schnack (felipes(at)ritterdosreis(dot)br)
\ / Ribbon Campaign Analista de Sistemas
X Against HTML Cel.: 51-91287530
/ \ Email! Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter(at)ritterdosreis(dot)br
Fone: 51-32303341

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Felipe Schnack 2003-08-04 14:17:48 Re: Server side resultset search (for performance reasons)
Previous Message Nic 2003-08-04 14:15:51 Re: Server side resultset search (for performance reasons)