eu.fakod.neo4jscala

Neo4jWrapper

trait Neo4jWrapper extends GraphDatabaseServiceProvider with Neo4jWrapperImplicits

Extend your class with this trait to get really neat new notation for creating new relationships. For example, ugly Java-esque code like:

val knows = DynamicRelationshipType.withName("KNOWS")
start.createRelationshipTo(intermediary, knows)
intermediary.createRelationshipTo(end, knows)

can be replaced with a beautiful Scala one-liner:

start --> "KNOWS" --> intermediary --> "KNOWS" --> end

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Neo4jWrapper
  2. Neo4jWrapperImplicits
  3. GraphDatabaseServiceProvider
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class NodeToCaseClass extends AnyRef

    for serialization

Abstract Value Members

  1. abstract val ds: DatabaseService

    Definition Classes
    GraphDatabaseServiceProvider

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createNode(cc: AnyRef, labels: String*)(implicit ds: DatabaseService): Node

    convenience method to create and serialize a case class

  9. def createNode(labels: String*)(implicit ds: DatabaseService): Node

    creates a new Node from Database service

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def findNodesByLabelAndProperty(label: String, key: String, value: Any)(implicit ds: DatabaseService): Iterable[Node]

    Returns all nodes with the specified labels matching the given predicate.

    Returns all nodes with the specified labels matching the given predicate.

    label

    the label name to which to confine the search.

    key

    the node property whose value to match.

    value

    the property value to match. Must adhere to Neo4j allowed property types.

    returns

    All nodes matching the given predicate with the supplied label.

  14. implicit def fn2ReturnableEvaluator(e: (TraversalPosition) ⇒ Boolean): ReturnableEvaluator

    creates a functional correct ReturnableEvaluator instance

    creates a functional correct ReturnableEvaluator instance

    Definition Classes
    Neo4jWrapperImplicits
  15. implicit def fn2StopEvaluator(e: (TraversalPosition) ⇒ Boolean): StopEvaluator

    creates a functional correct StopEvaluator instance

    creates a functional correct StopEvaluator instance

    Definition Classes
    Neo4jWrapperImplicits
  16. def getAllNodes(implicit ds: DatabaseService): Iterable[Node]

    Returns all nodes in the node space.

    Returns all nodes in the node space.

    returns

    all nodes in the node space

  17. def getAllNodesWithLabel(label: String)(implicit ds: DatabaseService): Iterable[Node]

    Returns all nodes of the specified label.

    Returns all nodes of the specified label.

    label

    the name of the label under which to confine the search

    returns

    all nodes with the specified label.

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def getNodeById(id: Long)(implicit ds: DatabaseService): Node

    Looks up a node by id.

    Looks up a node by id.

    id

    the id of the node

    returns

    the node with id id if found

    Exceptions thrown
    NotFoundException

    if not found

  20. def getRelationshipById(id: Long)(implicit ds: DatabaseService): Relationship

    Looks up a relationship by id.

    Looks up a relationship by id.

    id

    the id of the relationship

    returns

    the relationship with id id if found

    Exceptions thrown
    NotFoundException

    if not found

  21. def getRelationshipTypes(implicit ds: DatabaseService): Iterable[RelationshipType]

    Returns all relationship types currently in the underlying store.

    Returns all relationship types currently in the underlying store. Relationship types are added to the underlying store the first time they are used in a successfully commited Node#createRelationshipTo node.createRelationshipTo(...). Note that this method is guaranteed to return all known relationship types, but it does not guarantee that it won't return more than that (e.g. it can return "historic" relationship types that no longer have any relationships in the node space).

    returns

    all relationship types in the underlying store

  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. implicit def indexManager(implicit ds: DatabaseService): IndexManager

    Stuff for Indexes

    Stuff for Indexes

    Definition Classes
    Neo4jWrapperImplicits
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. implicit def node2relationshipBuilder(node: Node): NodeRelationshipMethods

    converts to a relationship builder to use --> <-- methods

    converts to a relationship builder to use --> <-- methods

    Definition Classes
    Neo4jWrapperImplicits
  27. implicit def nodeLabeler(node: Node): NodeLabelMethods

    label convenience methods

    label convenience methods

    Definition Classes
    Neo4jWrapperImplicits
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. implicit def propertyContainer2RichPropertyContainer(propertyContainer: PropertyContainer): RichPropertyContainer

    conversion to use property set and get convenience

    conversion to use property set and get convenience

    Definition Classes
    Neo4jWrapperImplicits
  31. def shutdown(implicit ds: DatabaseService): Unit

    Shuts down Neo4j.

    Shuts down Neo4j. After this method has been invoked, it's invalid to invoke any methods in the Neo4j API and all references to this instance of GraphDatabaseService should be discarded.

  32. implicit def string2RelationshipType(relType: String): DynamicRelationshipType

    converts a String to a relationship type

    converts a String to a relationship type

    Definition Classes
    Neo4jWrapperImplicits
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withTx[T](operation: (DatabaseService) ⇒ T): T

    Execute instructions within a Neo4j transaction; rollback if exception is raised and commit otherwise; and return the return value from the operation.

Inherited from Neo4jWrapperImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped