Class RelatedItemHelper
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.list.RelatedItemHelper
-
class RelatedItemHelper extends Object
Helper class for storing request-scoped objects that may be useful to re-use between multiple columns.- Since:
- 3.16, 3.17
- Author:
- nicklas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RelatedItemHelper.CloseMyDbControl
-
Field Summary
Fields Modifier and Type Field Description (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
(package private) TransformContext
transformContext
-
Constructor Summary
Constructors Constructor Description RelatedItemHelper(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
-
dc
DbControl dc
-
transformContext
TransformContext transformContext
-
-
Constructor Detail
-
RelatedItemHelper
RelatedItemHelper(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()
-
-