public class UpsertOption extends UpdateOption
FLG_UPDATE_KEEP_SHARDINGKEY, FLG_UPDATE_ONE
Constructor and Description |
---|
UpsertOption() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
BSONObject |
getSetOnInsert()
Gets the setOnInsert option.
|
void |
setSetOnInsert(BSONObject setOnInsert)
Sets the setOnInsert option, default is null.
|
String |
toString() |
appendFlag, eraseFlag, getFlag, getHint, setFlag, setHint
public Object clone() throws CloneNotSupportedException
clone
in class UpdateOption
CloneNotSupportedException
public BSONObject getSetOnInsert()
public void setSetOnInsert(BSONObject setOnInsert)
setOnInsert
- The setOnInsert assigns the specified values to the fields when insertpublic String toString()
toString
in class UpdateOption
Copyright © 2023. All rights reserved.