Package net.sf.basedb.core
Class Trashcan.CircularRefInfo
java.lang.Object
net.sf.basedb.core.Trashcan.CircularRefInfo
- Enclosing class:
- Trashcan
static class Trashcan.CircularRefInfo extends Object
Helper class for holding information about a single
item, other items using it and other information that is
relevant for resolving circular references.
- Since:
- 3.8
-
Field Summary
Fields Modifier and Type Field Description (package private) Identifiable
item
(package private) ItemProxy
proxy
(package private) Set<ItemProxy>
usingItems
-
Constructor Summary
Constructors Constructor Description CircularRefInfo(DbControl dc, Identifiable item)
-
Method Summary
Modifier and Type Method Description (package private) boolean
isUsingNonRemovableItem(Set<ItemProxy> itemsToRemove)
Check if all using items of the main items is found among the 'itemsToRemove'.
-
Field Details
-
item
-
proxy
-
usingItems
-
-
Constructor Details
-
CircularRefInfo
-
-
Method Details
-
isUsingNonRemovableItem
Check if all using items of the main items is found among the 'itemsToRemove'. If not, this item can't be removed even if circular references are broken.- Returns:
- True if this item is using a non-removable item, false otherwise
-