Packages

  • package root
    Definition Classes
    root
  • package longevity

    a persistence framework for Scala and NoSQL

    a persistence framework for Scala and NoSQL

    Definition Classes
    root
  • package persistence

    manages entity persistence operations

    manages entity persistence operations

    Definition Classes
    longevity
  • package streams

    repository extension classes for streaming query methods

    repository extension classes for streaming query methods

    Definition Classes
    persistence
  • Deleted
  • PState
  • Repo

abstract class Repo[F[_], M] extends AnyRef

a repository for persistent objects in a model

F

the effect

M

the model

Source
Repo.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Repo
  2. AnyRef
  3. 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

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

Abstract Value Members

  1. abstract def buildPRepo[P](pType: PType[M, P], polyRepoOpt: Option[R[_ >: P]] = None): R[P]
    Attributes
    protected
  2. abstract def closeConnectionBlocking(): Unit
    Attributes
    protected
  3. abstract def createBaseSchemaBlocking(): Unit
    Attributes
    protected
  4. abstract def openBaseConnectionBlocking(): Unit
    Attributes
    protected

Concrete 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[F, M] to any2stringadd[Repo[F, M]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Repo[F, M], B)
    Implicit
    This member is added by an implicit conversion from Repo[F, M] to ArrowAssoc[Repo[F, 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
    @native() @throws( ... )
  8. def closeConnection: F[Unit]

    closes an open connection from the underlying database

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

    creates the persistent object

    creates the persistent object

    unpersisted

    the persistent object to create

  10. def createSchema: F[Unit]

    non-desctructively creates any needed database constructs

  11. def delete[P](state: PState[P])(implicit arg0: PEv[M, P]): F[Deleted[P]]

    deletes the persistent object

    deletes the persistent object

    state

    the persistent state of the persistent object to delete

  12. val effect: Effect[F]
    Attributes
    protected
  13. def ensuring(cond: (Repo[F, M]) ⇒ Boolean, msg: ⇒ Any): Repo[F, M]
    Implicit
    This member is added by an implicit conversion from Repo[F, M] to Ensuring[Repo[F, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Repo[F, M]) ⇒ Boolean): Repo[F, M]
    Implicit
    This member is added by an implicit conversion from Repo[F, M] to Ensuring[Repo[F, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Repo[F, M]
    Implicit
    This member is added by an implicit conversion from Repo[F, M] to Ensuring[Repo[F, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Repo[F, M]
    Implicit
    This member is added by an implicit conversion from Repo[F, M] to Ensuring[Repo[F, 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[F, M] to StringFormat[Repo[F, M]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. implicit def implicitF: Effect[F]
    Attributes
    protected[longevity.persistence]
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val logger: Logger
    Attributes
    protected
  26. val modelType: ModelType[M]
    Attributes
    protected
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def openConnection: F[Unit]

    opens a connection to the underlying database

  31. val persistenceConfig: PersistenceConfig
    Attributes
    protected
  32. def queryToIterator[P](query: Query[P])(implicit arg0: PEv[M, P]): F[Iterator[PState[P]]]

    retrieves multiple persistent objects matching a query

    retrieves multiple persistent objects matching a query

    query

    the query to execute

  33. def queryToVector[P](query: Query[P])(implicit arg0: PEv[M, P]): F[Vector[PState[P]]]

    retrieves multiple persistent objects matching a query

    retrieves multiple persistent objects matching a query

    query

    the query to execute

  34. 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: F[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: F[Option[PState[User]]] = repo.retrieve[User, Username](username)
    See also

    Retrieve.apply

  35. 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: F[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: F[PState[User]] = repo.retrieveOne[User, Username](username)
    See also

    RetrieveOne.apply

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

    updates the persistent object

    updates the persistent object

    state

    the persistent state of the persistent object to update

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

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped