org.mmbase.applications.vprowizards.spring.cache
Class CacheFlushHint
java.lang.Object
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. |
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
CacheFlushHint
public CacheFlushHint(int type)
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