Modifier and Type | Field and Description |
---|---|
static int |
FLG_DELETE_ONE
The flag represent whether to delete only one matched record or all matched records
|
Constructor and Description |
---|
DeleteOption() |
Modifier and Type | Method and Description |
---|---|
void |
appendFlag(int flag)
Appends a new flag to the delete option.
|
Object |
clone() |
void |
eraseFlag(int flag)
Erases the specified flag from the delete option.
|
int |
getFlag()
Gets the flag option.
|
BSONObject |
getHint()
Gets the hint option.
|
DeleteOption |
setFlag(int flag)
Sets the flag option.
|
DeleteOption |
setHint(BSONObject hint)
Sets the hint option, default is null.
|
String |
toString() |
public static final int FLG_DELETE_ONE
public void appendFlag(int flag)
flag
- The delete flag, the following values:
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void eraseFlag(int flag)
flag
- The delete flag, the following values:
public int getFlag()
public BSONObject getHint()
public DeleteOption setFlag(int flag)
flag
- The delete flag, default to be 0, the following values:
public DeleteOption setHint(BSONObject hint)
hint
- Specified the index used to scan data. e.g. {"":"ageIndex"} means using index
"ageIndex" to scan data(index scan); {"":null} means table scan. when hint is
null, database automatically match the optimal index to scan data.Copyright © 2023. All rights reserved.