Trait

net.liftweb.mongodb

MongoMeta

Related Doc: package mongodb

Permalink

trait MongoMeta[BaseDocument, TDocument] extends JsonFormats with MongoCodecs

This is used by both MongoDocumentMeta and MongoMetaRecord

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoMeta
  2. MongoCodecs
  3. JsonFormats
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def codecRegistry: CodecRegistry

    Permalink
    Definition Classes
    MongoCodecs
  2. abstract def connectionIdentifier: ConnectionIdentifier

    Permalink
  3. abstract def useCollection[T](f: (MongoCollection[TDocument]) ⇒ T): T

    Permalink

    Use the collection associated with this Meta.

  4. abstract def useDatabase[T](f: (MongoDatabase) ⇒ T): T

    Permalink

    Use the db associated with this Meta.

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use useCollection instead

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use useDatabase instead

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

  9. def count(qry: JObject): Box[Long]

    Permalink

    Count documents by JObject query

  10. def count(qry: Bson): Box[Long]

    Permalink

    Count documents by Bson query

  11. def count: Box[Long]

    Permalink

    Count all documents

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

  13. def createIndex(keys: JObject, uniq: Boolean = false): Box[String]

    Permalink
  14. def createIndex(keys: JObject): Box[String]

    Permalink
  15. def createIndex(keys: JObject, opts: IndexOptions): Box[String]

    Permalink
  16. def createIndex(keys: Bson, uniq: Boolean): Box[String]

    Permalink
  17. def createIndex(keys: Bson): Box[String]

    Permalink
  18. def createIndex(keys: Bson, opts: IndexOptions): Box[String]

    Permalink
  19. def deleteMany(qry: JObject, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete many documents by a JObject query with the given DeleteOptions

  20. def deleteMany(qry: JObject): Box[DeleteResult]

    Permalink

    Delete many documents by a JObject query

  21. def deleteMany(qry: Bson, opts: DeleteOptions): Box[DeleteResult]

    Permalink

    Delete many documents by a Bson query with the given DeleteOptions

  22. def deleteMany(qry: Bson): Box[DeleteResult]

    Permalink

    Delete many documents by a Bson query

  23. def deleteOne(k: String, v: Any, opts: DeleteOptions = new DeleteOptions): Box[DeleteResult]

    Permalink

    Delete a single document by a key-value pair query

  24. def deleteOne(qry: JObject, opts: DeleteOptions): Box[DeleteResult]

    Permalink

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

  25. def deleteOne(qry: JObject): Box[DeleteResult]

    Permalink

    Delete a single document by a JObject query

  26. def deleteOne(qry: Bson, opts: DeleteOptions): Box[DeleteResult]

    Permalink

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

  27. def deleteOne(qry: Bson): Box[DeleteResult]

    Permalink

    Delete a single document by a Bson query

  28. def drop: Box[Unit]

    Permalink
  29. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. 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

  33. def formats: Formats

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

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

    Permalink

    Update many documents with a JObject query with the given UpdateOptions

  43. def updateMany(qry: JObject, update: JObject): Box[UpdateResult]

    Permalink

    Update many documents with a JObject query

  44. def updateMany(qry: Bson, update: Bson, opts: UpdateOptions): Box[UpdateResult]

    Permalink

    Update many documents with a Bson query with the given UpdateOptions

  45. def updateMany(qry: Bson, update: Bson): Box[UpdateResult]

    Permalink

    Update many documents with a Bson query

  46. def updateOne(qry: JObject, update: JObject, opts: UpdateOptions): Box[UpdateResult]

    Permalink

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

  47. def updateOne(qry: JObject, update: JObject): Box[UpdateResult]

    Permalink

    Update a single document with a JObject query

  48. def updateOne(qry: Bson, update: Bson, opts: UpdateOptions): Box[UpdateResult]

    Permalink

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

  49. def updateOne(qry: Bson, update: Bson): Box[UpdateResult]

    Permalink

    Update a single document with a Bson query

  50. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. 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.

Deprecated Value Members

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

    Permalink
    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

    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use deleteOne or deleteMany instead

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

    Permalink
    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

    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use deleteOne or deleteMany instead

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.4.3) Use updateOne or updateMany instead

Inherited from MongoCodecs

Inherited from JsonFormats

Inherited from AnyRef

Inherited from Any

Ungrouped