Interface Buffered

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Buffered.SourceException
      Deprecated.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void commit()
      Deprecated.
      Updates all changes since the previous commit to the data source.
      void discard()
      Deprecated.
      Discards all changes since last commit.
      boolean isBuffered()
      Deprecated.
      Checks the buffered mode.
      boolean isModified()
      Deprecated.
      Tests if the value stored in the object has been modified since it was last updated from the data source.
      void setBuffered​(boolean buffered)
      Deprecated.
      Sets the buffered mode to the specified status.
    • Method Detail

      • discard

        void discard()
              throws Buffered.SourceException
        Deprecated.
        Discards all changes since last commit. The object updates its value from the data source.
        Throws:
        Buffered.SourceException - if the operation fails because of an exception is thrown by the data source. The cause is included in the exception.
      • setBuffered

        void setBuffered​(boolean buffered)
        Deprecated.
        Sets the buffered mode to the specified status.

        When in buffered mode, an internal buffer will be used to store changes until commit() is called. Calling discard() will revert the internal buffer to the value of the data source.

        When in non-buffered mode both read and write operations will be done directly on the data source. In this mode the commit() and discard() methods serve no purpose.

        Parameters:
        buffered - true if buffered mode should be turned on, false otherwise
        Since:
        7.0
      • isBuffered

        boolean isBuffered()
        Deprecated.
        Checks the buffered mode.
        Returns:
        true if buffered mode is on, false otherwise
        Since:
        7.0
      • isModified

        boolean isModified()
        Deprecated.
        Tests if the value stored in the object has been modified since it was last updated from the data source.
        Returns:
        true if the value in the object has been modified since the last data source update, false if not.