public class NullMarkerNodeForRemoval extends RepeatableReadNode
ReadCommittedNode.Flags
backup, flags, parent
node
componentRegistry, configuration, invocationContextContainer, invoker, originLocal
Constructor and Description |
---|
NullMarkerNodeForRemoval(InternalNode parent,
Fqn fqn) |
Modifier and Type | Method and Description |
---|---|
Set |
getChildrenDirect()
Functionally the same as
Node.getChildren() except that it operates directly on the node and bypasses the
interceptor chain. |
Set |
getChildrenNamesDirect()
Functionally the same as
Node.getChildrenNames() except that it operates directly on the node and bypasses the
interceptor chain. |
Map |
getDataDirect()
Functionally the same as
Node.getData() except that it operates directly on the node and bypasses the
interceptor chain. |
Fqn |
getFqn()
|
boolean |
isDeleted()
Returns true if the instance has been deleted in the current transaction.
|
boolean |
isNullNode() |
boolean |
isValid()
Tests if a node reference is still valid.
|
void |
setValid(boolean valid,
boolean recursive)
Sets the validity of a node.
|
protected void |
updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer)
Updates state changes on the current node in the underlying data structure.
|
markForUpdate
commitUpdate, getInternalParent, isChanged, isCreated, isFlagSet, lookupParent, markAsDeleted, markAsDeleted, rollbackUpdate, setChildrenLoaded, setCreated, setDataLoaded, setFlag, unsetFlag
addChild, addChild, addChildDirect, addChildDirect, addChildDirect, addChildDirect, assertValid, clearData, clearDataDirect, containsKeyDirect, dataSize, equals, get, getCache, getChild, getChild, getChildDirect, getChildDirect, getChildren, getChildrenDirect, getChildrenMapDirect, getChildrenNames, getData, getDelegationTarget, getDirect, getInternalState, getKeys, getKeysDirect, getLock, getOrCreateChild, getParent, getParentDirect, getVersion, hasChild, hasChild, hasChildrenDirect, hashCode, injectDependencies, isChildrenLoaded, isDataLoaded, isLeaf, isLockForChildInsertRemove, isResident, print, printDetails, put, putAll, putAllDirect, putDirect, putIfAbsent, releaseObjectReferences, remove, removeChild, removeChild, removeChildDirect, removeChildDirect, removeChildrenDirect, removeDirect, replace, replace, replaceAll, setChildrenMapDirect, setFqn, setInternalState, setLockForChildInsertRemove, setResident, setVersion, toString
assertIsConstructed, initialize
public NullMarkerNodeForRemoval(InternalNode parent, Fqn fqn)
public boolean isNullNode()
isNullNode
in interface NodeSPI
isNullNode
in class ReadCommittedNode
public boolean isValid()
Node
NodeNotValidException
.isValid
in interface Node
isValid
in class NodeInvocationDelegate
public boolean isDeleted()
NodeSPI
isDeleted
in interface NodeSPI
isDeleted
in class ReadCommittedNode
protected void updateNode(Fqn fqn, InvocationContext ctx, DataContainer dataContainer)
ReadCommittedNode
updateNode
in class RepeatableReadNode
ctx
- invocation contextdataContainer
- data containerpublic Map getDataDirect()
NodeSPI
Node.getData()
except that it operates directly on the node and bypasses the
interceptor chain.
Note that this returns a reference to access the node's data.
This data should only be modified by the cache itself.
This method should never return null.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getDataDirect
in interface NodeSPI
getDataDirect
in class NodeInvocationDelegate
Node.getData()
public Set getChildrenNamesDirect()
NodeSPI
Node.getChildrenNames()
except that it operates directly on the node and bypasses the
interceptor chain.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getChildrenNamesDirect
in interface NodeSPI
getChildrenNamesDirect
in class NodeInvocationDelegate
Node.getChildrenNames()
public Set getChildrenDirect()
NodeSPI
Node.getChildren()
except that it operates directly on the node and bypasses the
interceptor chain.
The caller needs to ensure a proper lock has been obtained prior to calling this method, otherwise a
LockingException
will be thrown.
getChildrenDirect
in interface NodeSPI
getChildrenDirect
in class NodeInvocationDelegate
Node.getChildren()
public void setValid(boolean valid, boolean recursive)
NodeSPI
Node.isValid()
.setValid
in interface NodeSPI
setValid
in class NodeInvocationDelegate
valid
- if true, the node is marked as valid; if false, the node is invalid.recursive
- if true, the validity flag passed in is applied to all children as well.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.