Class

longevity.persistence.mongo

MongoRepo

Related Doc: package mongo

Permalink

class MongoRepo[R <: Root] extends BaseRepo[R]

a MongoDB repository for aggregate roots of type R.

Self Type
MongoRepo[R]
Source
MongoRepo.scala
Linear Supertypes
BaseRepo[R], Repo[R], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoRepo
  2. BaseRepo
  3. Repo
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to any2stringadd[MongoRepo[R]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (MongoRepo[R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to ArrowAssoc[MongoRepo[R]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def create(unpersisted: R): Future[PState[R]]

    Permalink

    creates the aggregate

    creates the aggregate

    Definition Classes
    MongoRepo → BaseRepo → Repo
  9. def delete(persisted: PState[R]): Future[Deleted[R]]

    Permalink

    deletes the aggregate

    deletes the aggregate

    Definition Classes
    MongoRepo → BaseRepo → Repo
  10. def ensuring(cond: (MongoRepo[R]) ⇒ Boolean, msg: ⇒ Any): MongoRepo[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to Ensuring[MongoRepo[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (MongoRepo[R]) ⇒ Boolean): MongoRepo[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to Ensuring[MongoRepo[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): MongoRepo[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to Ensuring[MongoRepo[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): MongoRepo[R]

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to Ensuring[MongoRepo[R]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to StringFormat[MongoRepo[R]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. lazy val queryDsl: QueryDsl[R]

    Permalink

    contains implicit imports to make the query DSL work

    contains implicit imports to make the query DSL work

    Definition Classes
    BaseRepo → Repo
  25. lazy val repoPool: RepoPool

    Permalink

    the pool of all the repos for the longevity.context.PersistenceContext

    the pool of all the repos for the longevity.context.PersistenceContext

    Attributes
    protected
    Definition Classes
    BaseRepo
  26. def retrieve(keyValForRoot: KeyVal[R]): Future[Option[PState[R]]]

    Permalink

    retrieves the aggregate by a key value

    retrieves the aggregate by a key value

    Definition Classes
    MongoRepo → BaseRepo → Repo
  27. def retrieveByQuery(query: Query[R]): Future[Seq[PState[R]]]

    Permalink

    retrieves the aggregate by a query

    retrieves the aggregate by a query

    Definition Classes
    BaseRepo → Repo
  28. def retrieveByValidatedQuery(query: ValidatedQuery[R]): Future[Seq[PState[R]]]

    Permalink
    Attributes
    protected
    Definition Classes
    MongoRepo → BaseRepo
  29. val rootType: RootType[R]

    Permalink

    the entity type for the aggregate roots this repository handles

    the entity type for the aggregate roots this repository handles

    Attributes
    protected[longevity]
    Definition Classes
    BaseRepo
  30. val rootTypeKey: TypeKey[R]

    Permalink

    the type key for the aggregate roots this repository handles

    the type key for the aggregate roots this repository handles

    Attributes
    protected
    Definition Classes
    BaseRepo
  31. val subdomain: Subdomain

    Permalink

    the subdomain containing the root that this repo persists

    the subdomain containing the root that this repo persists

    Attributes
    protected[longevity]
    Definition Classes
    BaseRepo
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. def update(persisted: PState[R]): Future[PState[R]]

    Permalink

    updates the aggregate

    updates the aggregate

    Definition Classes
    MongoRepo → BaseRepo → Repo
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (MongoRepo[R], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoRepo[R] to ArrowAssoc[MongoRepo[R]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from BaseRepo[R]

Inherited from Repo[R]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MongoRepo[R] to any2stringadd[MongoRepo[R]]

Inherited by implicit conversion StringFormat from MongoRepo[R] to StringFormat[MongoRepo[R]]

Inherited by implicit conversion Ensuring from MongoRepo[R] to Ensuring[MongoRepo[R]]

Inherited by implicit conversion ArrowAssoc from MongoRepo[R] to ArrowAssoc[MongoRepo[R]]

Ungrouped