Class TargetFetchConfiguration

All Implemented Interfaces:
Serializable, Cloneable, EagerFetchModes, JDBCFetchConfiguration, LRSSizes, JoinSyntaxes, FetchConfiguration, LockLevels, LockScopes, QueryFlushModes

public class TargetFetchConfiguration extends JDBCFetchConfigurationImpl implements FetchConfiguration
A fetch configuration that is aware of special hint to narrow its operation on subset of slices.
Author:
Pinaki Poddar
See Also:
  • Constructor Details

  • Method Details

    • setHint

      public void setHint(String key, Object value)
      Setting hints on this configuration is treated specially if the given key is a target hint.
      Specified by:
      setHint in interface FetchConfiguration
      Overrides:
      setHint in class FetchConfigurationImpl
      Parameters:
      key - the name of the hint
      value - if the given key is target hint, then the value can be either null, a String or a non-zero sized String array. It can not be a zero-sized String array.
      See Also:
    • setHint

      public void setHint(String key, Object value, Object original)
      Description copied from class: FetchConfigurationImpl
      Sets the hint to the given value. If the key corresponds to a known key, then that value is set via the setter method. Otherwise it is put into opaque hints map.
      In either case, the original value is put in the hints map. So essential difference between setting a value directly by a setter and via a hint is the memory of this original value.
      The other important difference is setting lock levels. Setting of lock level via setter method needs active transaction. But setting via hint does not.
      Specified by:
      setHint in interface FetchConfiguration
      Overrides:
      setHint in class FetchConfigurationImpl
      Parameters:
      key - a hint key. If it is one of the statically registered hint key then the setter is called.
      value - to be set. The given value type must match the argument type of the setter, if one exists.
      original - value as specified by the caller. This value is put in the hints map.
    • setTargets

      public void setTargets(String[] targets)
    • isExplicitTarget

      public boolean isExplicitTarget()
      Affirms if the target is set on this receiver explicitly (i.e. by the user).
    • newInstance

      Description copied from class: FetchConfigurationImpl
      Return a new hollow instance.
      Overrides:
      newInstance in class JDBCFetchConfigurationImpl