Class InsertManyOptions


  • @Deprecated(since="2021-05-27")
    public final class InsertManyOptions
    extends java.lang.Object
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    The options to apply to an operation that inserts multiple documents into a collection.
    Since:
    3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      InsertManyOptions()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      InsertManyOptions bypassDocumentValidation​(java.lang.Boolean bypassDocumentValidation)
      Deprecated.
      Sets the bypass document level validation flag.
      java.lang.Boolean getBypassDocumentValidation()
      Deprecated.
      Gets the the bypass document level validation flag
      boolean isOrdered()
      Deprecated.
      Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion.
      InsertManyOptions ordered​(boolean ordered)
      Deprecated.
      Sets whether the server should insert the documents in the order provided.
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InsertManyOptions

        public InsertManyOptions()
        Deprecated.
    • Method Detail

      • isOrdered

        public boolean isOrdered()
        Deprecated.
        Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion. The default is true. If false, the server will attempt to insert all the documents regardless of an failures.
        Returns:
        whether the the documents should be inserted in order
      • ordered

        public InsertManyOptions ordered​(boolean ordered)
        Deprecated.
        Sets whether the server should insert the documents in the order provided.
        Parameters:
        ordered - true if documents should be inserted in order
        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 InsertManyOptions 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:
        toString in class java.lang.Object