public interface INodeWriteTrx extends INodeReadTrx
Interface to access nodes based on the Key/ParentKey/FirstChildKey/LeftSiblingKey/RightSiblingKey/ChildCount encoding. This encoding keeps the children ordered but has no knowledge of the global node ordering. The underlying tree is accessed in a cursor-like fashion.
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort all modifications of the exclusive write transaction.
|
void |
close()
Closing current NodeWriteTrx.
|
void |
commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
IBucketWriteTrx |
getPageWtx()
Getting the Page Transaction
|
long |
insertAttribute(QName pName,
String pValue)
Insert attribute in currently selected node.
|
long |
insertElementAsFirstChild(QName pName)
Insert new element node as first child of currently selected node.
|
long |
insertElementAsRightSibling(QName pFromKey)
Insert new element node as right sibling of currently selected node.
|
long |
insertNamespace(QName pName)
Insert namespace declaration in currently selected node.
|
long |
insertTextAsFirstChild(String pValue)
Insert new text node as first child of currently selected node.
|
long |
insertTextAsRightSibling(String pValue)
Insert new text node as right sibling of currently selected node.
|
void |
remove()
Remove currently selected node.
|
void |
revertTo(long pRev)
Reverting all changes to the revision defined.
|
void |
setQName(QName pName)
Set QName of node.
|
void |
setURI(String pUri)
Set URI of node.
|
void |
setValue(String pValue)
Set value of node.
|
getNode, getQNameOfCurrentNode, getTypeOfCurrentNode, getValueOfCurrentNode, isClosed, moveTo, moveToAttribute, moveToNamespace, nameForKey
long insertElementAsFirstChild(QName pName) throws TTException
pName
- QName
of node to insertTTException
- if element node couldn't be inserted as first childlong insertTextAsFirstChild(String pValue) throws TTException
pValue
- value of node to insertTTException
- if text node couldn't be inserted as first child.long insertElementAsRightSibling(QName pFromKey) throws TTException
pFromKey
- QName
of the new nodeTTException
- if element node couldn't be inserted as right siblinglong insertTextAsRightSibling(String pValue) throws TTException
pValue
- value of node to insertTTException
- if text node couldn't be inserted as right siblinglong insertAttribute(QName pName, String pValue) throws TTException
pName
- QName
referencepValue
- value of inserted nodeTTException
- if attribute couldn't be inserted.long insertNamespace(QName pName) throws TTException
pName
- QName
referenceTTException
- if attribute couldn't be inserted.void remove() throws TTException
TTException
- if node couldn't be removedvoid setQName(QName pName) throws TTException
pName
- New qualified name of node.TTIOException
- If can't set Name in node.TTException
void setURI(String pUri) throws TTException
pUri
- new URI of nodeTTIOException
- if URI of node couldn't be setTTException
void setValue(String pValue) throws TTException
pValue
- new value of nodeTTIOException
- if value couldn't be setTTException
void commit() throws TTException
TTException
- if this revision couldn't be commitedvoid abort() throws TTException
TTIOException
- if this revision couldn't be abortedTTException
void revertTo(long pRev) throws TTException
pRev
- revert to the revisionTTException
- if couldn't revert to revisionvoid close() throws TTException
close
in interface INodeReadTrx
TTException
- if write transaction couldn't be closedIBucketWriteTrx getPageWtx() throws TTException
IBucketWriteTrx
.TTException
Copyright © 2013. All Rights Reserved.