Packages

abstract class Repo[M] extends AnyRef

a repository for persistent objects in a model

M

the model

Source
Repo.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Repo
  2. AnyRef
  3. Any
Implicitly
  1. by repoToPlayRepo
  2. by repoToIterateeIoRepo
  3. by repoToFS2Repo
  4. by repoToAkkaStreamsRepo
  5. by PWithEv
  6. by any2stringadd
  7. by StringFormat
  8. by Ensuring
  9. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Retrieve [P] extends AnyRef

    a container for part two of a two part call for retrieving an optional persistent object from a key value

    a container for part two of a two part call for retrieving an optional persistent object from a key value

    See also

    Repo.retrieve

  2. final class RetrieveOne [P] extends AnyRef

    a container for part two of a two part call for retrieving a persistent object from a key value

    a container for part two of a two part call for retrieving a persistent object from a key value

    See also

    Repo.retrieveOne

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Repo[M] to any2stringadd[Repo[M]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Repo[M], B)
    Implicit
    This member is added by an implicit conversion from Repo[M] to ArrowAssoc[Repo[M]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → 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 closeSession()(implicit executionContext: ExecutionContext): Future[Unit]

    closes any open session from the underlying database

  9. def create[P](unpersisted: P)(implicit arg0: PEv[M, P], executionContext: ExecutionContext): Future[PState[P]]

    creates the persistent object

    creates the persistent object

    unpersisted

    the persistent object to create

    executionContext

    the execution context

  10. def createMany(pWithEvs: PWithEv[M, _]*)(implicit executionContext: ExecutionContext): Future[Seq[PState[_]]]

    creates many persistent objects at once

    creates many persistent objects at once

    because PWithEv is an implicit class, you can call this method using just persistent objects, and they will be converted to PWithEv implicitly:

    repo.createMany(user1, user2, user2, blogPost1, blogPost2, blog)
    pWithEvs

    the persistent objects to persist, wrapped with their evidence

    executionContext

    the execution context

  11. def createSchema()(implicit context: ExecutionContext): Future[Unit]

    non-desctructively creates any needed database constructs

  12. def delete[P](state: PState[P])(implicit arg0: PEv[M, P], executionContext: ExecutionContext): Future[Deleted[P]]

    deletes the persistent object

    deletes the persistent object

    state

    the persistent state of the persistent object to delete

    executionContext

    the execution context

  13. def ensuring(cond: (Repo[M]) ⇒ Boolean, msg: ⇒ Any): Repo[M]
    Implicit
    This member is added by an implicit conversion from Repo[M] to Ensuring[Repo[M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Repo[M]) ⇒ Boolean): Repo[M]
    Implicit
    This member is added by an implicit conversion from Repo[M] to Ensuring[Repo[M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Repo[M]
    Implicit
    This member is added by an implicit conversion from Repo[M] to Ensuring[Repo[M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Repo[M]
    Implicit
    This member is added by an implicit conversion from Repo[M] to Ensuring[Repo[M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Repo[M] to StringFormat[Repo[M]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  27. def queryToAkkaStream[P](query: Query[P])(implicit arg0: PEv[M, P]): Source[PState[P], NotUsed]

    streams persistent objects matching a query

    streams persistent objects matching a query

    query

    the query to execute

    Implicit
    This member is added by an implicit conversion from Repo[M] to AkkaStreamsRepo[M] performed by method repoToAkkaStreamsRepo in longevity.persistence.
    Definition Classes
    AkkaStreamsRepo
  28. def queryToFS2[P](query: Query[P])(implicit arg0: PEv[M, P]): Stream[Task, PState[P]]

    streams persistent objects matching a query

    streams persistent objects matching a query

    query

    the query to execute

    Implicit
    This member is added by an implicit conversion from Repo[M] to FS2Repo[M] performed by method repoToFS2Repo in longevity.persistence.
    Definition Classes
    FS2Repo
  29. def queryToFutureVec[P](query: Query[P])(implicit arg0: PEv[M, P], context: ExecutionContext): Future[Vector[PState[P]]]

    retrieves multiple persistent objects matching a query

    retrieves multiple persistent objects matching a query

    query

    the query to execute

  30. def queryToIterateeIo[P, F[_]](query: Query[P])(implicit arg0: PEv[M, P], F: Monad[F]): Enumerator[F, PState[P]]

    streams persistent objects matching a query

    streams persistent objects matching a query

    query

    the query to execute

    Implicit
    This member is added by an implicit conversion from Repo[M] to IterateeIoRepo[M] performed by method repoToIterateeIoRepo in longevity.persistence.
    Definition Classes
    IterateeIoRepo
  31. def queryToIterator[P](query: Query[P])(implicit arg0: PEv[M, P]): Iterator[PState[P]]

    retrieves multiple persistent objects matching a query

    retrieves multiple persistent objects matching a query

    query

    the query to execute

  32. def queryToPlay[P](query: Query[P])(implicit arg0: PEv[M, P], context: ExecutionContext): Enumerator[PState[P]]

    streams persistent objects matching a query

    streams persistent objects matching a query

    query

    the query to execute

    Implicit
    This member is added by an implicit conversion from Repo[M] to PlayRepo[M] performed by method repoToPlayRepo in longevity.persistence.
    Definition Classes
    PlayRepo
  33. def retrieve[P]: Retrieve[P]

    part one of a two-part call for retrieving an optional persistent object from a key value.

    part one of a two-part call for retrieving an optional persistent object from a key value.

    the complete two-part call will end up looking like this:

    val f: Future[Option[PState[User]]] = repo.retrieve[User](username)

    the call is split into two parts this way to prevent you from having to explicitly name the type of your key value. without it, the call would look like this:

    val f: Future[Option[PState[User]]] = repo.retrieve[User, Username](username)
    See also

    Retrieve.apply

  34. def retrieveOne[P]: RetrieveOne[P]

    part one of a two-part call for retrieving a persistent object from a key value.

    part one of a two-part call for retrieving a persistent object from a key value.

    the complete two-part call will end up looking like this:

    val f: Future[PState[User]] = repo.retrieveOne[User](username)

    the call is split into two parts this way to prevent you from having to explicitly name the type of your key value. without it, the call would look like this:

    val f: Future[PState[User]] = repo.retrieveOne[User, Username](username)
    See also

    RetrieveOne.apply

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def update[P](state: PState[P])(implicit arg0: PEv[M, P], executionContext: ExecutionContext): Future[PState[P]]

    updates the persistent object

    updates the persistent object

    state

    the persistent state of the persistent object to update

    executionContext

    the execution context

  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def [B](y: B): (Repo[M], B)
    Implicit
    This member is added by an implicit conversion from Repo[M] to ArrowAssoc[Repo[M]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion repoToPlayRepo from Repo[M] to PlayRepo[M]

Inherited by implicit conversion repoToIterateeIoRepo from Repo[M] to IterateeIoRepo[M]

Inherited by implicit conversion repoToFS2Repo from Repo[M] to FS2Repo[M]

Inherited by implicit conversion repoToAkkaStreamsRepo from Repo[M] to AkkaStreamsRepo[M]

Inherited by implicit conversion PWithEv from Repo[M] to PWithEv[M, Repo[M]]

Inherited by implicit conversion any2stringadd from Repo[M] to any2stringadd[Repo[M]]

Inherited by implicit conversion StringFormat from Repo[M] to StringFormat[Repo[M]]

Inherited by implicit conversion Ensuring from Repo[M] to Ensuring[Repo[M]]

Inherited by implicit conversion ArrowAssoc from Repo[M] to ArrowAssoc[Repo[M]]

Ungrouped