Merge branch 'master' of github.com:SpringSource/spring-data-graph

This commit is contained in:
Michael Hunger
2011-02-25 00:40:26 +01:00
2 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@
<packaging>jar</packaging>
<name>Spring Data Neo4J Roo Support</name>
<properties>
<aspectj.version>1.6.10.RELEASE</aspectj.version>
<aspectj.version>1.6.11.BUILD-SNAPSHOT</aspectj.version>
</properties>
<dependencies>

View File

@@ -30,7 +30,7 @@ import java.util.Map;
public class Neo4jTemplate implements Neo4jOperations {
private final boolean useExplictTransactions;
private final boolean useExplicitTransactions;
private final GraphDatabaseService graphDatabaseService;
@@ -51,7 +51,7 @@ public class Neo4jTemplate implements Neo4jOperations {
* @param graphDatabaseService the neo4j graph database
* @return a Neo4jTemplate instance
*/
public static Neo4jTemplate templateWithExplictTransactions(GraphDatabaseService graphDatabaseService) {
public static Neo4jTemplate templateWithExplicitTransactions(GraphDatabaseService graphDatabaseService) {
return new Neo4jTemplate(graphDatabaseService,true);
}
@@ -66,13 +66,13 @@ public class Neo4jTemplate implements Neo4jOperations {
/**
* @param graphDatabaseService the neo4j graph database
* @param useExplictTransactions if set the template only participates in outside transactions,
* @param useExplicitTransactions if set the template only participates in outside transactions,
* no internal implicit transactions are started
* @return a Neo4jTemplate instance
*/
public Neo4jTemplate(final GraphDatabaseService graphDatabaseService, boolean useExplictTransactions) {
public Neo4jTemplate(final GraphDatabaseService graphDatabaseService, boolean useExplicitTransactions) {
notNull(graphDatabaseService, "graphDatabaseService");
this.useExplictTransactions = useExplictTransactions;
this.useExplicitTransactions = useExplicitTransactions;
this.graphDatabaseService = graphDatabaseService;
index = this.graphDatabaseService.index();
}
@@ -82,7 +82,7 @@ public class Neo4jTemplate implements Neo4jOperations {
}
private Transaction beginTx() {
if (useExplictTransactions) {
if (useExplicitTransactions) {
return new NullTransaction();
}
return graphDatabaseService.beginTx();