Class

play.modules.reactivemongo.json.collection

JSONCollection

Related Doc: package collection

Permalink

case class JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy) extends GenericCollection[reactivemongo.play.json.JSONSerializationPack.type] with CollectionMetaCommands with Product with Serializable

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

Annotations
@deprecated
Deprecated

(Since version 0.12.0) Use reactivemongo.play.json.collection.JSONCollection

Linear Supertypes
Serializable, Serializable, Product, Equals, GenericCollection[reactivemongo.play.json.JSONSerializationPack.type], ImplicitCommandHelpers[reactivemongo.play.json.JSONSerializationPack.type], CollectionMetaCommands, GenericCollectionWithCommands[reactivemongo.play.json.JSONSerializationPack.type], Collection, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONCollection
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GenericCollection
  7. ImplicitCommandHelpers
  8. CollectionMetaCommands
  9. GenericCollectionWithCommands
  10. Collection
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Type Members

  1. sealed trait BulkMaker[R, S <: BulkMaker[R, S]] extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  2. trait ImplicitlyDocumentProducer extends AnyRef

    Permalink
    Definition Classes
    ImplicitCommandHelpers
  3. class Mongo26WriteCommand extends BulkMaker[WriteResult, Mongo26WriteCommand]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  4. type PipelineOperator = commands.JSONAggregationFramework.PipelineOperator

    Permalink
    Definition Classes
    GenericCollection

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. val BatchCommands: JSONBatchCommands.type

    Permalink
    Definition Classes
    JSONCollection → GenericCollection
  5. implicit def PackIdentityReader: Reader[Document]

    Permalink
    Definition Classes
    GenericCollection
  6. implicit def PackIdentityWriter: Writer[Document]

    Permalink
    Definition Classes
    GenericCollection
  7. def aggregate(firstOperator: PipelineOperator, otherOperators: List[PipelineOperator], explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern])(implicit ec: ExecutionContext): Future[commands.JSONAggregationFramework.AggregationResult]

    Permalink
    Definition Classes
    GenericCollection
  8. def aggregate1[T](firstOperator: PipelineOperator, otherOperators: List[PipelineOperator], cursor: commands.JSONAggregationFramework.Cursor, explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern], readPreference: ReadPreference)(implicit ec: ExecutionContext, r: Reader[T]): Future[Cursor[T]]

    Permalink
    Definition Classes
    GenericCollection
  9. def as[C <: Collection](failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Permalink
    Definition Classes
    Collection
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def bulkInsert(documents: Stream[Document], ordered: Boolean, writeConcern: WriteConcern, bulkSize: Int, bulkByteSize: Int)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  12. def bulkInsert(documents: Stream[Document], ordered: Boolean, writeConcern: WriteConcern)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  13. def bulkInsert(documents: Stream[Document], ordered: Boolean)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  14. def bulkInsert(ordered: Boolean, writeConcern: WriteConcern, bulkSize: Int, bulkByteSize: Int)(documents: ImplicitlyDocumentProducer*)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  15. def bulkInsert(ordered: Boolean, writeConcern: WriteConcern)(documents: ImplicitlyDocumentProducer*)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  16. def bulkInsert(ordered: Boolean)(documents: ImplicitlyDocumentProducer*)(implicit ec: ExecutionContext): Future[MultiBulkWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  17. def clone(): AnyRef

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  19. def count[H](selector: Option[Document], limit: Int, skip: Int, hint: Option[H])(implicit h: (H) ⇒ JSONBatchCommands.JSONCountCommand.Hint, ec: ExecutionContext): Future[Int]

    Permalink
    Definition Classes
    GenericCollection
  20. def create(autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Unit]

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  22. val db: DB

    Permalink
    Definition Classes
    JSONCollection → Collection
  23. def distinct[T, M[_] <: Iterable[_]](key: String, selector: Option[Document], readConcern: ReadConcern)(implicit reader: NarrowValueReader[T], ec: ExecutionContext, cbf: CanBuildFrom[M[_], T, M[T]]): Future[M[T]]

    Permalink
    Definition Classes
    GenericCollection
  24. def drop(failIfNotFound: Boolean)(implicit ec: ExecutionContext): Future[Boolean]

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

    Permalink
    Definition Classes
    AnyRef
  26. val failoverStrategy: FailoverStrategy

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def find[S, P](selector: S, projection: P)(implicit swriter: Writer[S], pwriter: Writer[P]): GenericQueryBuilder[pack.type]

    Permalink
    Definition Classes
    GenericCollection
  29. def find[S](selector: S)(implicit swriter: Writer[S]): GenericQueryBuilder[pack.type]

    Permalink
    Definition Classes
    GenericCollection
  30. def findAndModify[Q](selector: Q, modifier: commands.JSONFindAndModifyCommand.Modify, sort: Option[Document], fields: Option[Document])(implicit selectorWriter: Writer[Q], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  31. def findAndRemove[Q](selector: Q, sort: Option[Document], fields: Option[Document])(implicit selectorWriter: Writer[Q], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  32. def findAndUpdate[Q, U](selector: Q, update: U, fetchNewObject: Boolean, upsert: Boolean, sort: Option[Document], fields: Option[Document])(implicit selectorWriter: Writer[Q], updateWriter: Writer[U], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  33. def fullCollectionName: String

    Permalink
    Definition Classes
    Collection
  34. def genericQueryBuilder: GenericQueryBuilder[reactivemongo.play.json.JSONSerializationPack.type]

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

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  37. def insert[T](document: T, writeConcern: WriteConcern)(implicit writer: Writer[T], ec: ExecutionContext): Future[WriteResult]

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

    Permalink
    Definition Classes
    Any
  39. val name: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  43. val pack: reactivemongo.play.json.JSONSerializationPack.type

    Permalink
    Definition Classes
    JSONCollection → GenericCollection → ImplicitCommandHelpers → GenericCollectionWithCommands
  44. def remove[T](query: T, writeConcern: WriteConcern, firstMatchOnly: Boolean)(implicit writer: Writer[T], ec: ExecutionContext): Future[WriteResult]

    Permalink
    Definition Classes
    GenericCollection
  45. lazy val removeModifier: commands.JSONFindAndModifyCommand.Remove.type

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  47. def runCommand[C <: CollectionCommand](command: C)(implicit writer: Writer[ResolvedCollectionCommand[C]]): CursorFetcher[pack.type, Cursor]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  48. def runCommand[R, C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R])(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[R]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  49. def runValueCommand[A <: AnyVal, R <: BoxedAnyVal[A], C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R with BoxedAnyVal[A]])(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  50. def runWithResponse[R, C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R])(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[ResponseResult[R]]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  51. def runner: CommandWithPackRunner[pack.type]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  52. def sibling[C <: Collection](name: String, failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

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

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

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

    Permalink
    Definition Classes
    AnyRef
  56. def uncheckedInsert[T](document: T)(implicit writer: Writer[T]): Unit

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

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

    Permalink
    Definition Classes
    GenericCollection
  59. def update[S, U](selector: S, update: U, writeConcern: WriteConcern, upsert: Boolean, multi: Boolean)(implicit selectorWriter: Writer[S], updateWriter: Writer[U], ec: ExecutionContext): Future[UpdateWriteResult]

    Permalink
    Definition Classes
    GenericCollection
  60. def updateModifier[U](update: U, fetchNewObject: Boolean, upsert: Boolean)(implicit updateWriter: Writer[U]): commands.JSONFindAndModifyCommand.Update

    Permalink
    Definition Classes
    GenericCollection
  61. final def wait(): Unit

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection

Deprecated Value Members

  1. def drop()(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use drop(Boolean)

  2. def emptyCapped()(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

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

  3. def save[T](doc: T, writeConcern: WriteConcern = WriteConcern.Default)(implicit ec: ExecutionContext, writer: Writes[T]): Future[WriteResult]

    Permalink

    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 write concern

    Annotations
    @deprecated
    Deprecated

    (Since version Use update with upsert set to true) 0.11.1

  4. def save(doc: Document, writeConcern: WriteConcern)(implicit ec: ExecutionContext): Future[WriteResult]

    Permalink

    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 write concern

    Annotations
    @deprecated
    Deprecated

    (Since version Use update with upsert set to true) 0.11.1

  5. def save(doc: JsObject)(implicit ec: ExecutionContext): Future[WriteResult]

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version Use update with upsert set to true) 0.11.1

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

    Permalink
    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 GenericCollection[reactivemongo.play.json.JSONSerializationPack.type]

Inherited from ImplicitCommandHelpers[reactivemongo.play.json.JSONSerializationPack.type]

Inherited from CollectionMetaCommands

Inherited from GenericCollectionWithCommands[reactivemongo.play.json.JSONSerializationPack.type]

Inherited from Collection

Inherited from AnyRef

Inherited from Any

Ungrouped