|
|||||||||||
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 WorkspaceNode
public Fqn getFqn()
getFqn
in interface TreeNode
public void put(java.util.Map data, boolean eraseData)
put
in interface TreeNode
public 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 TreeNode
public java.lang.Object remove(java.lang.Object key)
remove
in interface TreeNode
public void clear()
clear
in interface TreeNode
public java.lang.Object get(java.lang.Object key)
get
in interface TreeNode
public java.util.Set getKeys()
getKeys
in interface WorkspaceNode
public java.util.Set getChildrenNames()
getChildrenNames
in interface WorkspaceNode
public void removeChild(java.lang.Object childName)
removeChild
in interface TreeNode
public TreeNode getParent()
getParent
in interface TreeNode
public TreeNode getWrappedParent()
public TreeNode createChild(java.lang.Object child_name, Fqn fqn, TreeNode parent)
createChild
in interface TreeNode
public TreeNode getChild(java.lang.Object childName)
getChild
in interface TreeNode
public TreeNode getWrappedChild(java.lang.Object fqn)
public DataNode getNode()
getNode
in interface WorkspaceNode
public long getVersion()
getVersion
in interface WorkspaceNode
public java.util.Map getMergedChildren()
getMergedChildren
in interface WorkspaceNode
public java.util.Map getMergedData()
getMergedData
in interface WorkspaceNode
public void markAsDeleted()
markAsDeleted
in interface WorkspaceNode
public boolean isDeleted()
isDeleted
in interface WorkspaceNode
public java.lang.Object getName()
getName
in interface TreeNode
public TransactionWorkspace getTransactionWorkspace()
getTransactionWorkspace
in interface WorkspaceNode
public boolean isDeepDirty()
isDeepDirty
in interface WorkspaceNode
public boolean isCreated()
isCreated
in interface WorkspaceNode
public void markAsCreated()
markAsCreated
in interface WorkspaceNode
public java.util.Map getData()
getData
in interface TreeNode
DataNode
public java.util.Map getChildren()
getChildren
in interface TreeNode
DataNode
public boolean containsKey(java.lang.Object key)
containsKey
in interface TreeNode
DataNode
public java.util.Set getDataKeys()
getDataKeys
in interface TreeNode
DataNode
public boolean childExists(java.lang.Object child_name)
childExists
in interface TreeNode
DataNode
public IdentityLock getImmutableLock()
TreeNode
getImmutableLock
in interface TreeNode
DataNode
public IdentityLock getLock()
TreeNode
getLock
in interface TreeNode
DataNode
public int numAttributes()
numAttributes
in interface TreeNode
DataNode
public boolean hasChildren()
hasChildren
in interface TreeNode
DataNode
public TreeNode getOrCreateChild(java.lang.Object child_name, GlobalTransaction gtx, boolean createIfNotExists)
getOrCreateChild
in interface TreeNode
DataNode
public TreeNode createChild(java.lang.Object child_name, Fqn fqn, TreeNode parent, java.lang.Object key, java.lang.Object value)
createChild
in interface TreeNode
DataNode
public void removeAllChildren()
removeAllChildren
in interface TreeNode
DataNode
public void print(java.lang.StringBuffer sb, int indent)
print
in interface TreeNode
DataNode
public void printDetails(java.lang.StringBuffer sb, int indent)
printDetails
in interface TreeNode
DataNode
public void printIndent(java.lang.StringBuffer sb, int indent)
printIndent
in interface TreeNode
DataNode
public void addChild(java.lang.Object child_name, TreeNode n)
addChild
in interface TreeNode
DataNode
public void printLockInfo(java.lang.StringBuffer sb, int indent)
TreeNode
printLockInfo
in interface TreeNode
DataNode
public boolean isLocked()
TreeNode
isLocked
in interface TreeNode
DataNode
public void releaseAll(java.lang.Object owner)
TreeNode
releaseAll
in interface TreeNode
DataNode
public void releaseAllForce()
TreeNode
releaseAllForce
in interface TreeNode
DataNode
public java.util.Set acquireAll(java.lang.Object caller, long timeout, int lock_type) throws LockingException, TimeoutException, java.lang.InterruptedException
TreeNode
acquireAll
in interface TreeNode
LockingException
TimeoutException
java.lang.InterruptedException
DataNode
public void setRecursiveTreeCacheInstance(TreeCache cache)
TreeNode
setRecursiveTreeCacheInstance
in interface TreeNode
DataNode
public boolean getChildrenLoaded()
TreeNode
getChildrenLoaded
in interface TreeNode
DataNode
public void setChildrenLoaded(boolean b)
TreeNode
setChildrenLoaded
in interface TreeNode
DataNode
public void setChildren(java.util.Map children)
public void release(java.lang.Object caller)
TreeNode
release
in interface TreeNode
DataNode
public void releaseForce()
TreeNode
releaseForce
in interface TreeNode
DataNode
public 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 |