com.sksamuel.scruffy.mongo

MongoOps

class MongoOps extends Logging with JsonSupport

Linear Supertypes
JsonSupport, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoOps
  2. JsonSupport
  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]): MongoCollection

  9. def collection(collectionName: String): 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: MongoDBObject)(implicit arg0: Manifest[T]): Future[Int]

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

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

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

  17. def distinct[T](key: String, query: MongoDBObject)(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: MongoDBObject)(implicit arg0: Manifest[T]): Future[Boolean]

  28. def exists(query: MongoDBObject, 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](collection: String, dbo: MongoDBObject)(implicit arg0: Manifest[T]): Future[Seq[T]]

  31. def find[T](dbo: MongoDBObject)(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: MongoDBObject, col: MongoCollection)(implicit arg0: Manifest[T]): Future[Option[T]]

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

  40. def findOne[T](query: MongoDBObject)(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
    Logging
  49. val mapper: ObjectMapper with ScalaObjectMapper

    Attributes
    protected
    Definition Classes
    JsonSupport
  50. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  63. def toString(): String

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

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

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

  67. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsonSupport

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped