Class

play.modules.reactivemongo.json.collection

JSONCollection

Related Doc: package collection

Permalink

case class JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy) extends GenericCollection[JSONSerializationPack.type] 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, GenericCollection[JSONSerializationPack.type], ImplicitCommandHelpers[JSONSerializationPack.type], CollectionMetaCommands, GenericCollectionWithCommands[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 Mongo24BulkInsert extends BulkMaker[LastError, Mongo24BulkInsert]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  4. class Mongo26WriteCommand extends BulkMaker[WriteResult, Mongo26WriteCommand]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  5. 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, cursor: Option[commands.JSONAggregationFramework.Cursor])(implicit ec: ExecutionContext): Future[commands.JSONAggregationFramework.AggregationResult]

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  18. 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
  19. def create(autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Unit]

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

    Permalink
    Definition Classes
    CollectionMetaCommands
  21. val db: DB

    Permalink
    Definition Classes
    JSONCollection → Collection
  22. def distinct(key: String, selector: Option[Document])(implicit ec: ExecutionContext): Future[List[Value]]

    Permalink
    Definition Classes
    GenericCollection
  23. def drop()(implicit ec: ExecutionContext): Future[Unit]

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

    Permalink
    Definition Classes
    AnyRef
  25. val failoverStrategy: FailoverStrategy

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

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

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

    Permalink
    Definition Classes
    GenericCollection
  29. 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
  30. 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
  31. 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
  32. def fullCollectionName: String

    Permalink
    Definition Classes
    Collection
  33. def genericQueryBuilder: GenericQueryBuilder[JSONSerializationPack.type]

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

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

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

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

    Permalink
    Definition Classes
    Any
  38. val name: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  42. val pack: JSONSerializationPack.type

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

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

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

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

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  47. 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
  48. 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
  49. def runner: CommandWithPackRunner[pack.type]

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    GenericCollection
  57. 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
  58. def updateModifier[U](update: U, fetchNewObject: Boolean, upsert: Boolean)(implicit updateWriter: Writer[U]): commands.JSONFindAndModifyCommand.Update

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection

Deprecated Value Members

  1. 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.

  2. 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
  3. 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
  4. 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
  5. 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[JSONSerializationPack.type]

Inherited from ImplicitCommandHelpers[JSONSerializationPack.type]

Inherited from CollectionMetaCommands

Inherited from GenericCollectionWithCommands[JSONSerializationPack.type]

Inherited from Collection

Inherited from AnyRef

Inherited from Any

Ungrouped