Trait

org.incal.core.dataaccess

AsyncCrudRepo

Related Doc: package dataaccess

Permalink

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

Generic asynchronous trait for a repo allowing all read/write operations including delete and update.

Since

2018

Linear Supertypes
AsyncRepo[E, ID], AsyncReadonlyRepo[E, ID], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncCrudRepo
  2. AsyncRepo
  3. AsyncReadonlyRepo
  4. AnyRef
  5. 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 delete(id: ID): Future[Unit]

    Permalink
  3. abstract def deleteAll: Future[Unit]

    Permalink
  4. 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
  5. abstract def flushOps: Future[Unit]

    Permalink
    Definition Classes
    AsyncRepo
  6. abstract def get(id: ID): Future[Option[E]]

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

    Permalink
    Definition Classes
    AsyncRepo
  8. abstract def update(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. def delete(ids: Traversable[ID]): Future[Unit]

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AsyncRepo
  19. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def update(entities: Traversable[E]): Future[Traversable[ID]]

    Permalink
  22. final def wait(): Unit

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

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

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

Inherited from AsyncRepo[E, ID]

Inherited from AsyncReadonlyRepo[E, ID]

Inherited from AnyRef

Inherited from Any

Ungrouped