public abstract class NestedSetsTreeManager<T extends NestedSetsTreeNodeModel>
extends Object
Constructor and Description |
---|
NestedSetsTreeManager() |
Modifier and Type | Method and Description |
---|---|
long |
countAncestors(T t) |
long |
countDescendants(T t) |
void |
delete(T t) |
protected abstract long |
doCountAncestors(long nestedSetsTreeNodeScopeId,
long nestedSetsTreeNodeLeft,
long nestedSetsTreeNodeRight) |
protected abstract long |
doCountDescendants(long nestedSetsTreeNodeScopeId,
long nestedSetsTreeNodeLeft,
long nestedSetsTreeNodeRight) |
protected abstract List<T> |
doGetAncestors(long nestedSetsTreeNodeScopeId,
long nestedSetsTreeNodeLeft,
long nestedSetsTreeNodeRight) |
protected abstract List<T> |
doGetDescendants(long nestedSetsTreeNodeScopeId,
long nestedSetsTreeNodeLeft,
long nestedSetsTreeNodeRight) |
protected abstract void |
doUpdate(long nestedSetsTreeNodeScopeId,
boolean leftOrRight,
long delta,
long limit,
boolean inclusive) |
protected abstract void |
doUpdate(long nestedSetsTreeNodeScopeId,
long delta,
long start,
boolean startInclusive,
long end,
boolean endInclusive,
List<T> includeList) |
List<T> |
getAncestors(T t) |
List<T> |
getDescendants(T t) |
protected abstract long |
getMaxNestedSetsTreeNodeRight(long nestedSetsTreeNodeScopeId) |
void |
insert(T t,
T parentT) |
void |
move(T t,
T oldParentT,
T newParentT) |
public long countAncestors(T t)
public long countDescendants(T t)
public void delete(T t)
protected abstract long doCountAncestors(long nestedSetsTreeNodeScopeId, long nestedSetsTreeNodeLeft, long nestedSetsTreeNodeRight)
protected abstract long doCountDescendants(long nestedSetsTreeNodeScopeId, long nestedSetsTreeNodeLeft, long nestedSetsTreeNodeRight)
protected abstract List<T> doGetAncestors(long nestedSetsTreeNodeScopeId, long nestedSetsTreeNodeLeft, long nestedSetsTreeNodeRight)
protected abstract List<T> doGetDescendants(long nestedSetsTreeNodeScopeId, long nestedSetsTreeNodeLeft, long nestedSetsTreeNodeRight)
protected abstract void doUpdate(long nestedSetsTreeNodeScopeId, boolean leftOrRight, long delta, long limit, boolean inclusive)
protected abstract void doUpdate(long nestedSetsTreeNodeScopeId, long delta, long start, boolean startInclusive, long end, boolean endInclusive, List<T> includeList)
protected abstract long getMaxNestedSetsTreeNodeRight(long nestedSetsTreeNodeScopeId)