Package com.mongodb.client.model
Class BulkWriteOptions
- java.lang.Object
-
- com.mongodb.client.model.BulkWriteOptions
-
@Deprecated(since="2021-05-27") public final class BulkWriteOptions extends java.lang.ObjectDeprecated.Usage of this API is not supported in AEM as a Cloud Service.The options to apply to a bulk write.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description BulkWriteOptions()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BulkWriteOptionsbypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)Deprecated.Sets the bypass document level validation flag.java.lang.BooleangetBypassDocumentValidation()Deprecated.Gets the the bypass document level validation flagbooleanisOrdered()Deprecated.If true, then when a write fails, return without performing the remaining writes.BulkWriteOptionsordered(boolean ordered)Deprecated.If true, then when a write fails, return without performing the remaining writes.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
isOrdered
public boolean isOrdered()
Deprecated.If true, then when a write fails, return without performing the remaining writes. If false, then when a write fails, continue with the remaining writes, if any. Defaults to true.- Returns:
- true if the writes are ordered
-
ordered
public BulkWriteOptions ordered(boolean ordered)
Deprecated.If true, then when a write fails, return without performing the remaining writes. If false, then when a write fails, continue with the remaining writes, if any. Defaults to true.- Parameters:
ordered- true if the writes should be ordered- Returns:
- this
-
getBypassDocumentValidation
@Nullable public java.lang.Boolean getBypassDocumentValidation()
Deprecated.Gets the the bypass document level validation flag- Returns:
- the bypass document level validation flag
- Since:
- 3.2
-
bypassDocumentValidation
public BulkWriteOptions bypassDocumentValidation(@Nullable java.lang.Boolean bypassDocumentValidation)
Deprecated.Sets the bypass document level validation flag.- Parameters:
bypassDocumentValidation- If true, allows the write to opt-out of document level validation.- Returns:
- this
- Since:
- 3.2
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-