public class UpdateOptions
extends java.lang.Object
| 构造器和说明 |
|---|
UpdateOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateOptions |
bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
java.lang.Boolean |
getBypassDocumentValidation()
Gets the the bypass document level validation flag
|
boolean |
isUpsert()
Returns true if a new document should be inserted if there are no matches to the query filter.
|
UpdateOptions |
upsert(boolean upsert)
Set to true if a new document should be inserted if there are no matches to the query filter.
|
public boolean isUpsert()
public UpdateOptions upsert(boolean upsert)
upsert - true if a new document should be inserted if there are no matches to the query filterpublic java.lang.Boolean getBypassDocumentValidation()
public UpdateOptions bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
bypassDocumentValidation - If true, allows the write to opt-out of document level validation.