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/03 18:50:13 UTC

svn commit: r1464101 - in /jena/Experimental/jena-jdbc: jena-jdbc-core/src/main/java/org/apache/jena/jdbc/ jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/

Author: rvesse
Date: Wed Apr  3 16:50:13 2013
New Revision: 1464101

URL: http://svn.apache.org/r1464101
Log:
Get SVN to name files what I originally wanted (renaming in SVN is annoying)

Added:
    jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JenaJDBC.java
Removed:
    jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JDBC.java
Modified:
    jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/AbstractTdbResultSetTests.java

Added: jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JenaJDBC.java
URL: http://svn.apache.org/viewvc/jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JenaJDBC.java?rev=1464101&view=auto
==============================================================================
--- jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JenaJDBC.java (added)
+++ jena/Experimental/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/JenaJDBC.java Wed Apr  3 16:50:13 2013
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jena.jdbc;
+
+import com.hp.hpl.jena.sparql.lib.Metadata;
+
+/**
+ * Root class for Jena JDBC
+ *
+ */
+public class JenaJDBC {
+
+    private JenaJDBC() { }
+    
+    /** The root package name for ARQ */   
+    public static final String PATH         = "org.apache.jena.jdbc";
+   
+    static private String metadataLocation  = "org/apache/jena/jdbc/jdbc-properties.xml" ;
+
+    static private Metadata metadata        = new Metadata(metadataLocation) ;
+   
+    /** The full name of the current ARQ version */   
+    public static final String VERSION      = metadata.get(PATH+".version", "unknown") ;
+   
+    /** The date and time at which this release was built */   
+    public static final String BUILD_DATE   = metadata.get(PATH+".build.datetime", "unset") ;
+
+}

Modified: jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/AbstractTdbResultSetTests.java
URL: http://svn.apache.org/viewvc/jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/AbstractTdbResultSetTests.java?rev=1464101&r1=1464100&r2=1464101&view=diff
==============================================================================
--- jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/AbstractTdbResultSetTests.java (original)
+++ jena/Experimental/jena-jdbc/jena-jdbc-driver-tdb/src/test/java/org/apache/jena/jdbc/tdb/results/AbstractTdbResultSetTests.java Wed Apr  3 16:50:13 2013
@@ -22,8 +22,8 @@ import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
 
-import org.apache.jena.jdbc.mem.DebugMemConnection;
 import org.apache.jena.jdbc.results.AbstractResultSetTests;
+import org.apache.jena.jdbc.tdb.DebugTdbConnection;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
 
@@ -36,7 +36,7 @@ import com.hp.hpl.jena.vocabulary.XSD;
  */
 public abstract class AbstractTdbResultSetTests extends AbstractResultSetTests {
 
-    private static DebugMemConnection connection;
+    private static DebugTdbConnection connection;
 
     /**
      * Sets up the tests by creating a fake connection for test use
@@ -44,7 +44,7 @@ public abstract class AbstractTdbResultS
      */
     @BeforeClass
     public static void setup() throws SQLException {
-        connection = new DebugMemConnection();
+        connection = new DebugTdbConnection();
     }
 
     /**