Trait

net.liftweb.mongodb

MongoDocumentMeta

Related Doc: package mongodb

Permalink

trait MongoDocumentMeta[BaseDocument] extends JsonObjectMeta[BaseDocument] with MongoMeta[BaseDocument, BsonDocument]

extend case class companion objects with this trait

Linear Supertypes
MongoMeta[BaseDocument, BsonDocument], MongoCodecs, JsonFormats, JsonObjectMeta[BaseDocument], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoDocumentMeta
  2. MongoMeta
  3. MongoCodecs
  4. JsonFormats
  5. JsonObjectMeta
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. implicit lazy val _formats: Formats

    Permalink
    Definition Classes
    JsonFormats
  5. lazy val allFormats: Formats

    Permalink
    Definition Classes
    JsonFormats
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def codecRegistry: CodecRegistry

    Permalink
    Definition Classes
    MongoDocumentMetaMongoCodecs
  9. def collectionName: String

    Permalink

    The name of the database collection.

    The name of the database collection. Override this method if you want to change the collection to something other than the name of the class with an 's' appended to the end.

    Definition Classes
    MongoMeta
  10. def connectionIdentifier: ConnectionIdentifier

    Permalink

    Override this to specify a ConnectionIdentifier.

    Override this to specify a ConnectionIdentifier.

    Definition Classes
    MongoDocumentMetaMongoMeta
  11. def count(qry: JObject): Box[Long]

    Permalink

    Count documents by JObject query

    Count documents by JObject query

    Definition Classes
    MongoMeta
  12. def count(qry: Bson): Box[Long]

    Permalink

    Count documents by Bson query

    Count documents by Bson query

    Definition Classes
    MongoMeta
  13. def count: Box[Long]

    Permalink

    Count all documents

    Count all documents

    Definition Classes
    MongoMeta
  14. def countDistinct(key: String, query: Bson): Box[Long]

    Permalink

    Count distinct records on a given field.

    Count distinct records on a given field.

    **Warning:** This retrieves all matching documents and puts them in memory.

    Definition Classes
    MongoMeta
  15. def create(dbo: Bson): BaseDocument

    Permalink
  16. def create(in: JObject)(implicit formats: Formats): BaseDocument

    Permalink
    Definition Classes
    JsonObjectMeta
  17. def createIndex(keys: JObject, uniq: Boolean = false): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  18. def createIndex(keys: JObject): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  19. def createIndex(keys: JObject, opts: IndexOptions): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  20. def createIndex(keys: Bson, uniq: Boolean): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  21. def createIndex(keys: Bson): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  22. def createIndex(keys: Bson, opts: IndexOptions): Box[String]

    Permalink
    Definition Classes
    MongoMeta
  23. def deleteMany(qry: JObject, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete many documents by a JObject query with the given DeleteOptions

    Delete many documents by a JObject query with the given DeleteOptions

    Definition Classes
    MongoMeta
  24. def deleteMany(qry: JObject): Box[DeleteResult]

    Permalink

    Delete many documents by a JObject query

    Delete many documents by a JObject query

    Definition Classes
    MongoMeta
  25. def deleteMany(qry: Bson, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete many documents by a Bson query with the given DeleteOptions

    Delete many documents by a Bson query with the given DeleteOptions

    Definition Classes
    MongoMeta
  26. def deleteMany(qry: Bson): Box[DeleteResult]

    Permalink

    Delete many documents by a Bson query

    Delete many documents by a Bson query

    Definition Classes
    MongoMeta
  27. def deleteOne(k: String, v: Any, opts: DeleteOptions = new DeleteOptions): Box[DeleteResult]

    Permalink

    Delete a single document by a key-value pair query

    Delete a single document by a key-value pair query

    Definition Classes
    MongoMeta
  28. def deleteOne(qry: JObject, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete a single document by a JObject query with the given DeleteOptions

    Delete a single document by a JObject query with the given DeleteOptions

    Definition Classes
    MongoMeta
  29. def deleteOne(qry: JObject): Box[DeleteResult]

    Permalink

    Delete a single document by a JObject query

    Delete a single document by a JObject query

    Definition Classes
    MongoMeta
  30. def deleteOne(qry: Bson, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete a single document by a Bson query with the given DeleteOptions

    Delete a single document by a Bson query with the given DeleteOptions

    Definition Classes
    MongoMeta
  31. def deleteOne(qry: Bson): Box[DeleteResult]

    Permalink

    Delete a single document by a Bson query

    Delete a single document by a Bson query

    Definition Classes
    MongoMeta
  32. def drop: Box[Unit]

    Permalink
    Definition Classes
    MongoMeta
  33. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def find(json: JObject): Option[BaseDocument]

    Permalink

    Find a single document by a qry using a json query

  37. def find(k: String, v: Any): Option[BaseDocument]

    Permalink

    Find a single document by a qry using String, Any inputs

  38. def find(uuid: UUID): Option[BaseDocument]

    Permalink

    Find a single document by _id using a UUID.

  39. def find(oid: ObjectId): Option[BaseDocument]

    Permalink

    Find a single document by _id using an ObjectId.

  40. def find(s: String): Option[BaseDocument]

    Permalink

    Find a single document by _id using a String.

  41. def find(qry: Bson): Option[BaseDocument]

    Permalink

    Find a single row by a qry, using a Bson.

  42. def findAll(k: String, o: Any, sort: JObject, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a k, v query with JObject sort

  43. def findAll(k: String, o: Any, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a k, v query

  44. def findAll(qry: JObject, sort: JObject, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a JObject query with sort

  45. def findAll(qry: JObject, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a JObject query

  46. def findAll(qry: Bson, sort: Bson, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a Bson query with sort

  47. def findAll(qry: Bson, opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a Bson query.

  48. def findAll(qry: Bson, sort: Option[Bson], opts: FindOption*): List[BaseDocument]

    Permalink

    Find all documents using a Bson query.

  49. def findAll: List[BaseDocument]

    Permalink

    Find all documents in this collection

  50. def fixCollectionName: String

    Permalink

    Collection names should begin with letters or an underscore and may include numbers; $ is reserved.

    Collection names should begin with letters or an underscore and may include numbers; $ is reserved. Collections can be organized in namespaces; these are named groups of collections defined using a dot notation. For example, you could define collections blog.posts and blog.authors, both reside under "blog". Note that this is simply an organizational mechanism for the user -- the collection namespace is flat from the database's perspective. From: http://www.mongodb.org/display/DOCS/Collections

    Definition Classes
    MongoMeta
  51. def formats: Formats

    Permalink
    Definition Classes
    JsonFormats
  52. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  54. def insertOne(inst: BaseDocument, opts: InsertOneOptions = new InsertOneOptions): Box[BaseDocument]

    Permalink
  55. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  59. def replaceOne(qry: JObject, inst: BaseDocument): Box[UpdateResult]

    Permalink
  60. def replaceOne(qry: JObject, inst: BaseDocument, opts: ReplaceOptions): Box[UpdateResult]

    Permalink
  61. def replaceOne(qry: Bson, inst: BaseDocument): Box[UpdateResult]

    Permalink
  62. def replaceOne(qry: Bson, inst: BaseDocument, opts: ReplaceOptions): Box[UpdateResult]

    Permalink
  63. def replaceOne(inst: BaseDocument, opts: ReplaceOptions = new ReplaceOptions): Box[UpdateResult]

    Permalink
  64. def save(inst: BaseDocument): UpdateResult

    Permalink

    Save a document to the db

  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. def toJObject(in: BaseDocument)(implicit formats: Formats): JObject

    Permalink
    Definition Classes
    JsonObjectMeta
  67. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  68. def updateMany(qry: JObject, update: JObject, opts: UpdateOptions): Box[UpdateResult]

    Permalink

    Update many documents with a JObject query with the given UpdateOptions

    Update many documents with a JObject query with the given UpdateOptions

    Definition Classes
    MongoMeta
  69. def updateMany(qry: JObject, update: JObject): Box[UpdateResult]

    Permalink

    Update many documents with a JObject query

    Update many documents with a JObject query

    Definition Classes
    MongoMeta
  70. def updateMany(qry: Bson, update: Bson, opts: UpdateOptions): Box[UpdateResult]

    Permalink

    Update many documents with a Bson query with the given UpdateOptions

    Update many documents with a Bson query with the given UpdateOptions

    Definition Classes
    MongoMeta
  71. def updateMany(qry: Bson, update: Bson): Box[UpdateResult]

    Permalink

    Update many documents with a Bson query

    Update many documents with a Bson query

    Definition Classes
    MongoMeta
  72. def updateOne(qry: JObject, update: JObject, opts: UpdateOptions): Box[UpdateResult]

    Permalink

    Update a single document with a JObject query with the given UpdateOptions

    Update a single document with a JObject query with the given UpdateOptions

    Definition Classes
    MongoMeta
  73. def updateOne(qry: JObject, update: JObject): Box[UpdateResult]

    Permalink

    Update a single document with a JObject query

    Update a single document with a JObject query

    Definition Classes
    MongoMeta
  74. def updateOne(qry: Bson, update: Bson, opts: UpdateOptions): Box[UpdateResult]

    Permalink

    Update a single document with a Bson query with the given UpdateOptions

    Update a single document with a Bson query with the given UpdateOptions

    Definition Classes
    MongoMeta
  75. def updateOne(qry: Bson, update: Bson): Box[UpdateResult]

    Permalink

    Update a single document with a Bson query

    Update a single document with a Bson query

    Definition Classes
    MongoMeta
  76. def useCollection[T](db: MongoDatabase)(f: (MongoCollection[BsonDocument]) ⇒ T): T

    Permalink
  77. def useCollection[T](f: (MongoCollection[BsonDocument]) ⇒ T): T

    Permalink

    Use the collection associated with this Meta.

    Use the collection associated with this Meta.

    Definition Classes
    MongoDocumentMetaMongoMeta
  78. def useDatabase[T](f: (MongoDatabase) ⇒ T): T

    Permalink

    Use the db associated with this Meta.

    Use the db associated with this Meta.

    Definition Classes
    MongoDocumentMetaMongoMeta
  79. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def writeConcern: WriteConcern

    Permalink

    This will be used if set to Some, otherwise the WriteConcern set in MongoClientOptions will be used.

    This will be used if set to Some, otherwise the WriteConcern set in MongoClientOptions will be used. Used by useCollection and useDatabase.

    Definition Classes
    MongoMeta

Deprecated Value Members

  1. def createIndex(keys: JObject, opts: JObject): Unit

    Permalink
    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use createIndex that takes IndexOptions as argument instead

  2. def delete(qry: JObject): Unit

    Permalink

    Delete documents by a JObject query

    Delete documents by a JObject query

    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use deleteOne or deleteMany instead

  3. def delete(k: String, v: Any): Unit

    Permalink
    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use deleteOne or deleteMany instead

  4. def delete(qry: DBObject): Unit

    Permalink

    Delete documents by a DBObject query

    Delete documents by a DBObject query

    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use deleteOne or deleteMany instead

  5. def save(in: BaseDocument, db: DB): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use save instead

  6. def update(qry: JObject, newbd: BaseDocument, opts: UpdateOption*): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne, updateMany, or replaceOne instead

  7. def update(qry: JObject, newbd: BaseDocument, db: DB, opts: UpdateOption*): Unit

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne, updateMany, or replaceOne instead

  8. def update(qry: JObject, newobj: JObject, opts: UpdateOption*): Unit

    Permalink
    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

  9. def update(qry: JObject, newobj: JObject, db: DB, opts: UpdateOption*): Unit

    Permalink
    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

  10. def update(qry: DBObject, newobj: DBObject, db: DB, opts: UpdateOption*): Unit

    Permalink
    Definition Classes
    MongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

  11. def useColl[T](f: (DBCollection) ⇒ T): T

    Permalink
    Definition Classes
    MongoDocumentMetaMongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use useCollection instead

  12. def useDb[T](f: (DB) ⇒ T): T

    Permalink
    Definition Classes
    MongoDocumentMetaMongoMeta
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use useDatabase instead

Inherited from MongoMeta[BaseDocument, BsonDocument]

Inherited from MongoCodecs

Inherited from JsonFormats

Inherited from JsonObjectMeta[BaseDocument]

Inherited from AnyRef

Inherited from Any

Ungrouped