|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.Modification
public class Modification
Represents a modification in the cache. Contains the nature of the modification (e.g. PUT, REMOVE), the fqn of the node, the new value and the previous value. A list of modifications will be sent to all nodes in a cluster when a transaction has been committed (PREPARE phase). A Modification is also used to roll back changes, e.g. since we know the previous value, we can reconstruct the previous state by applying the changes in a modification listin reverse order.
Nested Class Summary | |
---|---|
static class |
Modification.ModificationType
|
Constructor Summary | |
---|---|
Modification()
Constructs a new modification. |
|
Modification(Modification.ModificationType type,
Fqn fqn)
Constructs a new modification with fqn only. |
|
Modification(Modification.ModificationType type,
Fqn fqn1,
Fqn fqn2)
Constructs a new modification with fqn only. |
|
Modification(Modification.ModificationType type,
Fqn fqn,
Map data)
Constructs a new modification with data map. |
|
Modification(Modification.ModificationType type,
Fqn fqn,
Object key)
Constructs a new modification with key. |
|
Modification(Modification.ModificationType type,
Fqn fqn,
Object key,
Object value)
Constructs a new modification with details. |
Method Summary | |
---|---|
Map |
getData()
Returns the modification Map set. |
Fqn |
getFqn()
Returns the modification fqn. |
Fqn |
getFqn2()
|
Object |
getKey()
Returns the modification key. |
Object |
getOldValue()
Returns the post modification old value. |
Modification.ModificationType |
getType()
Returns the type of modification. |
Object |
getValue()
Returns the modification value. |
void |
readExternal(ObjectInput in)
Reads data from an external stream. |
void |
setData(Map data)
Sets the modification Map set. |
void |
setFqn(Fqn fqn)
Sets the modification fqn. |
void |
setFqn2(Fqn fqn2)
|
void |
setKey(Object key)
Sets the modification key. |
void |
setOldValue(Object old_value)
Sets the post modification old value. |
void |
setType(Modification.ModificationType type)
Sets the type of modification. |
void |
setValue(Object value)
Sets the modification value. |
String |
toString()
Returns debug information about this modification. |
void |
writeExternal(ObjectOutput out)
Writes data to an external stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Modification()
public Modification(Modification.ModificationType type, Fqn fqn, Object key, Object value)
public Modification(Modification.ModificationType type, Fqn fqn, Object key)
public Modification(Modification.ModificationType type, Fqn fqn, Map data)
public Modification(Modification.ModificationType type, Fqn fqn)
public Modification(Modification.ModificationType type, Fqn fqn1, Fqn fqn2)
Method Detail |
---|
public Modification.ModificationType getType()
public void setType(Modification.ModificationType type)
public Fqn getFqn()
public void setFqn(Fqn fqn)
public void setFqn2(Fqn fqn2)
public Fqn getFqn2()
public Object getKey()
public void setKey(Object key)
public Object getValue()
public void setValue(Object value)
public Object getOldValue()
public void setOldValue(Object old_value)
public Map getData()
public void setData(Map data)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |