net.caladesiframework.neo4j.graph.repository

Neo4jGraphRepository

abstract class Neo4jGraphRepository[EntityType <: Neo4jGraphEntity] extends GraphRepository[EntityType] with CRUDRepository[EntityType] with IndexManager with RelationManager

Linear Supertypes
RelationManager, IndexManager, GraphRepository[EntityType], CRUDRepository[EntityType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Neo4jGraphRepository
  2. RelationManager
  3. IndexManager
  4. GraphRepository
  5. CRUDRepository
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Neo4jGraphRepository()(implicit tag: ClassTag[EntityType], configuration: Neo4jConfiguration)

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. val ENTITY_RELATION: DynamicRelationshipType

    Attributes
    protected
  7. def RELATION_NAME: String

    Override this to define own relation name

    Override this to define own relation name

    returns

  8. def REPOSITORY_NAME: String

    Override this to define own relation name

    Override this to define own relation name

    returns

  9. val REPOSITORY_RELATION: DynamicRelationshipType

    Attributes
    protected
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def checkFieldIndex(field: Field[_] with IndexedField)(implicit ds: Neo4jDatabaseService): Any

    Check for index and create one if its missing

    Check for index and create one if its missing

    field
    ds
    returns

    Definition Classes
    IndexManager
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def connected[T](f: (Neo4jDatabaseService) ⇒ T): T

    Opens the db, performs execution and closes connection

    Opens the db, performs execution and closes connection

    T
    f
    returns

  14. def count: Long

    Returns the overall count of the entities in this repository

    Returns the overall count of the entities in this repository

    returns

  15. def create: EntityType

    Creates a new entity (not persisted)

    Creates a new entity (not persisted)

    returns

    Definition Classes
    Neo4jGraphRepositoryCRUDRepository
  16. def createFromNode(node: Node, depth: Int = 1)(implicit db: Neo4jDatabaseService): EntityType

  17. def delete(entity: EntityType): Boolean

    Removes entity from db

    Removes entity from db

    entity
    returns

    Definition Classes
    Neo4jGraphRepositoryCRUDRepository
  18. def drop: Unit

    Drops all entities in the repository (use with care)

  19. def dropIndex(entity: Neo4jGraphEntity)(implicit ds: Neo4jDatabaseService): Unit

    Drops field index for all fields

    Drops field index for all fields

    entity
    ds
    returns

    Definition Classes
    IndexManager
  20. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  22. lazy val executionEngine: ExecutionEngine

    Attributes
    protected
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def find(skip: Long = 0L, limit: Long = 10): List[EntityType]

    Get the list

    Get the list

    skip
    limit
    returns

  25. def findAllByIndex(field: Field[_] with IndexedField, value: Any)(implicit ds: Neo4jDatabaseService): List[Node]

    Searched in index for all nodes

    Searched in index for all nodes

    field
    value
    ds
    returns

    Definition Classes
    IndexManager
  26. def findAllByIndexSet(field: Field[_] with IndexedField, values: List[String])(implicit ds: Neo4jDatabaseService): List[Node]

    Definition Classes
    IndexManager
  27. def findIdx(field: Field[_] with IndexedField, value: Any): Option[EntityType]

    Find entity by index entry

    Find entity by index entry

    field
    value
    returns

  28. def findIdxAll(field: Field[_] with IndexedField, values: List[String]): List[EntityType]

    field
    values
    returns

  29. def findIdxAll(field: Field[_] with IndexedField, value: Any): List[EntityType]

    field
    value
    returns

  30. def findSingleByIndex(field: Field[_] with IndexedField, value: Any)(implicit ds: Neo4jDatabaseService): Option[Node]

    Searched in index for node

    Searched in index for node

    field
    value
    ds
    returns

    Definition Classes
    IndexManager
  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def getExecutionEngine(): ExecutionEngine

    If possible, don't use this, reuse protected val executionEngine

    If possible, don't use this, reuse protected val executionEngine

    returns

    Attributes
    protected
  33. def handleOptionalRelatedToOne[RelatedEntityType <: Neo4jGraphEntity](node: Node, field: OptionalRelatedToOne[RelatedEntityType])(implicit db: Neo4jDatabaseService): Any

    0.

    0..1 Relation

    Saves the relation if the target node is existent. Removes it, if value is empty

    RelatedEntityType
    node
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    RelationManager
  34. def handleRelatedToMany[RelatedEntityType <: Neo4jGraphEntity](node: Node, field: RelatedToMany[RelatedEntityType])(implicit db: Neo4jDatabaseService): Unit

    0.

    0..n Relation

    Saves the relations if the target nodes are existent

    RelatedEntityType
    node
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    RelationManager
  35. def handleRelatedToOne[RelatedEntityType <: Neo4jGraphEntity](node: Node, field: Field[RelatedEntityType] with Relation)(implicit db: Neo4jDatabaseService): Any

    1.

    1..1 Relation

    Saves the relation if the target node is existent, relationship class is created and no other relation is already created. Doesn't remove the relation!

    RelatedEntityType
    node
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    RelationManager
  36. def handleRelation[RelatedEntityType <: Neo4jGraphEntity](node: Node, field: Relation)(implicit db: Neo4jDatabaseService): Any

    Single relation handler method (Check for only one, create if not existent)

    Single relation handler method (Check for only one, create if not existent)

    RelatedEntityType
    node
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    RelationManager
  37. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  38. def init: Option[Any]

    Creates the correct SubRefs and Index if missing

  39. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  40. def loadRelation[RelatedEntity <: Neo4jGraphEntity](field: Field[_] with Relation, node: Node, depth: Int = 0)(implicit db: Neo4jDatabaseService): Unit

    Loads target node for RelatedToOne or OptionalRelatedToOne relations

    Loads target node for RelatedToOne or OptionalRelatedToOne relations

    field
    node
    db
    returns

    Attributes
    protected
    Definition Classes
    RelationManager
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

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

    Definition Classes
    AnyRef
  44. def removeFromIndex(entity: Neo4jGraphEntity)(implicit ds: Neo4jDatabaseService): Unit

    Removes all entries for the entity

    Removes all entries for the entity

    entity
    ds
    returns

    Definition Classes
    IndexManager
  45. def repositoryEntityClass: String

  46. def setEntityFields(entity: EntityType, node: Node, depth: Int = 0)(implicit ds: Neo4jDatabaseService): EntityType

    Copy node fields to entity

    Copy node fields to entity

    entity
    node

    Attributes
    protected
  47. def setNodeFields(node: Node, entity: EntityType)(implicit ds: Neo4jDatabaseService): Unit

    Copy fields to node

    Copy fields to node

    node
    entity

    Attributes
    protected
  48. lazy val subReferenceNode: Node

    Sub-Reference node of the repository

    Sub-Reference node of the repository

    Attributes
    protected
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. def transactional[T](f: (Neo4jDatabaseService) ⇒ T): T

    Opens the db, performs execution

    Opens the db, performs execution

    T
    f
    returns

  52. def transformToEntity(node: Node, depth: Int = 1)(implicit ds: Neo4jDatabaseService): EntityType

    Creates a fresh node and assigns the node data to it

    Creates a fresh node and assigns the node data to it

    node
    returns

  53. def update(list: List[EntityType]): Nothing

    Saves all given entities or updates them if already present

    Saves all given entities or updates them if already present

    list
    returns

  54. def update(entity: EntityType): EntityType

    Saves a new entity to db or updates if already saved

    Saves a new entity to db or updates if already saved

    entity
    returns

    Definition Classes
    Neo4jGraphRepositoryCRUDRepository
  55. def updateIndex(entity: Neo4jGraphEntity, reIndex: Boolean = true)(implicit ds: Neo4jDatabaseService): Unit

    Update index entries for the entity

    Update index entries for the entity

    entity
    ds
    returns

    Definition Classes
    IndexManager
  56. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RelationManager

Inherited from IndexManager

Inherited from GraphRepository[EntityType]

Inherited from CRUDRepository[EntityType]

Inherited from AnyRef

Inherited from Any

Ungrouped