|
1 | 1 | package com.tinkerpop.blueprints.impls.orient; |
2 | 2 |
|
| 3 | +import java.io.UnsupportedEncodingException; |
| 4 | +import java.net.URLDecoder; |
| 5 | +import java.net.URLEncoder; |
| 6 | +import java.util.ArrayList; |
| 7 | +import java.util.Arrays; |
| 8 | +import java.util.Collection; |
| 9 | +import java.util.HashSet; |
| 10 | +import java.util.List; |
| 11 | +import java.util.Set; |
| 12 | + |
| 13 | +import org.apache.commons.configuration.Configuration; |
| 14 | + |
3 | 15 | import com.orientechnologies.common.exception.OException; |
4 | 16 | import com.orientechnologies.common.io.OFileUtils; |
5 | 17 | import com.orientechnologies.common.log.OLogManager; |
|
37 | 49 | import com.tinkerpop.blueprints.util.ExceptionFactory; |
38 | 50 | import com.tinkerpop.blueprints.util.StringFactory; |
39 | 51 | import com.tinkerpop.blueprints.util.wrappers.partition.PartitionVertex; |
40 | | -import org.apache.commons.configuration.Configuration; |
41 | | - |
42 | | -import java.io.UnsupportedEncodingException; |
43 | | -import java.net.URLDecoder; |
44 | | -import java.net.URLEncoder; |
45 | | -import java.util.ArrayList; |
46 | | -import java.util.Arrays; |
47 | | -import java.util.Collection; |
48 | | -import java.util.HashSet; |
49 | | -import java.util.List; |
50 | | -import java.util.Set; |
51 | 52 |
|
52 | 53 | /** |
53 | 54 | * A Blueprints implementation of the graph database OrientDB (http://www.orientechnologies.com) |
@@ -861,6 +862,8 @@ public void removeEdge(final Edge edge) { |
861 | 862 | * Underlying database object |
862 | 863 | */ |
863 | 864 | public OrientBaseGraph reuse(final ODatabaseDocumentTx iDatabase) { |
| 865 | + ODatabaseRecordThreadLocal.INSTANCE.set(iDatabase); |
| 866 | + |
864 | 867 | this.url = iDatabase.getURL(); |
865 | 868 | this.username = iDatabase.getUser() != null ? iDatabase.getUser().getName() : null; |
866 | 869 | synchronized (this) { |
|
0 commit comments