Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 96087 invoked from network); 25 Jan 2011 18:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2011 18:35:05 -0000 Received: (qmail 95293 invoked by uid 500); 25 Jan 2011 18:35:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 95249 invoked by uid 500); 25 Jan 2011 18:35:04 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 95242 invoked by uid 99); 25 Jan 2011 18:35:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 18:35:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 18:35:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0PIYhXP012506 for ; Tue, 25 Jan 2011 18:34:43 GMT Message-ID: <9557733.196011295980483479.JavaMail.jira@thor> Date: Tue, 25 Jan 2011 13:34:43 -0500 (EST) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4869) Implement JDBC 4.1, the api increment introduced by Java 7 In-Reply-To: <18489786.105421288207880307.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-4869: --------------------------------- Attachment: derby-4869-18-aa-getSetSchema.diff Attaching derby-4869-18-aa-getSetSchema.diff. This patch implements the new JDBC 4.1 methods Connection.getSchema() and Connection.setSchema(). I am running regression tests now. This patch takes advantage of existing shortcuts for getSchema() in both the embedded and network cases. The setSchema() method has more error paths so I opted for implementing it on top of the SQL layer. We may want to revisit this implementation if it causes a performance drag in the wild. Touches the following files: ----------- M java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java M java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection.java M java/engine/org/apache/derby/iapi/jdbc/EngineConnection.java Embedded implementation. ----------- M java/client/org/apache/derby/client/am/Connection.java M java/client/org/apache/derby/client/am/LogicalConnection.java Network implementation. ----------- M java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/Wrapper41Conn.java M java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ConnectionMethodsTest.java Tests. > Implement JDBC 4.1, the api increment introduced by Java 7 > ---------------------------------------------------------- > > Key: DERBY-4869 > URL: https://issues.apache.org/jira/browse/DERBY-4869 > Project: Derby > Issue Type: Improvement > Components: JDBC > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Attachments: derby-4869-01-ac-rs-getObject.diff, derby-4869-01-ad-rs-getObject.diff, derby-4869-02-aa-cs-ps-addBatch.diff, derby-4869-02-ab-cs-ps-addBatch.diff, derby-4869-03-aa-rs-getObject-errorCleanup.diff, derby-4869-04-aa-rs-getObject-simplification.diff, derby-4869-05-aa-rs-getObject-exception.diff, derby-4869-06-aa-cs-getObject.diff, derby-4869-06-ab-cs-getObject.diff, derby-4869-07-aa-timedisplacement.diff, derby-4869-08-ac-nullHandling.diff, derby-4869-09-ac-abort.diff, derby-4869-10-aa-abortSecurityTest.diff, derby-4869-11-aa-abortHidePrivates.diff, derby-4869-12-aa-xaAndPooledAborts.diff, derby-4869-13-aa-xaAndPooledAbortsSecurityManager.diff, derby-4869-14-ac-closeOnCompletion.diff, derby-4869-15-aa-autoGenKeys.diff, derby-4869-16-aa-clarifyStatementSpec.diff, derby-4869-17-aa-statementTimeoutException.diff, derby-4869-18-aa-getSetSchema.diff, derby-4869-exp-01-aa-noTryCatch.diff, disable-tests.diff, JDBC_4.1_Changes.html, timezone.diff > > > This is a master issue logged to track our work implementing JDBC 4.1, the changes to the java.sql and javax.sql packages introduced by Java 7. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.