java.lang.Object
io.ebean.typequery.TQProperty<R,Object>
io.ebean.typequery.TQAssoc<T,R>
io.ebean.typequery.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>
Base type for associated beans that are not embeddable.
-
Field Summary
Fields inherited from class io.ebean.typequery.TQProperty
_name, _root -
Constructor Summary
ConstructorsConstructorDescriptionTQAssocBean(String name, R root) Construct with a property name and root instance.TQAssocBean(String name, R root, String prefix) Construct with additional path prefix. -
Method Summary
Modifier and TypeMethodDescriptionfinal Rfetch()Eagerly fetch this association fetching all the properties.final Rfetch(io.ebean.FetchConfig config, TQProperty<QB, ?>... properties) Fetch this association with config for the type of fetch and the specified properties.final RFetch using the nested FetchGroup.final Rfetch(TQProperty<QB, ?>... properties) Eagerly fetch this association loading the specified properties.final REagerly fetch this association with the properties specified.final REagerly fetch this association using L2 bean cache.final RfetchCache(io.ebean.FetchGroup<T> nestedGroup) Fetch cache using the nested FetchGroup.final RfetchCache(TQProperty<QB, ?>... properties) Eagerly fetch this association using L2 cache.final RfetchCache(String properties) Eagerly fetch this association using L2 cache with the properties specified.final RUse lazy loading for fetching this association.final RfetchLazy(TQProperty<QB, ?>... properties) Use lazy loading for this association loading the specified properties.final REagerly fetch this association using a "query join".final RfetchQuery(io.ebean.FetchGroup<T> nestedGroup) Fetch query using the nested FetchGroup.final RfetchQuery(TQProperty<QB, ?>... properties) Eagerly fetch this association using a 'query join' loading the specified properties.final RfetchQuery(String properties) Eagerly fetch this association using a "query join" with the properties specified.final RfilterMany(io.ebean.ExpressionList<T> filter) Apply a filter when fetching these beans.final RfilterManyRaw(String rawExpressions, Object... params) Add filter expressions for the many path.final RisEmpty()Is empty for a collection property.final RIs not empty for a collection property.Methods inherited from class io.ebean.typequery.TQAssoc
eq, eqIfPresent, equalTo, in, in, inOrEmpty, ne, notEqualTo, notIn, notInMethods inherited from class io.ebean.typequery.TQProperty
expr, isNotNull, isNull, propertyName, toString
-
Constructor Details
-
TQAssocBean
Construct with a property name and root instance.- Parameters:
name- the name of the propertyroot- the root query bean instance
-
TQAssocBean
Construct with additional path prefix.
-
-
Method Details
-
fetch
Eagerly fetch this association fetching all the properties. -
fetchQuery
Eagerly fetch this association using a "query join". -
fetchCache
Eagerly fetch this association using L2 bean cache. Cache misses are populated via fetchQuery(). -
fetchLazy
Use lazy loading for fetching this association. -
fetch
Eagerly fetch this association with the properties specified. -
fetchQuery
Eagerly fetch this association using a "query join" with the properties specified. -
fetchCache
Eagerly fetch this association using L2 cache with the properties specified. Cache misses are populated via fetchQuery(). -
fetch
Eagerly fetch this association loading the specified properties. -
fetch
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 useproperties- The properties to fetch
-
fetchQuery
Eagerly fetch this association using a 'query join' loading the specified properties. -
fetchCache
Eagerly fetch this association using L2 cache. -
fetchLazy
Use lazy loading for this association loading the specified properties. -
fetch
Fetch using the nested FetchGroup. -
fetchQuery
Fetch query using the nested FetchGroup. -
fetchCache
Fetch cache using the nested FetchGroup. -
filterMany
Apply a filter when fetching these beans. -
filterManyRaw
Add filter expressions for the many path. The expressions can include SQL functions if desired and the property names are translated to column names.The expressions can contain placeholders for bind values using
?or?1style.new QCustomer() .name.startsWith("Shrek") .contacts.filterManyRaw("status = ? and firstName like ?", Contact.Status.NEW, "Rob%") .findList();- Parameters:
rawExpressions- The raw expressions which can include ? and ?1 style bind parameter placeholdersparams- The parameter values to bind
-
isEmpty
Is empty for a collection property.This effectively adds a not exists sub-query on the collection property.
This expression only works on OneToMany and ManyToMany properties.
-
isNotEmpty
Is not empty for a collection property.This effectively adds an exists sub-query on the collection property.
This expression only works on OneToMany and ManyToMany properties.
-