You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/11/01 16:46:47 UTC

svn commit: r1196065 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java

Author: andy
Date: Tue Nov  1 15:46:46 2011
New Revision: 1196065

URL: http://svn.apache.org/viewvc?rev=1196065&view=rev
Log:
Add StoreConnection createMemUncached

Modified:
    incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java

Modified: incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java?rev=1196065&r1=1196064&r2=1196065&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java (original)
+++ incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java Tue Nov  1 15:46:46 2011
@@ -114,7 +114,7 @@ public class StoreConnection
         cache.remove(location) ;
     }
     
-    /** Return a StoreConnection for a particular conenction.  
+    /** Return a StoreConnection for a particular connection.  
      * This is used to create transactions for the database at the location.
      */ 
     public static synchronized StoreConnection make(Location location)
@@ -133,4 +133,12 @@ public class StoreConnection
         }
         return sConn ; 
     }
+    
+    /** Return a StoreConnection backed by in-memory datastructures (for testing).
+     */ 
+    public static StoreConnection createMemUncached()
+    {
+        return new StoreConnection(Location.mem()) ;
+    }
+    
 }