Class SimpleCommitContext

    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.oak.spi.commit.CommitContext

        NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String name)
      Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
      void remove​(java.lang.String name)
      Removes an attribute from this commit.
      void set​(java.lang.String name, java.lang.Object value)
      Stores an attribute related to this commit.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • SimpleCommitContext

        public SimpleCommitContext()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • set

        public void set​(java.lang.String name,
                        java.lang.Object value)
        Description copied from interface: CommitContext
        Stores an attribute related to this commit. Attributes are reset if the commit is retried.

        If the object passed in is null, the effect is the same as calling CommitContext.remove(java.lang.String).

        Specified by:
        set in interface CommitContext
        Parameters:
        name - a String specifying the name of the attribute
        value - the Object to be stored
      • get

        public java.lang.Object get​(java.lang.String name)
        Description copied from interface: CommitContext
        Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.
        Specified by:
        get in interface CommitContext
        Parameters:
        name - String specifying the name of the attribute
        Returns:
        an Object containing the value of the attribute, or null if the attribute does not exist
      • remove

        public void remove​(java.lang.String name)
        Description copied from interface: CommitContext
        Removes an attribute from this commit.
        Specified by:
        remove in interface CommitContext
        Parameters:
        name - a String specifying the name of the attribute to remove