站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 Cache API Documentation 英文版文档

Modification (JBoss Cache API) - JBoss 3.2.7 Cache API Documentation 英文版文档


org.jboss.cache
Class Modification

java.lang.Object
  extended byorg.jboss.cache.Modification
All Implemented Interfaces:
Serializable

public class Modification
extends Object
implements Serializable

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.

Version:
$Revision: 1.4.4.6 $ todo: implement Externalizable
Author:
Bela Ban Apr 12, 2003
See Also:
Serialized Form

Field Summary
static int PUT_DATA
           
static int PUT_DATA_ERASE
           
static int PUT_KEY_VALUE
           
static int REMOVE_DATA
           
static int REMOVE_KEY_VALUE
           
static int REMOVE_NODE
           
 
Constructor Summary
Modification()
           
Modification(int type, Fqn fqn)
           
Modification(int type, Fqn fqn, Map data)
           
Modification(int type, Fqn fqn, Object key)
           
Modification(int type, Fqn fqn, Object key, Object value)
           
Modification(int type, Fqn fqn, Object key, Object value, Object old_value, Map data, Map old_data)
           
 
Method Summary
 Map getData()
           
 Fqn getFqn()
           
 Object getKey()
           
 Map getOldData()
           
 Object getOldValue()
           
 int getType()
           
 Object getValue()
           
 void setData(Map data)
           
 void setFqn(Fqn fqn)
           
 void setKey(Object key)
           
 void setOldData(Map old_data)
           
 void setOldValue(Object old_value)
           
 void setType(int type)
           
 void setValue(Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PUT_KEY_VALUE

public static final int PUT_KEY_VALUE
See Also:
Constant Field Values

PUT_DATA

public static final int PUT_DATA
See Also:
Constant Field Values

PUT_DATA_ERASE

public static final int PUT_DATA_ERASE
See Also:
Constant Field Values

REMOVE_NODE

public static final int REMOVE_NODE
See Also:
Constant Field Values

REMOVE_KEY_VALUE

public static final int REMOVE_KEY_VALUE
See Also:
Constant Field Values

REMOVE_DATA

public static final int REMOVE_DATA
See Also:
Constant Field Values
Constructor Detail

Modification

public Modification()

Modification

public Modification(int type,
                    Fqn fqn,
                    Object key,
                    Object value,
                    Object old_value,
                    Map data,
                    Map old_data)

Modification

public Modification(int type,
                    Fqn fqn,
                    Object key,
                    Object value)

Modification

public Modification(int type,
                    Fqn fqn,
                    Object key)

Modification

public Modification(int type,
                    Fqn fqn,
                    Map data)

Modification

public Modification(int type,
                    Fqn fqn)
Method Detail

getType

public int getType()

setType

public void setType(int type)

getFqn

public Fqn getFqn()

setFqn

public void setFqn(Fqn fqn)

getKey

public Object getKey()

setKey

public void setKey(Object key)

getValue

public Object getValue()

setValue

public void setValue(Object value)

getOldValue

public Object getOldValue()

setOldValue

public void setOldValue(Object old_value)

getData

public Map getData()

setData

public void setData(Map data)

getOldData

public Map getOldData()

setOldData

public void setOldData(Map old_data)

toString

public String toString()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.