Class ParentItemHelper
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.list.ParentItemHelper
-
class ParentItemHelper extends Object
Helper class for storing request-scoped objects that may be useful to re-use between multiple columns.- Since:
- 3.16
- Author:
- nicklas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ParentItemHelper.CloseMyDbControl
-
Field Summary
Fields Modifier and Type Field Description (package private) AnnotationUtil.Cache
cache
(package private) DbControl
dc
private Set<Integer>
items
(package private) boolean
lazy
(package private) SnapshotManager
manager
private static int
MAX_ITEMS_IN_TRANSACTION
(package private) SessionControl
sc
-
Constructor Summary
Constructors Constructor Description ParentItemHelper(SessionControl sc, boolean lazy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
close()
(package private) Annotatable
recycle(DbControl dcExt, Annotatable item)
Re-cycle transactions if needed and re-load the given item in the new transaction.
-
-
-
Field Detail
-
MAX_ITEMS_IN_TRANSACTION
private static final int MAX_ITEMS_IN_TRANSACTION
- See Also:
- Constant Field Values
-
sc
final SessionControl sc
-
lazy
final boolean lazy
-
manager
final SnapshotManager manager
-
cache
final AnnotationUtil.Cache cache
-
dc
DbControl dc
-
-
Constructor Detail
-
ParentItemHelper
ParentItemHelper(SessionControl sc, boolean lazy)
-
-
Method Detail
-
recycle
Annotatable recycle(DbControl dcExt, Annotatable item)
Re-cycle transactions if needed and re-load the given item in the new transaction.
-
close
void close()
-
-