Package com.mongodb.client.model
Class DBCollectionFindAndModifyOptions
java.lang.Object
com.mongodb.client.model.DBCollectionFindAndModifyOptions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The oprtions for find and modify operations.
- Since:
- 3.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrayFilters
(List<? extends DBObject> arrayFilters) Deprecated.Sets the array filters optionbypassDocumentValidation
(Boolean bypassDocumentValidation) Deprecated.Sets the bypassDocumentValidationDeprecated.Sets the collationDeprecated.Returns the array filters optionDeprecated.Returns the bypassDocumentValidationDeprecated.Returns the collation optionslong
getMaxTime
(TimeUnit timeUnit) Deprecated.Gets the maximum execution time on the server for this operation.Deprecated.Returns the projectiongetSort()
Deprecated.Returns the sortDeprecated.Returns the updateDeprecated.Returns the writeConcernboolean
isRemove()
Deprecated.Returns the removeboolean
isUpsert()
Deprecated.Returns the upsertDeprecated.Sets the maximum execution time on the server for this operation.projection
(DBObject projection) Deprecated.Sets the projectionremove
(boolean remove) Deprecated.Sets the removeboolean
Deprecated.Returns the returnNewreturnNew
(boolean returnNew) Deprecated.Sets the returnNewDeprecated.Sets the sortDeprecated.Sets the updateupsert
(boolean upsert) Deprecated.Sets the upsertwriteConcern
(WriteConcern writeConcern) Deprecated.Sets the writeConcern
-
Constructor Details
-
DBCollectionFindAndModifyOptions
public DBCollectionFindAndModifyOptions()Deprecated.Construct a new instance
-
-
Method Details
-
getProjection
Deprecated.Returns the projection- Returns:
- the projection
-
projection
Deprecated.Sets the projection- Parameters:
projection
- the projection- Returns:
- this
-
getSort
Deprecated.Returns the sort- Returns:
- the sort
-
sort
Deprecated.Sets the sort- Parameters:
sort
- the sort- Returns:
- this
-
isRemove
public boolean isRemove()Deprecated.Returns the remove- Returns:
- the remove
-
remove
Deprecated.Sets the remove- Parameters:
remove
- the remove- Returns:
- this
-
getUpdate
Deprecated.Returns the update- Returns:
- the update
-
update
Deprecated.Sets the update- Parameters:
update
- the update- Returns:
- this
-
isUpsert
public boolean isUpsert()Deprecated.Returns the upsert- Returns:
- the upsert
-
upsert
Deprecated.Sets the upsert- Parameters:
upsert
- the upsert- Returns:
- this
-
returnNew
public boolean returnNew()Deprecated.Returns the returnNew- Returns:
- the returnNew
-
returnNew
Deprecated.Sets the returnNew- Parameters:
returnNew
- the returnNew- Returns:
- this
-
getBypassDocumentValidation
Deprecated.Returns the bypassDocumentValidation- Returns:
- the bypassDocumentValidation
-
bypassDocumentValidation
Deprecated.Sets the bypassDocumentValidation- Parameters:
bypassDocumentValidation
- the bypassDocumentValidation- Returns:
- this
-
getMaxTime
Deprecated.Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.- Parameters:
timeUnit
- the time unit to return the result in- Returns:
- the maximum execution time in the given time unit
-
maxTime
Deprecated.Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max timetimeUnit
- the time unit, which may not be null- Returns:
- this
-
getWriteConcern
Deprecated.Returns the writeConcern- Returns:
- the writeConcern
-
writeConcern
Deprecated.Sets the writeConcern- Parameters:
writeConcern
- the writeConcern- Returns:
- this
-
getCollation
Deprecated.Returns the collation options- Returns:
- the collation options
-
collation
Deprecated.Sets the collation- Parameters:
collation
- the collation- Returns:
- this
-
arrayFilters
Deprecated.Sets the array filters option- Parameters:
arrayFilters
- the array filters, which may be null- Returns:
- this
- Since:
- 3.6
-
getArrayFilters
Deprecated.Returns the array filters option- Returns:
- the array filters, which may be null
- Since:
- 3.6
-