[Pljava-dev] Question regarding triggers and data visibility

Burtenshaw, John J. JBurtenshaw at cooperstandard.com
Mon Nov 14 14:14:10 UTC 2005


Thanks Rakesh.  I found a couple of mailing lists that suggest putting the results to a collection which should be simple enough.  I'm sure this will work fine for me!

Regards,
John Burtenshaw




-----Original Message-----
From: pljava-dev-bounces at gborg.postgresql.org on behalf of Rakesh Vidyadharan
Sent: Mon 11/14/2005 9:08 AM
Cc: Pljava-dev at gborg.postgresql.org
Subject: Re: [Pljava-dev] Question regarding triggers and data visibility
 

On 14 Nov 2005, at 07:59, Burtenshaw, John J. wrote:

>
> Rakesh: You are right that I should be able to pass the new  
> information to the Daemon through the network but the one  
> inconvenient problem is that the ResultSet object is not  
> serializable which is a requirement for RMI objects.  I suppose I  
> could break the result down to a serialized string stream or  
> something to that effect.  Can you think of another way?
I do not know any other convenient way to pass the information.  I  
think the easiest way is to create a transfer object.  If you have  
created PGobject sub-classes to represent your data, then you already  
have it.  If not, just create a custom transfer object and pass that  
to the RMI object.  You can also pass custom strings, or XML if  
performance is not an absolute must.  You can easily create the  
transfer object or String representation from the information in the  
Trigger.

Rakesh



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pljava-dev/attachments/20051114/7258486a/attachment.html 


More information about the Pljava-dev mailing list