Packages

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
    @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
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val modelType: ModelType[M]
    Attributes
    protected
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. def openConnection: F[Unit]

    opens a connection to the underlying database

  29. val persistenceConfig: PersistenceConfig
    Attributes
    protected
  30. 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

  31. 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

  32. 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

  33. 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

  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. 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

  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. 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