object ReplaceOneModel
A model describing the replacement of at most one document that matches the query filter.
- Alphabetic
- By Inheritance
- ReplaceOneModel
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[TResult](filter: Bson, replacement: TResult, replaceOptions: ReplaceOptions): ReplaceOneModel[TResult]
Construct a new instance.
Construct a new instance.
- TResult
the type of document to insert. This can be of any type for which a
Codec
is registered- filter
a document describing the query filter.
- replacement
the replacement document
- replaceOptions
the options to apply
- returns
the new ReplaceOneModel
- Since
2.3
-
def
apply[TResult](filter: Bson, replacement: TResult): ReplaceOneModel[TResult]
Construct a new instance.
Construct a new instance.
- TResult
the type of document to insert. This can be of any type for which a
Codec
is registered- filter
a document describing the query filter.
- replacement
the replacement document
- returns
the new ReplaceOneModel
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
def
apply[TResult](filter: Bson, replacement: TResult, updateOptions: UpdateOptions): ReplaceOneModel[TResult]
Construct a new instance.
Construct a new instance.
- TResult
the type of document to insert. This can be of any type for which a
Codec
is registered- filter
a document describing the query filter.
- replacement
the replacement document
- updateOptions
the options to apply
- returns
the new ReplaceOneModel
- Annotations
- @deprecated
- Deprecated
(Since version 2.3) Use
ReplaceOptions
instead ofUpdateOptions
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: