You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by rv...@apache.org on 2013/04/01 23:47:49 UTC

svn commit: r1463309 - /jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java

Author: rvesse
Date: Mon Apr  1 21:47:49 2013
New Revision: 1463309

URL: http://svn.apache.org/r1463309
Log:
Set up tests for TDB driver

Modified:
    jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java

Modified: jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java
URL: http://svn.apache.org/viewvc/jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java?rev=1463309&r1=1463308&r2=1463309&view=diff
==============================================================================
--- jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java (original)
+++ jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/TDBDriver.java Mon Apr  1 21:47:49 2013
@@ -20,6 +20,7 @@ package org.apache.jena.jdbc.tdb;
 
 import java.sql.Connection;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.util.Properties;
 
 import org.apache.jena.jdbc.JenaJdbcConnection;
@@ -49,6 +50,10 @@ import com.hp.hpl.jena.tdb.TDBFactory;
  * create a new empty TDB dataset in that location if a TDB dataset does not
  * already exist.
  * </p>
+ * <p>
+ * The {@code transactional} parameter indicates whether to use the dataset in
+ * transactional mode, this feature is not yet supported.
+ * </p>
  */
 public class TDBDriver extends JenaJdbcDriver {
     
@@ -96,7 +101,7 @@ public class TDBDriver extends JenaJdbcD
         
         if ("true".equals(transactional)) {
             // TODO If transactional is set use the dataset in transactional mode - needs a Transactional connection instance
-            throw new SQLException("Transactional usage of TDB not yet supported by the Jena JDBC driver");
+            throw new SQLFeatureNotSupportedException("Transactional usage of TDB not yet supported by the Jena JDBC driver");
         } else {
             // Return a JenaJdbcDatasetConnection for the TDB dataset
             return (Connection) new JenaJdbcDatasetConnection(tdb, JenaJdbcConnection.DEFAULT_HOLDABILITY);