pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: FW: JDBC + JSONP
Date: Mon, 29 Jun 2015 23:55:23 +0200
Message-ID: <007701d0b2b6$4cc930b0$e65b9210$@eu> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Guys,

 

just received Lance's opinion on the JSONP topic. Following his example's
logic of an application EXPLICITLY PROVIDING a "JsonObject", that
application must be able to process "JsonObject", hence that application's
own responsibility is to provide JSR 353 on the classpath. Such an
application will work with ANY RDBMS and ANY driver, not just PostgreSQL +
PGJDBC. Hence it is superior to any other solution we might discuss, at
least for ISVs like us.

 

Regards

-Markus

 

From: Lance Andersen [mailto:lance.andersen@oracle.com] 
Sent: Montag, 29. Juni 2015 23:30
To: Markus KARG
Subject: Re: JDBC + JSONP

 

Hi Markus,

 

Until  JSON is added to the JDK, which will not be until JDK 10 at the
earliest, I cannot update JDBC.

 

Currently today you can use set/getObject() with vendor specific types:

 

 

 JsonObject o = rs.getObject(1, JsonObject)

 

pstmt.setobject(1, o, vendorType.JSON)

 

 

vendorType.JSON implements SQLType

 

 

Unfortunately I cannot add support for optional classes not included in Java
SE such as the current JsonObject

 

Once json support is added to Java SE, then the question is what really
needs to be there and  we can certainly start a discussion sooner rather
than later. 

 

Best

Lance

 

 <http://oracle.com/us/design/oracle-email-sig-198324.gif; 

 <http://oracle.com/us/design/oracle-email-sig-198324.gif; 
Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
 <mailto:Lance.Andersen@oracle.com> Lance.Andersen@oracle.com

 





 

Attachments:

oracle_sig_logo.gif (image/gif, 658B) download view image

Message-ID: <007701d0b2b6$4cc930b0$e65b9210$@eu>
Permalink:  ../007701d0b2b6$4cc930b0$e65b9210$@eu/
Also on:    postgresql.org/message-id/007701d0b2b6$4cc930b0$e65b9210$@eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: markus@headcrashing.eu
  Subject: Re: FW: JDBC + JSONP
  In-Reply-To: <007701d0b2b6$4cc930b0$e65b9210$@eu>
  References: <007701d0b2b6$4cc930b0$e65b9210$@eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox