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 Details

  • Constructor Details

    • TransformContext

      public TransformContext​(DbControl dc)
      Creates a new transformation context that will use the given DbControl for database access.
  • Method Details

    • getDbControl

      public DbControl getDbControl()
      Get the DbControl to use in this transformation context.
    • getInclude

      public Collection<Include> getInclude()
      Include options when executing queries to find parent/child items. Default is Include.ALL.
    • setInclude

      public void setInclude​(Collection<Include> include)
    • getCache

      public TransformCache 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