Exemplo n.º 1
0
 /** Constructs a new TitanTransaction configuration with default configuration parameters. */
 public TransactionConfig(GraphDatabaseConfiguration graphConfig, boolean threadBound) {
   this.isReadOnly = graphConfig.isReadOnly();
   this.assignIDsImmediately = graphConfig.hasFlushIDs();
   this.defaultTypeMaker = graphConfig.getDefaultTypeMaker();
   if (graphConfig.isBatchLoading()) {
     verifyUniqueness = false;
     verifyVertexExistence = false;
     acquireLocks = false;
   } else {
     verifyUniqueness = true;
     verifyVertexExistence = true;
     acquireLocks = true;
   }
   this.threadBound = threadBound;
   singleThreaded = threadBound;
 }