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
CompositeModification
which can then be applied to a write transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(DOMStoreWriteTransaction transaction)
Apply the modification to the specified transaction.void
apply(DataTreeModification transaction)
Apply the modification to the specified transaction.byte
getType()
void
readExternal(ObjectInput in)
void
writeExternal(ObjectOutput out)
void
writeTo(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:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeTo
void writeTo(NormalizedNodeDataOutput out) throws IOException
- Throws:
IOException
-
-