net.caladesiframework.orientdb.graph

OrientGraphRepository

abstract class OrientGraphRepository[EntityType <: OrientGraphEntity] extends GraphRepository[EntityType] with CRUDRepository[EntityType] with OrientGraphDbWrapper with EdgeHandler with IndexManager

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OrientGraphRepository
  2. IndexManager
  3. EdgeHandler
  4. OrientGraphDbWrapper
  5. GraphRepository
  6. CRUDRepository
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OrientGraphRepository()(implicit tag: ClassTag[EntityType], configuration: OrientConfiguration)

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 checkEdgeType(field: RelatedToOne[OrientGraphEntity])(implicit db: OGraphDatabase): Any

    Checks for edge existence and creates one if this edge type is missing

    Checks for edge existence and creates one if this edge type is missing

    field
    db
    returns

    Attributes
    protected
    Definition Classes
    EdgeHandler
  8. def checkFieldIndex(field: Field[_] with IndexedField)(implicit db: OGraphDatabase): Any

    Check for index and create one if its missing

    Check for index and create one if its missing

    field
    db
    returns

    Definition Classes
    IndexManager
  9. def clone(): AnyRef

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

    Opens the db, performs execution and closes connection

    Opens the db, performs execution and closes connection

    T
    f
    returns

  11. def count: Long

    Returns the overall count of the entities in this repository

    Returns the overall count of the entities in this repository

    returns

  12. def create: EntityType

    Creates a new entity (not persisted)

    Creates a new entity (not persisted)

    returns

    Definition Classes
    OrientGraphRepositoryCRUDRepository
  13. def createFromVertex(vertex: ODocument, depth: Int = 0)(implicit db: OGraphDatabase): EntityType

  14. implicit def dbWrapper(db: OGraphDatabase): AnyRef { def queryBySql[T](sql: String,params: AnyRef*): List[T] }

    Definition Classes
    OrientGraphDbWrapper
  15. def delete(entity: EntityType): Boolean

    Removes entity from db

    Removes entity from db

    entity
    returns

    Definition Classes
    OrientGraphRepositoryCRUDRepository
  16. def drop: Unit

    Drops all entities in the repository (use with care)

  17. def dropIndex(entity: OrientGraphEntity)(implicit db: OGraphDatabase): Unit

    Drops field index for all fields

    Drops field index for all fields

    entity
    db
    returns

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

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

    Definition Classes
    AnyRef → Any
  20. def execute(qry: String, params: AnyRef*): List[EntityType]

    Executes a string query (drop any custom query in here)

    Executes a string query (drop any custom query in here)

    qry
    returns

  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. def find: QueryBuilder

    Finds entities by constructed query

  23. def findIdx: IndexQueryBuilder

    Finds entities by query to index

    Finds entities by query to index

    returns

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

    Definition Classes
    AnyRef → Any
  25. def handleOptionalRelatedToOne[RelatedEntityType <: OrientGraphEntity](vertex: ODocument, field: OptionalRelatedToOne[RelatedEntityType])(implicit db: OGraphDatabase): Any

    0.

    0..1 Relation

    Saves the relation if the target node is existent, relationship class is created and no other relation is already created. Removes all relations of this type if target field value is null (implicit un-assign command)

    RelatedEntityType
    vertex
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    EdgeHandler
  26. def handleRelatedToOne[RelatedEntityType <: OrientGraphEntity](vertex: ODocument, field: RelatedToOne[RelatedEntityType])(implicit db: OGraphDatabase): Array[String]

    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
    vertex
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    EdgeHandler
  27. def handleRelation[RelatedEntityType <: OrientGraphEntity](vertex: ODocument, field: Relation)(implicit db: OGraphDatabase): 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
    vertex
    field
    db
    returns

    Attributes
    protected
    Definition Classes
    EdgeHandler
  28. def hashCode(): Int

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

    Creates the correct VertexType if missing

  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def loadRelation(field: Field[AnyRef] with Relation, vertex: ODocument, depth: Int = 0)(implicit db: OGraphDatabase): Unit

    Loads target vertex for RelatedToOne relations

    Loads target vertex for RelatedToOne relations

    field
    vertex
    db
    returns

    Attributes
    protected
    Definition Classes
    EdgeHandler
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def repositoryEntityClass: String

  36. def setEntityFields(entity: EntityType, vertex: ODocument, depth: Int = 0)(implicit db: OGraphDatabase): EntityType

    Copy vertex fields to entity

    Copy vertex fields to entity

    entity
    vertex

    Attributes
    protected
  37. def setVertexFields(vertex: ODocument, entity: EntityType)(implicit db: OGraphDatabase): Unit

    Copy fields to vertex

    Copy fields to vertex

    vertex
    entity

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

    Definition Classes
    AnyRef
  39. def toString(): String

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

    Opens the db, performs execution

    Opens the db, performs execution

    T
    f
    returns

  41. def transformToEntity(vertex: ODocument, depth: Int = 0)(implicit db: OGraphDatabase): EntityType

    Creates a fresh node and assigns the vertex data to it

    Creates a fresh node and assigns the vertex data to it

    vertex
    returns

  42. def update(list: List[EntityType]): List[EntityType]

    Saves all given entities or updates them if already present

    Saves all given entities or updates them if already present

    list
    returns

  43. 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
    OrientGraphRepositoryCRUDRepository
  44. def updateIndex(entity: OrientGraphEntity, reIndex: Boolean = true)(implicit db: OGraphDatabase): Unit

    Update index entries for the entity

    Update index entries for the entity

    entity
    db
    returns

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from IndexManager

Inherited from EdgeHandler

Inherited from OrientGraphDbWrapper

Inherited from GraphRepository[EntityType]

Inherited from CRUDRepository[EntityType]

Inherited from AnyRef

Inherited from Any

Ungrouped