Class DBCollectionFindAndModifyOptions


  • @Deprecated(since="2021-05-27")
    public final class DBCollectionFindAndModifyOptions
    extends java.lang.Object
    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 Detail

      • DBCollectionFindAndModifyOptions

        public DBCollectionFindAndModifyOptions()
        Deprecated.
        Construct a new instance
    • Method Detail

      • getProjection

        @Nullable
        public DBObject getProjection()
        Deprecated.
        Returns the projection
        Returns:
        the projection
      • getSort

        @Nullable
        public DBObject getSort()
        Deprecated.
        Returns the sort
        Returns:
        the sort
      • isRemove

        public boolean isRemove()
        Deprecated.
        Returns the remove
        Returns:
        the remove
      • getUpdate

        @Nullable
        public DBObject getUpdate()
        Deprecated.
        Returns the update
        Returns:
        the update
      • isUpsert

        public boolean isUpsert()
        Deprecated.
        Returns the upsert
        Returns:
        the upsert
      • returnNew

        public boolean returnNew()
        Deprecated.
        Returns the returnNew
        Returns:
        the returnNew
      • returnNew

        public DBCollectionFindAndModifyOptions returnNew​(boolean returnNew)
        Deprecated.
        Sets the returnNew
        Parameters:
        returnNew - the returnNew
        Returns:
        this
      • getBypassDocumentValidation

        public java.lang.Boolean getBypassDocumentValidation()
        Deprecated.
        Returns the bypassDocumentValidation
        Returns:
        the bypassDocumentValidation
      • bypassDocumentValidation

        public DBCollectionFindAndModifyOptions bypassDocumentValidation​(java.lang.Boolean bypassDocumentValidation)
        Deprecated.
        Sets the bypassDocumentValidation
        Parameters:
        bypassDocumentValidation - the bypassDocumentValidation
        Returns:
        this
      • getMaxTime

        public long getMaxTime​(java.util.concurrent.TimeUnit timeUnit)
        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

        public DBCollectionFindAndModifyOptions maxTime​(long maxTime,
                                                        java.util.concurrent.TimeUnit timeUnit)
        Deprecated.
        Sets the maximum execution time on the server for this operation.
        Parameters:
        maxTime - the max time
        timeUnit - the time unit, which may not be null
        Returns:
        this
      • getWriteConcern

        @Nullable
        public WriteConcern getWriteConcern()
        Deprecated.
        Returns the writeConcern
        Returns:
        the writeConcern
      • getCollation

        public Collation getCollation()
        Deprecated.
        Returns the collation options
        Returns:
        the collation options
      • arrayFilters

        public DBCollectionFindAndModifyOptions arrayFilters​(java.util.List<? extends DBObject> arrayFilters)
        Deprecated.
        Sets the array filters option
        Parameters:
        arrayFilters - the array filters, which may be null
        Returns:
        this
        Since:
        3.6
      • getArrayFilters

        public java.util.List<? extends DBObject> getArrayFilters()
        Deprecated.
        Returns the array filters option
        Returns:
        the array filters, which may be null
        Since:
        3.6