Package net.sf.basedb.util.listable
Class TransformContext
java.lang.Object
net.sf.basedb.util.listable.TransformContext
public class TransformContext extends Object
Transformation context that can be used to keep track of vital
information when doing multi-step transformations.
- Since:
- 3.5
- Author:
- Nicklas
-
Field Summary
Fields Modifier and Type Field Description private DbControl
dc
private Collection<Include>
include
-
Constructor Summary
Constructors Constructor Description TransformContext(DbControl dc)
Creates a new transformation context that will use the given DbControl for database access. -
Method Summary
Modifier and Type Method Description TransformCache
getCache()
Get a cache that can be used for storing transformation results for some time.DbControl
getDbControl()
Get the DbControl to use in this transformation context.Collection<Include>
getInclude()
Include options when executing queries to find parent/child items.void
setInclude(Collection<Include> include)
-
Field Details
-
dc
-
include
-
-
Constructor Details
-
TransformContext
Creates a new transformation context that will use the given DbControl for database access.
-
-
Method Details
-
getDbControl
Get the DbControl to use in this transformation context. -
getInclude
Include options when executing queries to find parent/child items. Default is Include.ALL. -
setInclude
-
getCache
Get a cache that can be used for storing transformation results for some time. The cache is stored in the current session and is lost if the user logs out.- Since:
- 3.16
-