org.mmbase.applications.vprowizards.spring.cache
Class CacheFlushHint

java.lang.Object
  extended by org.mmbase.applications.vprowizards.spring.cache.CacheFlushHint

public class CacheFlushHint
extends Object

FIXME: why is there no indicator for the type of mutation (add:update:delete)? TODO: create an enum for the types

Author:
Ernst Bunders

Field Summary
static int TYPE_NODE
          for every node that is created, deleted or updated, a hint of this type is created.
static int TYPE_RELATION
          For each relation that was created or removed a hint of this type will be created.
static int TYPE_REQUEST
          For each request a cache flush hint of this type will be added.
 
Constructor Summary
CacheFlushHint(int type)
           
 
Method Summary
 int getDestinationNodeNumber()
           
 int getNodeNumber()
           
 String getNodeType()
           
 Object getProperty(String name)
           
 int getRelationNumber()
           
 int getSourceNodeNumber()
           
 int getType()
           
 void setDestinationNodeNumber(int destinationNodeNumber)
           
 void setNodeNumber(int nodeNumber)
           
 void setNodeType(String nodeType)
           
 void setProperty(String name, Object value)
           
 void setRelationNumber(int relationNumber)
           
 void setSourceNodeNumber(int sourceNodeNumber)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_REQUEST

public static final int TYPE_REQUEST
For each request a cache flush hint of this type will be added. use it to do stuff you always want to do like call your own cache flush logic that is not related to the different cache flush hint types.

See Also:
Constant Field Values

TYPE_RELATION

public static final int TYPE_RELATION
For each relation that was created or removed a hint of this type will be created. If one action causes multiple relation mutations (like first delete a relation node, and then create a new one) only one hint is created.

See Also:
Constant Field Values

TYPE_NODE

public static final int TYPE_NODE
for every node that is created, deleted or updated, a hint of this type is created.

See Also:
Constant Field Values
Constructor Detail

CacheFlushHint

public CacheFlushHint(int type)
Method Detail

getNodeType

public String getNodeType()

setNodeType

public void setNodeType(String nodeType)

getDestinationNodeNumber

public int getDestinationNodeNumber()

setDestinationNodeNumber

public void setDestinationNodeNumber(int destinationNodeNumber)

getNodeNumber

public int getNodeNumber()

setNodeNumber

public void setNodeNumber(int nodeNumber)

getRelationNumber

public int getRelationNumber()

setRelationNumber

public void setRelationNumber(int relationNumber)

getSourceNodeNumber

public int getSourceNodeNumber()

setSourceNodeNumber

public void setSourceNodeNumber(int sourceNodeNumber)

getType

public int getType()

getProperty

public Object getProperty(String name)

setProperty

public void setProperty(String name,
                        Object value)

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null