Packages

abstract class Collection[D <: Document[D]] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Collection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Collection(collectionName: String, db: LightDB, autoCommit: Boolean = false, atomic: Boolean = true)

Type Members

  1. type Field[F] = IndexedField[F, D]

Abstract Value Members

  1. implicit abstract val rw: RW[D]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(id: Id[D]): IO[D]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val atomic: Boolean
  7. val autoCommit: Boolean
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. val collectionName: String
  10. def commit(): IO[Unit]
  11. val db: LightDB
    Attributes
    protected[lightdb]
  12. def delete(id: Id[D])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Option[D]]
  13. def dispose(): IO[Unit]
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def get(id: Id[D]): IO[Option[D]]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. def idStream: Stream[IO, Id[D]]
  20. def indexedLinks[V](name: String, createKey: (V) => String, createV: (D) => V, maxLinks: MaxLinks = MaxLinks.OverflowWarn()): IndexedLinks[V, D]

    Creates a key/value stored object with a list of links.

    Creates a key/value stored object with a list of links. This can be incredibly efficient for small lists, but much slower for larger sets of data and a standard index would be preferable.

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def modify(id: Id[D])(f: (Option[D]) => IO[Option[D]])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Option[D]]
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  26. def postDelete(doc: D): IO[Unit]
    Attributes
    protected
  27. def postSet(doc: D): IO[Unit]

    Called after set

    Called after set

    Attributes
    protected
  28. def preDelete(id: Id[D]): IO[Id[D]]
    Attributes
    protected
  29. def preSet(doc: D): IO[D]

    Called before preSetJson and before the data is set to the database

    Called before preSetJson and before the data is set to the database

    Attributes
    protected
  30. def preSetJson(json: Json): IO[Json]

    Called after preSet and before the data is set to the database

    Called after preSet and before the data is set to the database

    Attributes
    protected
  31. def set(doc: D)(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[D]
  32. def size: IO[Int]
  33. lazy val store: Store
    Attributes
    protected
  34. def stream: Stream[IO, D]
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def truncate(): IO[Unit]
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. def withLock[Return](id: Id[D])(f: (DocLock[D]) => IO[Return])(implicit existingLock: DocLock[D] = new DocLock.Empty[D]): IO[Return]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped