Package ch.tocco.nice2.dms.api.tree
Class RootLoader
java.lang.Object
ch.tocco.nice2.dms.api.tree.RootLoader
This utility class helps to load the root entity efficiently.
There is a cache within this loader, which prevents from accessing the database
everytime the root should be resolved.
CAUTION: Should only be used within one single transaction.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RootLoader
-
-
Method Details
-
getRoot
Get the root.- Parameters:
entity
- The entity to get the root for. Must represent aContentTreeNode
.- Returns:
- the root entity.
-
getParent
-