class RepoPool extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- RepoPool
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
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): (RepoPool, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[P](implicit arg0: TypeKey[P]): Repo[P]
select a repository by the type of persistent object
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
closeSession()(implicit executionContext: ExecutionContext): Future[Unit]
closes any open session from the underlying database
-
def
createMany(keyedPs: PWithTypeKey[_]*)(implicit executionContext: ExecutionContext): Future[Seq[PState[_]]]
creates many persistent objects at once.
creates many persistent objects at once.
because PWithTypeKey is an implicit class, you can call this method using just aggregate roots, and the roots will be converted to
PWithTypeKeyimplicitly:repoPool.createMany(user1, user2, user2, blogPost1, blogPost2, blog)
- keyedPs
the persistent objects to persist, wrapped with their
TypeKeys- executionContext
the execution context
- See also
[Assoc.apply]
-
def
createSchema()(implicit context: ExecutionContext): Future[Unit]
non-desctructively creates any needed database constructs
- def ensuring(cond: (RepoPool) ⇒ Boolean, msg: ⇒ Any): RepoPool
- def ensuring(cond: (RepoPool) ⇒ Boolean): RepoPool
- def ensuring(cond: Boolean, msg: ⇒ Any): RepoPool
- def ensuring(cond: Boolean): RepoPool
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
values: Iterable[Repo[_]]
an iterable collection of the repositories
-
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
- @throws( ... )
- def →[B](y: B): (RepoPool, B)