|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkspaceNode
Represents a type of Node that is to be copied into a TransactionWorkspace for optimistically locked
nodes. Adds versioning and dirty flags over conventional Nodes.
| Method Summary | |
|---|---|
void |
addChild(WorkspaceNode workspaceNode)
|
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
TreeCache cache,
DataVersion version)
|
java.util.Set |
getChildrenNames()
|
java.util.Set |
getKeys()
|
java.util.List |
getMergedChildren()
|
java.util.Map |
getMergedData()
|
DataNode |
getNode()
|
TransactionWorkspace |
getTransactionWorkspace()
|
DataVersion |
getVersion()
|
boolean |
isChildrenModified()
|
boolean |
isCreated()
|
boolean |
isDeleted()
|
boolean |
isDirty()
A convenience method that returns whether a node is dirty, i.e., it has been created, deleted or modified. |
boolean |
isModified()
A node is considered modified if it's data map has changed. |
boolean |
isVersioningImplicit()
|
void |
markAsCreated()
|
void |
markAsDeleted(boolean marker)
|
void |
setVersion(DataVersion version)
|
void |
setVersioningImplicit(boolean b)
|
| Methods inherited from interface org.jboss.cache.TreeNode |
|---|
acquireAll, addChild, childExists, clear, containsKey, createChild, createChild, get, getChild, getChildren, getChildrenLoaded, getData, getDataKeys, getFqn, getImmutableLock, getLock, getName, getOrCreateChild, getParent, hasChildren, isLocked, numAttributes, print, printDetails, printIndent, printLockInfo, put, put, put, release, releaseAll, releaseAllForce, releaseForce, remove, removeAllChildren, removeChild, setChildren, setChildrenLoaded, setRecursiveTreeCacheInstance |
| Method Detail |
|---|
java.util.List getMergedChildren()
DataVersion getVersion()
void setVersion(DataVersion version)
java.util.Set getKeys()
boolean isModified()
isChildrenModified().
boolean isDirty()
isChildrenModified()
java.util.Map getMergedData()
DataNode getNode()
java.util.Set getChildrenNames()
boolean isDeleted()
void markAsDeleted(boolean marker)
TransactionWorkspace getTransactionWorkspace()
boolean isCreated()
void markAsCreated()
TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
TreeCache cache,
DataVersion version)
boolean isVersioningImplicit()
void setVersioningImplicit(boolean b)
void addChild(WorkspaceNode workspaceNode)
boolean isChildrenModified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||