X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7216152849 for ; Tue, 28 Jun 2005 15:55:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22692-02 for ; Tue, 28 Jun 2005 18:55:27 +0000 (GMT) Received: from genomemail.chop.edu (genomemail.chop.edu [159.14.214.193]) by svr1.postgresql.org (Postfix) with ESMTP id C681152A17 for ; Tue, 28 Jun 2005 15:55:25 -0300 (ADT) Received: from [159.14.214.141] ([159.14.214.141]) BY genomemail.chop.edu ([159.14.214.193]) WITH ESMTP (4D WebSTAR V Mail (5.3.4)); Tue, 28 Jun 2005 14:55:26 -0400 Message-ID: <42C19D1D.30809@genome.chop.edu> Date: Tue, 28 Jun 2005 14:55:25 -0400 From: Kevin Murphy User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: OT: easiest way to create a custom PreparedStatement class Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.03 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/143 X-Sequence-Number: 13105 I am modifying some existing data loading code (that only makes use of 4 or 5 methods from PreparedStatement) to optionally be able to *not* connect to a database but instead dump either the generated SQL code or the raw insert data to files on the file system. It would be great if I could just overload PreparedStatement with my own classes, but unfortunately it is an interface, so I presumably need to implement stubs for the umpty-ump methods defined by PreparedStatement? Is this true, and if so, what is the easiest/fastest way to do this (if it is even possible)? I am a java newbie, by the way. Don't flame me too hard. I did say "OT", after all ;-) Thanks, Kevin