Class SimpleCommitContext
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.commit.SimpleCommitContext
-
- All Implemented Interfaces:
CommitContext
public class SimpleCommitContext extends Object implements CommitContext
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.commit.CommitContext
NAME
-
-
Constructor Summary
Constructors Constructor Description SimpleCommitContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String name)
Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.void
remove(String name)
Removes an attribute from this commit.void
set(String name, Object value)
Stores an attribute related to this commit.String
toString()
-
-
-
Method Detail
-
set
public void set(String name, 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 interfaceCommitContext
- Parameters:
name
- aString
specifying the name of the attributevalue
- theObject
to be stored
-
get
public Object get(String name)
Description copied from interface:CommitContext
Returns the value of the named attribute as anObject
, ornull
if no attribute of the given name exists.- Specified by:
get
in interfaceCommitContext
- Parameters:
name
-String
specifying the name of the attribute- Returns:
- an
Object
containing the value of the attribute, ornull
if the attribute does not exist
-
remove
public void remove(String name)
Description copied from interface:CommitContext
Removes an attribute from this commit.- Specified by:
remove
in interfaceCommitContext
- Parameters:
name
- aString
specifying the name of the attribute to remove
-
-