Interface Modification
-
- All Superinterfaces:
Externalizable,Serializable
- All Known Subinterfaces:
CompositeModification
- All Known Implementing Classes:
AbstractModification,BatchedModifications,DeleteModification,MergeModification,MutableCompositeModification,WriteModification
public interface Modification extends Externalizable
Represents a modification to the data store.Simple modifications can be of type,
Modifications can in turn be lumped into a single
CompositeModificationwhich can then be applied to a write transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapply(DOMStoreWriteTransaction transaction)Apply the modification to the specified transaction.voidapply(DataTreeModification transaction)Apply the modification to the specified transaction.bytegetType()voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)voidwriteTo(NormalizedNodeDataOutput out)
-
-
-
Field Detail
-
COMPOSITE
static final byte COMPOSITE
- See Also:
- Constant Field Values
-
WRITE
static final byte WRITE
- See Also:
- Constant Field Values
-
MERGE
static final byte MERGE
- See Also:
- Constant Field Values
-
DELETE
static final byte DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
void apply(DOMStoreWriteTransaction transaction)
Apply the modification to the specified transaction.- Parameters:
transaction- the transaction
-
apply
void apply(DataTreeModification transaction)
Apply the modification to the specified transaction.- Parameters:
transaction- the transaction
-
getType
byte getType()
-
writeExternal
void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeTo
void writeTo(NormalizedNodeDataOutput out) throws IOException
- Throws:
IOException
-
-