jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1196065 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java
Date Tue, 01 Nov 2011 15:46:47 GMT
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()) ;
+    }
+    
 }



Mime
View raw message