Skip to content
Browse files

found some more refactorings to neo4j

  • Loading branch information...
1 parent 8aa8c26 commit 464f1b3d3efd615b97291cbb783fe36d86278914 Peter Neubauer committed Apr 3, 2010
View
2 src/main/scala/com/eptcomputing/neo4j/Neo4jConverters.scala
@@ -16,7 +16,7 @@ import org.neo4j.graphdb._
*
* Feel free to use this example to tell all your friends how awesome scala is :)
*/
-trait NeoConverters {
+trait Neo4jConverters {
class NodeRelationshipMethods(node: Node) {
View
4 src/main/scala/com/eptcomputing/neo4j/rest/Neo4jResource.scala
@@ -15,7 +15,7 @@ import Neo4jJsonConverter._
* override each of the operations with a concise method to perform the desired task.
* See <tt>SimpleNeoResource</tt> for a default implementation.
*/
-abstract class NeoResource extends RequiredParam {
+abstract class Neo4jResource extends RequiredParam {
/**
* Override this method to perform the creation of a Neo4j node based on a given
@@ -104,7 +104,7 @@ abstract class NeoResource extends RequiredParam {
* Simple default implementation of a CRUD resource which maps to a single Neo4j node.
* See <tt>Neo4jJsonConverter</tt> for the format used.
*/
-class SimpleNeoResource extends NeoResource with IteratorConverters {
+class SimpleNeo4jResource extends Neo4jResource with IteratorConverters {
def create(neo: GraphDatabaseService, json: JSONObject) =
jsonToNeo(json, neo, null)
View
2 src/test/scala/com/eptcomputing/neo4j/Neo4jConverterSpec.scala
@@ -8,7 +8,7 @@ import com.jteigen.scalatest.JUnit4Runner
import org.neo4j.graphdb._
@RunWith(classOf[JUnit4Runner])
-class NeoConvertersSpec extends Spec with ShouldMatchers with NeoConverters {
+class NeoConvertersSpec extends Spec with ShouldMatchers with Neo4jConverters {
describe("NeoConverters") {
it("should create a new relationship in --> relType --> notation") {
Neo4jServer.exec { neo =>
View
4 src/test/scala/com/eptcomputing/neo4j/rest/test/ExampleNeo4jResource.scala
@@ -1,12 +1,12 @@
package com.eptcomputing.neo4j.rest.test
import javax.ws.rs.Path
-import com.eptcomputing.neo4j.rest.SimpleNeoResource
+import com.eptcomputing.neo4j.rest.SimpleNeo4jResource
/**
* Example of a RESTful CRUD (create/read/update/delete) resource which maps to a single
* Neo4j node. JSON object fields are mapped to node attributes, and relationships are
* represented explicitly -- see <tt>Neo4jJsonConverter</tt>.
*/
@Path("/neo_resource")
-class ExampleNeoResource extends SimpleNeoResource
+class ExampleNeo4jResource extends SimpleNeo4jResource

0 comments on commit 464f1b3

Please sign in to comment.
Something went wrong with that request. Please try again.