com.sksamuel.scruffy.mongo

MongoOps

class MongoOps extends StrictLogging

Annotations
@deprecated
Deprecated

(Since version 1.13.2) Prefer MongoDao

Linear Supertypes
StrictLogging, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoOps
  2. StrictLogging
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoOps(mongoDB: MongoDB)(implicit executor: ExecutionContext)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collection[T](implicit arg0: Manifest[T]): mongodb.casbah.Imports.MongoCollection

  9. def collection(collectionName: String): mongodb.casbah.Imports.MongoCollection

  10. def collectionExists[T](implicit arg0: Manifest[T]): Future[Boolean]

  11. def collectionExists(name: String): Future[Boolean]

  12. def collectionName[T](implicit arg0: Manifest[T]): String

  13. def count[T](query: DBObject)(implicit arg0: Manifest[T]): Future[Int]

  14. def count(query: DBObject, col: String): Future[Int]

  15. def count[T](implicit arg0: Manifest[T]): Future[Int]

  16. def cursor[T](query: DBObject)(implicit arg0: Manifest[T]): MongoCursor

  17. def distinct[T](key: String, query: DBObject)(implicit arg0: Manifest[T]): Future[Seq[T]]

  18. def distinct[T](key: String, elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[Seq[T]]

  19. def dropCollection(name: String): Future[Unit]

  20. def dropCollection[T](implicit arg0: Manifest[T]): Future[Unit]

  21. def dropIndex[T](name: String)(implicit arg0: Manifest[T]): Future[Unit]

  22. def dropIndexes[T](implicit arg0: Manifest[T]): Future[Unit]

  23. def ensureIndex[T](name: String)(implicit arg0: Manifest[T]): Future[Unit]

  24. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  26. implicit val executor: ExecutionContext

  27. def exists[T](query: DBObject)(implicit arg0: Manifest[T]): Future[Boolean]

  28. def exists(query: DBObject, col: String): Future[Boolean]

  29. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def find[T](col: String, query: DBObject)(implicit arg0: Manifest[T]): Future[Seq[T]]

  31. def find[T](dbo: DBObject)(implicit arg0: Manifest[T]): Future[Seq[T]]

  32. def find[T](col: String, elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[Seq[T]]

  33. def find[T](elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[Seq[T]]

    Returns all documents matching the given query.

    Returns all documents matching the given query. If no documents match then an empty Seq will be returned.

  34. def findAll[T](col: String)(implicit arg0: Manifest[T]): Future[Seq[T]]

  35. def findAll[T](implicit arg0: Manifest[T]): Future[Seq[T]]

  36. def findById[T](id: String, col: String)(implicit arg0: Manifest[T]): Future[Option[T]]

  37. def findById[T](id: String)(implicit arg0: Manifest[T]): Future[Option[T]]

  38. def findOne[T](query: DBObject, col: mongodb.casbah.Imports.MongoCollection)(implicit arg0: Manifest[T]): Future[Option[T]]

  39. def findOne[T](query: DBObject, col: String)(implicit arg0: Manifest[T]): Future[Option[T]]

  40. def findOne[T](query: DBObject)(implicit arg0: Manifest[T]): Future[Option[T]]

  41. def findOne[T](elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[Option[T]]

  42. def findOne[T](col: String, elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[Option[T]]

    Returns the first document matching the given query or returns a failed future if no matching document was found.

  43. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  45. def insert[T](t: T, col: String = null)(implicit arg0: Manifest[T]): Future[T]

  46. def insert[T](t: T)(implicit arg0: Manifest[T]): Future[T]

  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. val logger: Logger

    Attributes
    protected
    Definition Classes
    StrictLogging → Logging
  49. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  52. def remove(q: DBObject, col: mongodb.casbah.Imports.MongoCollection): Future[mongodb.casbah.Imports.WriteResult]

  53. def remove(q: DBObject, col: String): Future[mongodb.casbah.Imports.WriteResult]

  54. def remove[T](q: DBObject)(implicit arg0: Manifest[T]): Future[mongodb.casbah.Imports.WriteResult]

  55. def remove[T <: Product](t: T, col: String)(implicit arg0: Manifest[T]): Future[mongodb.casbah.Imports.WriteResult]

  56. def remove[T <: Product](t: T)(implicit arg0: Manifest[T]): Future[mongodb.casbah.Imports.WriteResult]

    Removes the document matching the given object in the collection

  57. def remove(col: String, elems: (String, Any)*): Future[mongodb.casbah.Imports.WriteResult]

  58. def remove[T <: Product](elems: (String, Any)*)(implicit arg0: Manifest[T]): Future[mongodb.casbah.Imports.WriteResult]

    Removes all documents matching the given fields in the specified collection.

  59. def removeById(id: String, col: String): Future[mongodb.casbah.Imports.WriteResult]

  60. def removeById[T](id: String)(implicit arg0: Manifest[T]): Future[mongodb.casbah.Imports.WriteResult]

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

    Definition Classes
    AnyRef
  62. def toString(): String

    Definition Classes
    AnyRef → Any
  63. def truncateCollection[T](implicit arg0: Manifest[T]): Future[Unit]

  64. def upsert[T](t: T, collectionName: String = null)(implicit arg0: Manifest[T]): Future[T]

  65. def upsert[T](t: T)(implicit arg0: Manifest[T]): Future[T]

  66. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped