Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm.mongodb.mongo.options

Clase UpdateOptions

java.lang.Object
io.realm.mongodb.mongo.options.UpdateOptions

The options to apply when updating documents.

Constructor and Description
Modificador y Tipo
Método y descripción

public booleano

Devuelve verdadero si se debe insertar un nuevo documento si no hay coincidencias con el filtro de query.

public String

boolean upsert
)

Set to true if a new document should be inserted if there are no matches to the query filter.

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public UpdateOptions ()

public boolean isUpsert ()

Devuelve verdadero si se debe insertar un nuevo documento si no hay coincidencias con el filtro de query. El valor por defecto es falso.

Devuelve

true si se debe insertar un nuevo documento si no hay coincidencias con el filtro de query

public String toString ()

Anulaciones

toString en la clase Objeto

boolean upsert
)

Set to true if a new document should be inserted if there are no matches to the query filter.

Parámetros

  • upsert - verdadero si se debe insertar un nuevo documento si no hay coincidencias con el filtro de consulta.

Devuelve

this

Volver

InsertManyResult

En esta página