abstract class Repo[F[_], M] extends AnyRef
a repository for persistent objects in a model
- F
- the effect 
- M
- the model 
- Source
- Repo.scala
- Alphabetic
- By Inheritance
- Repo
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
- 
      
      
      
        
      
    
      
        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
 
- 
      
      
      
        
      
    
      
        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
 
Abstract Value Members
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        buildPRepo[P](pType: PType[M, P], polyRepoOpt: Option[R[_ >: P]] = None): R[P]
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        closeConnectionBlocking(): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        createBaseSchemaBlocking(): Unit
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        abstract 
        def
      
      
        openBaseConnectionBlocking(): Unit
      
      
      - Attributes
- protected
 
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
-  def +(other: String): String
-  def ->[B](y: B): (Repo[F, M], B)
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        closeConnection: F[Unit]
      
      
      closes an open connection from the underlying database 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        createSchema: F[Unit]
      
      
      non-desctructively creates any needed database constructs 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        effect: Effect[F]
      
      
      - Attributes
- protected
 
-  def ensuring(cond: (Repo[F, M]) ⇒ Boolean, msg: ⇒ Any): Repo[F, M]
-  def ensuring(cond: (Repo[F, M]) ⇒ Boolean): Repo[F, M]
-  def ensuring(cond: Boolean, msg: ⇒ Any): Repo[F, M]
-  def ensuring(cond: Boolean): Repo[F, M]
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
-  def formatted(fmtstr: String): String
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        implicit 
        def
      
      
        implicitF: Effect[F]
      
      
      - Attributes
- protected[longevity.persistence]
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        logger: Logger
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        modelType: ModelType[M]
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        openConnection: F[Unit]
      
      
      opens a connection to the underlying database 
- 
      
      
      
        
      
    
      
        
        val
      
      
        persistenceConfig: PersistenceConfig
      
      
      - Attributes
- protected
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        
        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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        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 
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
-  def →[B](y: B): (Repo[F, M], B)