io.realm.mongodb.mongo.options
The options to apply to a findOneAndUpdate, findOneAndReplace, or findOneAndDelete operation (also commonly referred to as findOneAndModify operations).
Constructores
Constructor and Description |
|---|
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public Bson | Gets a document describing the fields to return for all matching documents. |
public Bson | getSort () Obtiene los criterios de ordenación que se aplicarán a la query. |
public booleano | Returns true if the findOneAndModify operation should return the new document. |
public booleano | isUpsert () Devuelve verdadero si se debe insertar un nuevo documento si no hay coincidencias con el filtro de consulta. |
public FindOneAndModifyOptions | Sets a document describing the fields to return for all matching documents. |
public FindOneAndModifyOptions | Establezca en verdadero si las operaciones findOneAndModify deben devolver el nuevo documento actualizado. |
public FindOneAndModifyOptions | Establece los criterios de ordenación a aplicar en la query. |
public String | toString () |
public FindOneAndModifyOptions | Set to true if a new document should be inserted if there are no matches to the query filter. |
Inherited Methods
Métodos heredados de la clase java.lang.Object:
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Detalle del constructor
public FindOneAndModifyOptions () |
|---|
Detalle del método
getProjection
public Bson getProjection () |
|---|
Gets a document describing the fields to return for all matching documents. Devuelve the project document, which may be null |
getSort
public Bson getSort () |
|---|
Gets the sort criteria to apply to the query. The default is null, which means that the documents will be returned in an undefined order. Devuelve un documento que describe los criterios de clasificación |
isReturnNewDocument
public boolean isReturnNewDocument () |
|---|
Returns true if the findOneAndModify operation should return the new document. The default is false Note: Only findOneAndUpdate and findOneAndReplace take this options findOneAndDelete will always return the old document Devuelve verdadero si la operación findOneAndModify debe devolver el nuevo documento |
isUpsert
public boolean isUpsert () |
|---|
Devuelve "verdadero" si se debe insertar un nuevo documento si no hay coincidencias con el filtro de consulta. El valor predeterminado es "falso". Nota: Solo findOneAndUpdate y findOneAndReplace aceptan esta opción. Devuelve true si se debe insertar un nuevo documento si no hay coincidencias con el filtro de query |
proyección
Sets a document describing the fields to return for all matching documents. Parámetros
Devuelve this |
Devolver nuevo documento
Set to true if findOneAndModify operations should return the new updated document. Set to false / leave blank to have these operation return the document before the update. Note: Only findOneAndUpdate and findOneAndReplace take this options findOneAndDelete will always return the old document Parámetros
Devuelve this |
sort
Establece los criterios de ordenación a aplicar en la query. Parámetros
Devuelve this |
toString
inserción
Set to true if a new document should be inserted if there are no matches to the query filter. Parámetros
Devuelve this |