abstract
class
DBCollection[T <: ModelObject] extends Implicits
Instance Constructors
-
new
DBCollection(collectionName: String, db: MongoDatabase)
Abstract Value Members
-
abstract
val
converter: Converter[T]
-
abstract
def
indexes: List[Index]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
def
all(limit: Int = 1000): Future[List[T]]
-
-
final
def
asInstanceOf[T0]: T0
-
lazy val
batch: Batch[T]
-
def
byIds(ids: Seq[String]): Future[List[T]]
-
def
clone(): AnyRef
-
lazy val
collection: MongoCollection[Document]
-
val
collectionName: String
-
def
count(): Future[Long]
-
def
create(): Future[Unit]
-
-
def
delete(ids: Seq[String]): Future[Either[DBFailure, Int]]
-
def
delete(id: String): Future[Either[DBFailure, Unit]]
-
def
deleteMany(conditions: MatchCondition*): Future[Either[DBFailure, DeleteResult]]
-
def
deleteOne(conditions: MatchCondition*): Future[Either[DBFailure, DeleteResult]]
-
def
drop(): Future[Unit]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
field[T](name: String): Field[T]
-
implicit
def
field2String[T](field: Field[T]): String
-
def
finalize(): Unit
-
def
get(id: String): Future[Option[T]]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
insert(value: T): Future[Either[DBFailure, T]]
-
def
insert(values: Seq[T]): Future[Either[DBFailure, Seq[T]]]
-
final
def
isInstanceOf[T0]: Boolean
-
def
largeSample(size: Int, groupSize: Int, retries: Int = 2, samples: Set[T] = Set.empty): Future[Either[DBFailure, Set[T]]]
-
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
sample(size: Int, retries: Int = 2): Future[Either[DBFailure, List[T]]]
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
update(values: Seq[T]): Future[BulkWriteResult]
-
def
update(value: T): Future[Either[DBFailure, T]]
-
-
-
def
upsert(values: Seq[T]): Future[BulkWriteResult]
-
def
upsert(value: T): Future[Either[DBFailure, T]]
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any