trait Repo[P] extends AnyRef
- Alphabetic
- By Inheritance
- Repo
- AnyRef
- Any
- by StreamingRepo
- by PWithTypeKey
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
create(unpersisted: P)(implicit executionContext: ExecutionContext): Future[PState[P]]
creates the persistent object
creates the persistent object
- unpersisted
the persistent object to create
- executionContext
the execution context
-
abstract
def
delete(state: PState[P])(implicit 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
-
abstract
def
retrieve[V <: KeyVal[P]](keyVal: V)(implicit arg0: TypeKey[V], executionContext: ExecutionContext): Future[Option[PState[P]]]
retrieves an optional persistent object from a key value
retrieves an optional persistent object from a key value
- V
the type of the key value
- keyVal
the key value to use to look up the persistent object
- executionContext
the execution context
-
abstract
def
retrieveByQuery(query: Query[P])(implicit executionContext: ExecutionContext): Future[Seq[PState[P]]]
retrieves multiple persistent objects matching a query
retrieves multiple persistent objects matching a query
- query
the query to execute
- executionContext
the execution context
-
abstract
def
retrieveOne[V <: KeyVal[P]](keyVal: V)(implicit arg0: TypeKey[V], executionContext: ExecutionContext): Future[PState[P]]
retrieves an optional persistent object from a key value
retrieves an optional persistent object from a key value
throws NoSuchElementException whenever the persistent ref does not refer to a persistent object in the repository
- V
the type of the key value
- keyVal
the key value to use to look up the persistent object
- executionContext
the execution context
-
abstract
def
update(state: PState[P])(implicit 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
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[P], 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
- @throws( ... )
- def ensuring(cond: (Repo[P]) ⇒ Boolean, msg: ⇒ Any): Repo[P]
- def ensuring(cond: (Repo[P]) ⇒ Boolean): Repo[P]
- def ensuring(cond: Boolean, msg: ⇒ Any): Repo[P]
- def ensuring(cond: Boolean): Repo[P]
-
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
-
def
streamByQuery(query: Query[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[P] to StreamingRepo[P] performed by method StreamingRepo in longevity.persistence.
- Definition Classes
- StreamingRepo
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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): (Repo[P], B)