|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.jboss.cache.optimistic.WorkspaceNodeImpl
TODO: MANIK: Add proper javadocs
| Constructor Summary | |
WorkspaceNodeImpl()
Default ctor for rehydration via externalizable |
|
WorkspaceNodeImpl(DataNode node,
TransactionWorkspace workspace)
|
|
WorkspaceNodeImpl(TreeNode node,
TransactionWorkspace workspace)
Deprecated. |
|
| Method Summary | |
java.util.Set |
acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
Not to be exposed. |
void |
addChild(java.lang.Object child_name,
TreeNode n)
Deprecated. Will be removed in JBossCache 1.3. |
boolean |
childExists(java.lang.Object child_name)
Deprecated. Will be removed in JBossCache 1.3. |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
Deprecated. Will be removed in JBossCache 1.3. |
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent)
|
TreeNode |
createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
Deprecated. Will be removed in JBossCache 1.3. |
java.lang.Object |
get(java.lang.Object key)
|
TreeNode |
getChild(java.lang.Object childName)
|
java.util.Map |
getChildren()
Dummy introduced to allow for a TreeNode.getChildren() method for backward compatibility. |
boolean |
getChildrenLoaded()
Not to be exposed. |
java.util.Set |
getChildrenNames()
|
java.util.Map |
getData()
Dummy introduced to allow for a TreeNode.getData() method for backward compatibility. |
java.util.Set |
getDataKeys()
Deprecated. Will be removed in JBossCache 1.3. |
Fqn |
getFqn()
|
IdentityLock |
getImmutableLock()
Not to be exposed. |
java.util.Set |
getKeys()
|
IdentityLock |
getLock()
Not to be exposed. |
java.util.Map |
getMergedChildren()
|
java.util.Map |
getMergedData()
|
java.lang.Object |
getName()
|
DataNode |
getNode()
|
TreeNode |
getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
Deprecated. Will be removed in JBossCache 1.3. |
TreeNode |
getParent()
|
TransactionWorkspace |
getTransactionWorkspace()
|
long |
getVersion()
|
TreeNode |
getWrappedChild(java.lang.Object fqn)
|
TreeNode |
getWrappedParent()
|
boolean |
hasChildren()
Deprecated. Will be removed in JBossCache 1.3. |
boolean |
isCreated()
|
boolean |
isDeepDirty()
|
boolean |
isDeleted()
|
boolean |
isDirty()
|
boolean |
isLocked()
Not to be exposed. |
void |
markAsCreated()
|
void |
markAsDeleted()
|
int |
numAttributes()
Deprecated. Will be removed in JBossCache 1.3. |
void |
print(java.lang.StringBuffer sb,
int indent)
Deprecated. Will be removed in JBossCache 1.3. |
void |
printDetails(java.lang.StringBuffer sb,
int indent)
Deprecated. Will be removed in JBossCache 1.3. |
void |
printIndent(java.lang.StringBuffer sb,
int indent)
Deprecated. Will be removed in JBossCache 1.3. |
void |
printLockInfo(java.lang.StringBuffer sb,
int indent)
Not to be exposed. |
void |
put(java.util.Map data)
|
void |
put(java.util.Map data,
boolean eraseData)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
release(java.lang.Object caller)
Not to be exposed. |
void |
releaseAll(java.lang.Object owner)
Not to be exposed. |
void |
releaseAllForce()
Not to be exposed. |
void |
releaseForce()
Not to be exposed. |
java.lang.Object |
remove(java.lang.Object key)
|
void |
removeAllChildren()
Deprecated. Will be removed in JBossCache 1.3. |
void |
removeChild(java.lang.Object childName)
|
void |
setChildren(java.util.Map children)
Deprecated. Will be removed in JBossCache 1.3. |
void |
setChildrenLoaded(boolean b)
Not to be exposed. |
void |
setRecursiveTreeCacheInstance(TreeCache cache)
Not to be exposed. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WorkspaceNodeImpl()
public WorkspaceNodeImpl(TreeNode node,
TransactionWorkspace workspace)
node - workspace -
public WorkspaceNodeImpl(DataNode node,
TransactionWorkspace workspace)
node - workspace - | Method Detail |
public boolean isDirty()
isDirty in interface WorkspaceNodepublic Fqn getFqn()
getFqn in interface TreeNode
public void put(java.util.Map data,
boolean eraseData)
put in interface TreeNodepublic void put(java.util.Map data)
put in interface TreeNode
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface TreeNodepublic java.lang.Object remove(java.lang.Object key)
remove in interface TreeNodepublic void clear()
clear in interface TreeNodepublic java.lang.Object get(java.lang.Object key)
get in interface TreeNodepublic java.util.Set getKeys()
getKeys in interface WorkspaceNodepublic java.util.Set getChildrenNames()
getChildrenNames in interface WorkspaceNodepublic void removeChild(java.lang.Object childName)
removeChild in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNodepublic TreeNode getWrappedParent()
public TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent)
createChild in interface TreeNodepublic TreeNode getChild(java.lang.Object childName)
getChild in interface TreeNodepublic TreeNode getWrappedChild(java.lang.Object fqn)
public DataNode getNode()
getNode in interface WorkspaceNodepublic long getVersion()
getVersion in interface WorkspaceNodepublic java.util.Map getMergedChildren()
getMergedChildren in interface WorkspaceNodepublic java.util.Map getMergedData()
getMergedData in interface WorkspaceNodepublic void markAsDeleted()
markAsDeleted in interface WorkspaceNodepublic boolean isDeleted()
isDeleted in interface WorkspaceNodepublic java.lang.Object getName()
getName in interface TreeNodepublic TransactionWorkspace getTransactionWorkspace()
getTransactionWorkspace in interface WorkspaceNodepublic boolean isDeepDirty()
isDeepDirty in interface WorkspaceNodepublic boolean isCreated()
isCreated in interface WorkspaceNodepublic void markAsCreated()
markAsCreated in interface WorkspaceNodepublic java.util.Map getData()
getData in interface TreeNodeDataNodepublic java.util.Map getChildren()
getChildren in interface TreeNodeDataNodepublic boolean containsKey(java.lang.Object key)
containsKey in interface TreeNodeDataNodepublic java.util.Set getDataKeys()
getDataKeys in interface TreeNodeDataNodepublic boolean childExists(java.lang.Object child_name)
childExists in interface TreeNodeDataNodepublic IdentityLock getImmutableLock()
TreeNode
getImmutableLock in interface TreeNodeDataNodepublic IdentityLock getLock()
TreeNode
getLock in interface TreeNodeDataNodepublic int numAttributes()
numAttributes in interface TreeNodeDataNodepublic boolean hasChildren()
hasChildren in interface TreeNodeDataNode
public TreeNode getOrCreateChild(java.lang.Object child_name,
GlobalTransaction gtx,
boolean createIfNotExists)
getOrCreateChild in interface TreeNodeDataNode
public TreeNode createChild(java.lang.Object child_name,
Fqn fqn,
TreeNode parent,
java.lang.Object key,
java.lang.Object value)
createChild in interface TreeNodeDataNodepublic void removeAllChildren()
removeAllChildren in interface TreeNodeDataNode
public void print(java.lang.StringBuffer sb,
int indent)
print in interface TreeNodeDataNode
public void printDetails(java.lang.StringBuffer sb,
int indent)
printDetails in interface TreeNodeDataNode
public void printIndent(java.lang.StringBuffer sb,
int indent)
printIndent in interface TreeNodeDataNode
public void addChild(java.lang.Object child_name,
TreeNode n)
addChild in interface TreeNodeDataNode
public void printLockInfo(java.lang.StringBuffer sb,
int indent)
TreeNode
printLockInfo in interface TreeNodeDataNodepublic boolean isLocked()
TreeNode
isLocked in interface TreeNodeDataNodepublic void releaseAll(java.lang.Object owner)
TreeNode
releaseAll in interface TreeNodeDataNodepublic void releaseAllForce()
TreeNode
releaseAllForce in interface TreeNodeDataNode
public java.util.Set acquireAll(java.lang.Object caller,
long timeout,
int lock_type)
throws LockingException,
TimeoutException,
java.lang.InterruptedException
TreeNode
acquireAll in interface TreeNodeLockingException
TimeoutException
java.lang.InterruptedExceptionDataNodepublic void setRecursiveTreeCacheInstance(TreeCache cache)
TreeNode
setRecursiveTreeCacheInstance in interface TreeNodeDataNodepublic boolean getChildrenLoaded()
TreeNode
getChildrenLoaded in interface TreeNodeDataNodepublic void setChildrenLoaded(boolean b)
TreeNode
setChildrenLoaded in interface TreeNodeDataNodepublic void setChildren(java.util.Map children)
public void release(java.lang.Object caller)
TreeNode
release in interface TreeNodeDataNodepublic void releaseForce()
TreeNode
releaseForce in interface TreeNodeDataNodepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||