Trait

org.incal.core.dataaccess

AsyncRepo

Related Doc: package dataaccess

Permalink

trait AsyncRepo[E, ID] extends AsyncReadonlyRepo[E, ID]

Generic asynchronous trait for a repo allowing read/find as well save operations (but without update or delete).

Since

2018

Linear Supertypes
AsyncReadonlyRepo[E, ID], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncRepo
  2. AsyncReadonlyRepo
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def count(criteria: Seq[Criterion[Any]] = Nil): Future[Int]

    Permalink

    Return the number of elements matching criteria.

    Return the number of elements matching criteria.

    criteria

    Filtering criteria (same as find). Use Nil for no filtering / return all.

    returns

    Number of matching elements.

    Definition Classes
    AsyncReadonlyRepo
  2. abstract def find(criteria: Seq[Criterion[Any]] = Nil, sort: Seq[Sort] = Nil, projection: Traversable[String] = Nil, limit: Option[Int] = None, skip: Option[Int] = None): Future[Traversable[E]]

    Permalink

    Finds all the elements matching criteria object.

    Finds all the elements matching criteria object.

    criteria

    Filtering criteria. Use Nil for no filtering / return all.

    sort

    Sequence of asc/desc columns used for sorting. Leave at Nil for no sorting.

    projection

    Defines which columns are supposed to be returned. Leave at Nil to return all.

    limit

    Page limit. Use to define chunk sizes. Leave at None to use default.

    skip

    The number of items to skip.

    returns

    Future of the found items.

    Definition Classes
    AsyncReadonlyRepo
  3. abstract def flushOps: Future[Unit]

    Permalink
  4. abstract def get(id: ID): Future[Option[E]]

    Permalink
    Definition Classes
    AsyncReadonlyRepo
  5. abstract def save(entity: E): Future[ID]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def exists(id: ID): Future[Boolean]

    Permalink
    Definition Classes
    AsyncReadonlyRepo
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findAsStream(criteria: Seq[Criterion[Any]] = Nil, sort: Seq[Sort] = Nil, projection: Traversable[String] = Nil, limit: Option[Int] = None, skip: Option[Int] = None)(implicit materializer: Materializer): Future[Source[E, _]]

    Permalink
    Definition Classes
    AsyncReadonlyRepo
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def save(entities: Traversable[E]): Future[Traversable[ID]]

    Permalink
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AsyncReadonlyRepo[E, ID]

Inherited from AnyRef

Inherited from Any

Ungrouped