Skip to content

Commit

Permalink
updated OrientGraph with Lucas required change.
Browse files Browse the repository at this point in the history
  • Loading branch information
okram committed Apr 26, 2011
1 parent da875d7 commit 4c880a2
Showing 1 changed file with 13 additions and 3 deletions.
Expand Up @@ -10,11 +10,21 @@
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.tx.OTransaction.TXSTATUS;
import com.orientechnologies.orient.core.tx.OTransactionNoTx;
import com.tinkerpop.blueprints.pgm.*;
import com.tinkerpop.blueprints.pgm.AutomaticIndex;
import com.tinkerpop.blueprints.pgm.Edge;
import com.tinkerpop.blueprints.pgm.Element;
import com.tinkerpop.blueprints.pgm.Index;
import com.tinkerpop.blueprints.pgm.IndexableGraph;
import com.tinkerpop.blueprints.pgm.TransactionalGraph;
import com.tinkerpop.blueprints.pgm.Vertex;
import com.tinkerpop.blueprints.pgm.impls.orientdb.util.OrientElementSequence;
import com.tinkerpop.blueprints.pgm.util.AutomaticIndexHelper;

import java.util.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
* A Blueprints implementation of the graph database OrientDB (http://www.orientechnologies.com)
Expand Down Expand Up @@ -353,7 +363,7 @@ protected void autoStopTransaction(final Conclusion conclusion) {

private void openOrCreate(final boolean createDefaultIndices) {
this.rawGraph = new OGraphDatabase(url);
if (this.rawGraph.exists()) {
if (url.startsWith("remote:") || this.rawGraph.exists()) {
this.rawGraph.open(username, password);

// LOAD THE INDEX CONFIGURATION FROM INTO THE DICTIONARY
Expand Down

0 comments on commit 4c880a2

Please sign in to comment.