Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.Transaction.finish()


  public void run(final SocialGraph graph) {
    final Transaction transaction = graph.beginTx();
    if (this.execute(graph)) {
      transaction.success();
    }
    transaction.finish();
    this.servlet.finish();
  }

  /**
   * operation execution to be implemented by the social graph
View Full Code Here


    try {
      NeoUtils.createStatusUpdateNode(statusUpdateId);
      transaction.success();
    } finally {
      transaction.finish();
    }
  }

  @BeforeClass
  public static void beforeClass() {
View Full Code Here

        USERS[i].setProperty(Properties.User.PROFILE_PICTURE_PATH,
            "google.de/somepic");
      }
      transaction.success();
    } finally {
      transaction.finish();
    }
  }

  public static void setUp() {
    final TestConfiguration config = new TestConfiguration();
View Full Code Here

      NeoUtils.storeStatusUpdateTemplateNode(graphDatabase,
          template.getName(), templateNode, previousTemplateNode);

      transaction.success();
    } finally {
      transaction.finish();
    }
  }

  /**
   * load the status update allowed
View Full Code Here

            fromrecord = torecord;
        }

        // Commit transaction
        tx.success();
        tx.finish();

    }

    public static void main(String[] args) throws IOException, FunctionEvaluationException {
        // Retrieve all GPX files to import
View Full Code Here

            System.out.println( "TOTAL TIME: "+endTime + " AVG TIME: "+endTime/27 );
            tx.success();
        }
        finally
        {
            tx.finish();
        }       
    }
   

    @AfterClass
View Full Code Here

            }       
            tx.success();
        }
        finally
        {
            tx.finish();
        }
    }

    private void connectHubs( List<Hub> hubList1, List<Hub> hubList2 )
    {
View Full Code Here

            System.out.println( "Walk Relationships: " + count );
            tx.success();
        }
        finally
        {
            tx.finish();
        }
    }

    /**
     * Connect Hubs to a transfer hub
View Full Code Here

            transferFromHubTransfer( hubTransfer2, hub1 );
            tx.success();
        }
        finally
        {
            tx.finish();
        }
    }

    /**
     * hub1---(transfer2)-->hubTransfer1
 
View Full Code Here

                }
                tx.success();
            }
            finally
            {
                tx.finish();
            }
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.