public class UpdateOptions extends Object
| Constructor and Description |
|---|
UpdateOptions() |
| Modifier and Type | Method and Description |
|---|---|
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 filter