Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9h2V-0001NG-AE for pgsql-jdbc@arkaria.postgresql.org; Mon, 29 Jun 2015 21:56:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z9h2U-0001Az-LO for pgsql-jdbc@arkaria.postgresql.org; Mon, 29 Jun 2015 21:56:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9h1Z-0000Jg-D6 for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 21:55:33 +0000 Received: from smtprelay04.ispgateway.de ([80.67.31.31]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9h1R-0007JM-QY for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 21:55:32 +0000 Received: from [88.66.2.69] (helo=Zauselmaus) by smtprelay04.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9h1P-0002Zh-Ow for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 23:55:23 +0200 From: "Markus KARG" To: "'List'" Subject: FW: JDBC + JSONP Date: Mon, 29 Jun 2015 23:55:23 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <007701d0b2b6$4cc930b0$e65b9210$@eu> MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_000_0078_01D0B2C7.105200B0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdCysrx9mYFZRKzhSDajEMHYLSg49wAArpIw Content-Language: de X-AVK-Virus-Check: AVA 25.2250;789163EA X-AVK-Spam-Check: 1; str=0001.0A0C0205.5591BECB.0139,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. ------=_NextPart_000_0078_01D0B2C7.105200B0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0079_01D0B2C7.105227C0" ------=_NextPart_001_0079_01D0B2C7.105227C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 Lance.Andersen@oracle.com ------=_NextPart_001_0079_01D0B2C7.105227C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 =3D = 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

 

<= /span>


=
Lance = Andersen| Principal Member of Technical Staff | = +1.781.442.2037
Oracle Java = Engineering 
1 Network Drive 
Burlington, MA = 01803
Lance.Ander= sen@oracle.com

 



 

------=_NextPart_001_0079_01D0B2C7.105227C0-- ------=_NextPart_000_0078_01D0B2C7.105200B0 Content-Type: image/gif; name="oracle_sig_logo.gif" Content-Transfer-Encoding: base64 Content-ID: R0lGODlhcgAaAMQAAP8QEP/w8P/Q0P/g4P8wMP9gYP8gIP+goP9QUP+QkP+wsP9wcP+AgP9AQP/A wP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAA AAAALAAAAAByABoAAAX/ICSOZGmeaKqubOu+cCzPdC0GCqPvvBKUDp5wp1gFdIPVIDfcOQa6A8yR aO4gweQoUHh4v2Bw4SdihM9egyBF8ALIpkEXDR44vA2XwkD/IgYGAAZbbX1nBGRmhl8AWiUJYicC AIsPDFh4LXOGjQ4NAAhrEIUPBQcOqKmoB5sEZV4JqqoHhQVxlGAOJQG4AAunsqg/dw95KwdfBgzB qKIEBMaQDwCiKpOwEIq6KANuJg14igZwEHPULMTGKbxetjF8D1ItxK7aKl8lCl8DAfALW1+2rUi3 QtqgGN2mwYCXzYvAON624LoEQZ9DEfRcEFSBIE2DjyBDfnyIqRgMcA8a/z5AZQWXOxEdHxwUgfIg sX/zMqlAWclVCQFefLpAqdJBAFJn3owgtpJEQkslEWjUmYLnomokcDlS4s0eFzQNqvXDEyzmAwFP yaXYmGJBuxlzELWIacueiE0AFGyF4HbaNTquUEpFRxUFUC9YXQzARYAkEJSNipKQ9kDu0i9SKKNZ 9iXswMIoYgI4oJYFskpgzkkmcdrviELqmPVt1HpRAaaLqCE1lBgjvEpqRtgl8Tevygd7TcCuiKvP m8OVEkAIYLYPThSsRIpEQJr1x94QBIT09FH6QJC6AiRAoB1kEb7tRb4MvyB+AwSlbejfz7+///8A BijggAQWaOCBCCao4A+CDDbo4IMQRijhhBQKGAIAOw== ------=_NextPart_000_0078_01D0B2C7.105200B0--