Class SimpleCommitContext
java.lang.Object
org.apache.jackrabbit.oak.spi.commit.SimpleCommitContext
- All Implemented Interfaces:
CommitContext
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.spi.commit.CommitContext
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the named attribute as anObject, ornullif no attribute of the given name exists.voidRemoves an attribute from this commit.voidStores an attribute related to this commit.toString()
-
Constructor Details
-
SimpleCommitContext
public SimpleCommitContext()
-
-
Method Details
-
toString
-
set
Description copied from interface:CommitContextStores 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:
setin interfaceCommitContext- Parameters:
name- aStringspecifying the name of the attributevalue- theObjectto be stored
-
get
Description copied from interface:CommitContextReturns the value of the named attribute as anObject, ornullif no attribute of the given name exists.- Specified by:
getin interfaceCommitContext- Parameters:
name-Stringspecifying the name of the attribute- Returns:
- an
Objectcontaining the value of the attribute, ornullif the attribute does not exist
-
remove
Description copied from interface:CommitContextRemoves an attribute from this commit.- Specified by:
removein interfaceCommitContext- Parameters:
name- aStringspecifying the name of the attribute to remove
-