Class TQAssocBean<T,R,QB>

Type Parameters:
T - the entity bean type (normal entity bean type e.g. Customer)
R - the specific root query bean type (e.g. QCustomer)
QB - the query bean type
All Implemented Interfaces:
io.ebean.Query.Property<Object>

public abstract class TQAssocBean<T,R,QB> extends TQAssoc<T,R>
Base type for associated beans that are not embeddable.
  • Constructor Details

    • TQAssocBean

      public TQAssocBean(String name, R root)
      Construct with a property name and root instance.
      Parameters:
      name - the name of the property
      root - the root query bean instance
    • TQAssocBean

      public TQAssocBean(String name, R root, String prefix)
      Construct with additional path prefix.
  • Method Details

    • fetch

      public final R fetch()
      Eagerly fetch this association fetching all the properties.
    • fetchQuery

      public final R fetchQuery()
      Eagerly fetch this association using a "query join".
    • fetchCache

      public final R fetchCache()
      Eagerly fetch this association using L2 bean cache. Cache misses are populated via fetchQuery().
    • fetchLazy

      public final R fetchLazy()
      Use lazy loading for fetching this association.
    • fetch

      public final R fetch(String properties)
      Eagerly fetch this association with the properties specified.
    • fetchQuery

      public final R fetchQuery(String properties)
      Eagerly fetch this association using a "query join" with the properties specified.
    • fetchCache

      public final R fetchCache(String properties)
      Eagerly fetch this association using L2 cache with the properties specified. Cache misses are populated via fetchQuery().
    • fetch

      @SafeVarargs public final R fetch(TQProperty<QB,?>... properties)
      Eagerly fetch this association loading the specified properties.
    • fetch

      @SafeVarargs public final R fetch(io.ebean.FetchConfig config, TQProperty<QB,?>... properties)
      Fetch this association with config for the type of fetch and the specified properties.
      Parameters:
      config - Fetch configuration to define the type of fetch to use
      properties - The properties to fetch
    • fetchQuery

      @SafeVarargs public final R fetchQuery(TQProperty<QB,?>... properties)
      Eagerly fetch this association using a 'query join' loading the specified properties.
    • fetchCache

      @SafeVarargs public final R fetchCache(TQProperty<QB,?>... properties)
      Eagerly fetch this association using L2 cache.
    • fetchLazy

      @SafeVarargs public final R fetchLazy(TQProperty<QB,?>... properties)
      Use lazy loading for this association loading the specified properties.
    • fetch

      public final R fetch(io.ebean.FetchGroup<T> nestedGroup)
      Fetch using the nested FetchGroup.
    • fetchQuery

      public final R fetchQuery(io.ebean.FetchGroup<T> nestedGroup)
      Fetch query using the nested FetchGroup.
    • fetchCache

      public final R fetchCache(io.ebean.FetchGroup<T> nestedGroup)
      Fetch cache using the nested FetchGroup.
    • _filterMany

      protected final R _filterMany(io.ebean.ExpressionList<T> filter)
    • _filterManyRaw

      protected final R _filterManyRaw(String rawExpressions, Object... params)
    • _isEmpty

      protected final R _isEmpty()
    • _isNotEmpty

      protected final R _isNotEmpty()
    • _newExpressionList

      protected final <S> io.ebean.ExpressionList<S> _newExpressionList()