-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added fkr.createRelationships procedure
- Loading branch information
Showing
6 changed files
with
210 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.neo4j.faker.core; | ||
|
||
import org.neo4j.graphdb.RelationshipType; | ||
|
||
/** | ||
* Created by keesv on 12/06/2017. | ||
*/ | ||
public class DynRel { | ||
public static RelationshipType get(final String type) { | ||
return new RelationshipType() { | ||
@Override | ||
public String name() { | ||
return type; | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/org/neo4j/faker/proc/RelationshipResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.neo4j.faker.proc; | ||
|
||
import org.neo4j.graphdb.Relationship; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by keesv on 12/06/2017. | ||
*/ | ||
public class RelationshipResult { | ||
public final List<Relationship> relationships; | ||
|
||
public RelationshipResult(List<Relationship> rels) { | ||
this.relationships = rels; | ||
} | ||
|
||
} |