Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3B3A86325F1 for ; Tue, 16 Feb 2010 07:13:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95505-08 for ; Tue, 16 Feb 2010 11:13:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f197.google.com (mail-iw0-f197.google.com [209.85.223.197]) by mail.postgresql.org (Postfix) with ESMTP id B26DF632180 for ; Tue, 16 Feb 2010 07:13:26 -0400 (AST) Received: by iwn35 with SMTP id 35so1413437iwn.4 for ; Tue, 16 Feb 2010 03:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=XD3nEP+z6+QytpbvBMozEEjCXyQJtGD5/qGgc0Suk/8=; b=Cqwnr7iyvNwu34qXuwRDECipXFxVdZypfqSIzC2+bV61a/G3gXGhZi43G79H0MxeYH 0Rx8F7ByErwphO/ktT6xfKrgzmOPmzBQvJzvLI5zXeWilJ9XMIV/muADeBe69zI9hNdP SMxfIhSTmWq9gY4yMf1/I1/YZDye6VGAuaGtI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=waIANQSf7hQ38pIU3Rl0KQ1S4VTbBF2PXgGhBjVYYGRUIkI+75pGME+vgkjR5FCnmI E15P5JcREg51DfHRnMt62z+ki4K0Rau3WU6kZmIHZTemLTHLpR/teQfrhWO6U52Qmq+5 TxjxzNIY7hHYGpnYQw6bOE7qffXI1l+sGyK4E= MIME-Version: 1.0 Received: by 10.231.150.4 with SMTP id w4mr1053502ibv.58.1266318805166; Tue, 16 Feb 2010 03:13:25 -0800 (PST) Date: Tue, 16 Feb 2010 06:13:25 -0500 Message-ID: <98bbb46a1002160313m25967352s8b59e480e778d5c4@mail.gmail.com> Subject: Correct way to send a composite type to Postgres From: Jason Tesser To: pgsql-jdbc Content-Type: multipart/alternative; boundary=0016e68dd2848de994047fb5d251 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.739 tagged_above=-10 required=5 tests=BAYES_20=-0.74, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201002/27 X-Sequence-Number: 20314 --0016e68dd2848de994047fb5d251 Content-Type: text/plain; charset=ISO-8859-1 I have a composite type that is an IN parameter for a Stored Function. How do I construct the type in Java? I know in Postgres I can do row(...) I was hoping for something a little more Javaish instead to having to build that String. Can I extend PGObject to accomplish this? Thanks, Jason Tesser dotCMS Lead Development Manager 1-305-858-1422 --0016e68dd2848de994047fb5d251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have a composite type that is an IN parameter for a Stored Function.=A0 H= ow do I construct the type in Java?

I know in Postgres I can do row(= ...)=A0 I was hoping for something a little more Javaish instead to having = to build that String.

Can I extend PGObject to accomplish this?

Thanks,<= br>Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422
--0016e68dd2848de994047fb5d251--