play.modules.reactivemongo.json.collection

JSONCollection

case class JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy) extends GenericCollection[JsObject, Reads, Writes] with JSONGenericHandlers with CollectionMetaCommands with Product with Serializable

A Collection that interacts with the Play JSON library, using Reads and Writes.

Linear Supertypes
Serializable, Serializable, Product, Equals, CollectionMetaCommands, JSONGenericHandlers, GenericCollection[JsObject, Reads, Writes], GenericHandlers[JsObject, Reads, Writes], Collection, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JSONCollection
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. CollectionMetaCommands
  7. JSONGenericHandlers
  8. GenericCollection
  9. GenericHandlers
  10. Collection
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy)

Type Members

  1. case class BSONStructureReader[T](reader: Reads[T]) extends GenericReader[JsObject, T] with Product with Serializable

    Definition Classes
    JSONGenericHandlers
  2. case class BSONStructureWriter[T](writer: Writes[T]) extends GenericWriter[T, JsObject] with Product with Serializable

    Definition Classes
    JSONGenericHandlers
  3. case class GenericBufferReader[T] extends BufferReader[T] with Product with Serializable

    Definition Classes
    GenericHandlers
  4. case class GenericBufferWriter[T] extends BufferWriter[T] with Product with Serializable

    Definition Classes
    GenericHandlers

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def BufferReaderInstance[T](reader: Reads[T]): GenericBufferReader[T]

    Definition Classes
    GenericHandlers
  7. def BufferWriterInstance[T](writer: Writes[T]): GenericBufferWriter[T]

    Definition Classes
    GenericHandlers
  8. object StructureBufferReader extends BufferReader[JsObject]

    Definition Classes
    JSONGenericHandlers → GenericHandlers
  9. object StructureBufferWriter extends BufferWriter[JsObject]

    Definition Classes
    JSONGenericHandlers → GenericHandlers
  10. def StructureReader[T](reader: Reads[T]): BSONStructureReader[T]

    Definition Classes
    JSONGenericHandlers → GenericHandlers
  11. def StructureWriter[T](writer: Writes[T]): GenericWriter[T, JsObject]

    Definition Classes
    JSONGenericHandlers → GenericHandlers
  12. def as[C <: Collection](failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Definition Classes
    Collection
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def bulkInsert[T](enumerator: Enumerator[T], writeConcern: GetLastError, bulkSize: Int, bulkByteSize: Int)(implicit writer: Writes[T], ec: ExecutionContext): Future[Int]

    Definition Classes
    GenericCollection
  15. def bulkInsertIteratee[T](writeConcern: GetLastError, bulkSize: Int, bulkByteSize: Int)(implicit writer: Writes[T], ec: ExecutionContext): Iteratee[T, Int]

    Definition Classes
    GenericCollection
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def convertToCapped(size: Long, maxDocuments: Option[Int])(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
  18. def create(autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
  19. def createCapped(size: Long, maxDocuments: Option[Int], autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
  20. val db: DB

    Definition Classes
    JSONCollection → Collection
  21. def drop()(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. val failoverStrategy: FailoverStrategy

    Definition Classes
    JSONCollection → GenericCollection → Collection
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def find[S, P](selector: S, projection: P)(implicit swriter: Writes[S], pwriter: Writes[P]): GenericQueryBuilder[JsObject, Reads, Writes]

    Definition Classes
    GenericCollection
  26. def find[S](selector: S)(implicit swriter: Writes[S]): GenericQueryBuilder[JsObject, Reads, Writes]

    Definition Classes
    GenericCollection
  27. def fullCollectionName: String

    Definition Classes
    Collection
  28. def genericQueryBuilder: GenericQueryBuilder[JsObject, Reads, Writes]

    Definition Classes
    JSONCollection → GenericCollection
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def indexesManager(implicit ec: ExecutionContext): CollectionIndexesManager

    Definition Classes
    CollectionMetaCommands
  31. def insert(document: JsObject)(implicit ec: ExecutionContext): Future[LastError]

    Definition Classes
    GenericCollection
  32. def insert(document: JsObject, writeConcern: GetLastError)(implicit ec: ExecutionContext): Future[LastError]

    Definition Classes
    GenericCollection
  33. def insert[T](document: T, writeConcern: GetLastError)(implicit writer: Writes[T], ec: ExecutionContext): Future[LastError]

    Definition Classes
    GenericCollection
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. val name: String

    Definition Classes
    JSONCollection → Collection
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def remove[T](query: T, writeConcern: GetLastError, firstMatchOnly: Boolean)(implicit writer: Writes[T], ec: ExecutionContext): Future[LastError]

    Definition Classes
    GenericCollection
  40. def rename(to: String, dropExisting: Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
  41. def save[T](doc: T, writeConcern: GetLastError = GetLastError())(implicit ec: ExecutionContext, writer: Writes[T]): Future[LastError]

    Inserts the document, or updates it if it already exists in the collection.

    Inserts the document, or updates it if it already exists in the collection.

    doc

    The document to save.

    writeConcern

    the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().

  42. def save(doc: JsObject, writeConcern: GetLastError)(implicit ec: ExecutionContext): Future[LastError]

    Inserts the document, or updates it if it already exists in the collection.

    Inserts the document, or updates it if it already exists in the collection.

    doc

    The document to save.

    writeConcern

    the reactivemongo.core.commands.GetLastError command message to send in order to control how the document is inserted. Defaults to GetLastError().

  43. def save(doc: JsObject)(implicit ec: ExecutionContext): Future[LastError]

    Inserts the document, or updates it if it already exists in the collection.

    Inserts the document, or updates it if it already exists in the collection.

    doc

    The document to save.

  44. def sibling[C <: Collection](name: String, failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Definition Classes
    Collection
  45. def stats(scale: Int)(implicit ec: ExecutionContext): Future[CollStatsResult]

    Definition Classes
    CollectionMetaCommands
  46. def stats()(implicit ec: ExecutionContext): Future[CollStatsResult]

    Definition Classes
    CollectionMetaCommands
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def uncheckedInsert[T](document: T)(implicit writer: Writes[T]): Unit

    Definition Classes
    GenericCollection
  49. def uncheckedRemove[T](query: T, firstMatchOnly: Boolean)(implicit writer: Writes[T], ec: ExecutionContext): Unit

    Definition Classes
    GenericCollection
  50. def uncheckedUpdate[S, U](selector: S, update: U, upsert: Boolean, multi: Boolean)(implicit selectorWriter: Writes[S], updateWriter: Writes[U]): Unit

    Definition Classes
    GenericCollection
  51. def update[S, U](selector: S, update: U, writeConcern: GetLastError, upsert: Boolean, multi: Boolean)(implicit selectorWriter: Writes[S], updateWriter: Writes[U], ec: ExecutionContext): Future[LastError]

    Definition Classes
    GenericCollection
  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def watchFailure[T](future: ⇒ Future[T]): Future[T]

    Attributes
    protected
    Definition Classes
    GenericCollection

Deprecated Value Members

  1. def emptyCapped()(implicit ec: ExecutionContext): Future[Boolean]

    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9) Deprecated because emptyCapped became an internal command, unavailable by default.

  2. def sister[C <: Collection](name: String, failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Definition Classes
    Collection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.10) Consider using sibling instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CollectionMetaCommands

Inherited from JSONGenericHandlers

Inherited from GenericCollection[JsObject, Reads, Writes]

Inherited from GenericHandlers[JsObject, Reads, Writes]

Inherited from Collection

Inherited from AnyRef

Inherited from Any

Ungrouped