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, setHintpublic Object clone() throws CloneNotSupportedException
clone in class UpdateOptionCloneNotSupportedExceptionpublic BSONObject getSetOnInsert()
public void setSetOnInsert(BSONObject setOnInsert)
setOnInsert - The setOnInsert assigns the specified values to the fields when insertpublic String toString()
toString in class UpdateOptionCopyright © 2023. All rights reserved.