TreePointer

class TreePointer(tree_: ITree, val idGenerator: IIdGenerator = IdGeneratorDummy()) : IBranch, IWriteTransaction, IReadTransaction

A non thread safe branch without real transactions. Provides better performance for temporary branches that are not shared.

Constructors

Link copied to clipboard
constructor(tree_: ITree, idGenerator: IIdGenerator = IdGeneratorDummy())

Functions

Link copied to clipboard
open override fun addListener(l: IBranchListener)
Link copied to clipboard
open override fun addNewChild(parentId: Long, role: String?, index: Int, concept: IConcept?): Long
open override fun addNewChild(parentId: Long, role: String?, index: Int, concept: IConceptReference?): Long
open override fun addNewChild(parentId: Long, role: String?, index: Int, childId: Long, concept: IConcept?)
open override fun addNewChild(parentId: Long, role: String?, index: Int, childId: Long, concept: IConceptReference?)
Link copied to clipboard
open override fun canRead(): Boolean
Link copied to clipboard
open override fun canWrite(): Boolean
Link copied to clipboard
open override fun <T> computeRead(computable: () -> T): T
Link copied to clipboard
open fun <T> computeReadT(computable: (IReadTransaction) -> T): T
Link copied to clipboard
open override fun <T> computeWrite(computable: () -> T): T
Link copied to clipboard
open fun <T> computeWriteT(computable: (IWriteTransaction) -> T): T
Link copied to clipboard
open override fun containsNode(nodeId: Long): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun deleteNode(nodeId: Long)
Link copied to clipboard
open override fun getAllChildren(parentId: Long): Iterable<Long>
Link copied to clipboard
Link copied to clipboard
open override fun getChildren(parentId: Long, role: String?): Iterable<Long>
Link copied to clipboard
open override fun getConcept(nodeId: Long): IConcept?
Link copied to clipboard
open override fun getConceptReference(nodeId: Long): IConceptReference?
Link copied to clipboard
open override fun getId(): String
Link copied to clipboard
Link copied to clipboard
open override fun getParent(nodeId: Long): Long
Link copied to clipboard
open override fun getProperty(nodeId: Long, role: String): String?
Link copied to clipboard
open override fun getPropertyRoles(sourceId: Long): Iterable<String>
Link copied to clipboard
open override fun getReferenceRoles(sourceId: Long): Iterable<String>
Link copied to clipboard
open override fun getReferenceTarget(sourceId: Long, role: String): INodeReference?
Link copied to clipboard
open override fun getRole(nodeId: Long): String?
Link copied to clipboard
Link copied to clipboard
open override fun getUserObject(key: Any): Any?
Link copied to clipboard
open override fun moveChild(newParentId: Long, newRole: String?, newIndex: Int, childId: Long)
Link copied to clipboard
open override fun putUserObject(key: Any, value: Any?)
Link copied to clipboard
open override fun removeListener(l: IBranchListener)
Link copied to clipboard
open override fun runRead(runnable: () -> Unit)
Link copied to clipboard
open fun runReadT(f: (IReadTransaction) -> Unit)
Link copied to clipboard
open override fun runWrite(runnable: () -> Unit)
Link copied to clipboard
open fun runWriteT(f: (IWriteTransaction) -> Unit)
Link copied to clipboard
open override fun setProperty(nodeId: Long, role: String, value: String?)
Link copied to clipboard
open override fun setReferenceTarget(sourceId: Long, role: String, target: INodeReference?)

Properties

Link copied to clipboard
open override val branch: IBranch
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val transaction: ITransaction
Link copied to clipboard
open override var tree: ITree
Link copied to clipboard