Class UpdateOptions

    • Constructor Detail

      • UpdateOptions

        public UpdateOptions()
    • Method Detail

      • updateOptions

        public static UpdateOptions updateOptions​(boolean insertIfAbsent)
        Creates a new UpdateOptions.
        Parameters:
        insertIfAbsent - the insertIfAbsent flag
        Returns:
        the UpdateOptions.
      • updateOptions

        public static UpdateOptions updateOptions​(boolean insertIfAbsent,
                                                  boolean justOnce)
        Creates a new UpdateOptions.
        Parameters:
        insertIfAbsent - the insertIfAbsent flag
        justOnce - the justOnce flag
        Returns:
        the UpdateOptions.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isJustOnce

        public boolean isJustOnce()
        Indicates if only one document will be updated or all of them.
      • setJustOnce

        public void setJustOnce​(boolean justOnce)
        Indicates if only one document will be updated or all of them.