@@ -61,7 +61,6 @@ public class Neo4j2Graph implements TransactionalGraph, IndexableGraph, KeyIndex
6161
6262 private static final Logger logger = Logger .getLogger (Neo4j2Graph .class .getName ());
6363
64-
6564 public static GraphDatabaseBuilder createGraphDatabaseBuilder (String directory , Map <String , String > configuration ){
6665 GraphDatabaseBuilder builder = new GraphDatabaseFactory ().newEmbeddedDatabaseBuilder (directory );
6766 if (null != configuration ){
@@ -72,7 +71,6 @@ public static GraphDatabaseBuilder createGraphDatabaseBuilder(String directory,
7271 return builder ;
7372 }
7473
75-
7674 private GraphDatabaseService rawGraph ;
7775 private Neo4j2GraphInternalIndexKeys indexKeys ;
7876
@@ -82,12 +80,6 @@ protected Transaction initialValue() {
8280 }
8381 };
8482
85- protected final ThreadLocal <Boolean > checkElementsInTransaction = new ThreadLocal <Boolean >() {
86- protected Boolean initialValue () {
87- return false ;
88- }
89- };
90-
9183 private static final Features FEATURES = new Features ();
9284
9385 static {
@@ -136,26 +128,13 @@ protected boolean checkElementsInTransaction() {
136128 }
137129
138130 /**
139- * Neo4j's transactions are not consistent between the graph and the graph
140- * indices. Moreover, global graph operations are not consistent. For
141- * example, if a vertex is removed and then an index is queried in the same
142- * transaction, the removed vertex can be returned. This method allows the
143- * developer to turn on/off a Neo4j2Graph 'hack' that ensures transactional
144- * consistency. The default behavior for Neo4j2Graph is to use Neo4j's native
145- * behavior which ensures speed at the expensive of consistency. Note that
146- * this boolean switch is local to the current thread (i.e. a ThreadLocal
147- * variable).
148- *
149- * @param checkElementsInTransaction check whether an element is in the transaction between
150- * returning it
151- *
152131 * @deprecated since Blueprints 2.7.0/Neo4j 2.2.x this method is
153- * no longer required since Neo4j indexes no longer return
154- * deleted elements.
132+ * no longer required - Neo4j indexes no longer return deleted elements.
133+ *
134+ * This method is now a no-op.
155135 */
156136 @ Deprecated
157137 public void setCheckElementsInTransaction (final boolean checkElementsInTransaction ) {
158- this .checkElementsInTransaction .set (checkElementsInTransaction );
159138 }
160139
161140
0 commit comments