T - Bean result typepublic interface BeanProjection<T> extends QueryProjection<T>
QueryProjection which uses a BeanPropertySet to define the projection selection and returns
BeanPropertySet.getBeanClass() type results.Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getBeanClass()
Get the projection bean class.
|
Optional<Path[]> |
getSelection()
Get the optional projection selection bean
Paths. |
default Class<? extends T> |
getType()
Get the expression type.
|
static <T> BeanProjection<T> |
of(Class<? extends T> beanClass,
Path... selection)
Create a
BeanProjection using given bean class. |
bean, constant, countAll, path, propertySet, propertySetgetTemporalType, isCollectionExpression, isConverterExpressionvalidateClass<? extends T> getBeanClass()
Optional<Path[]> getSelection()
Paths. If not provided, all valid bean property paths will be
used as selection.default Class<? extends T> getType()
TypedExpressiongetType in interface TypedExpression<T>static <T> BeanProjection<T> of(Class<? extends T> beanClass, Path... selection)
BeanProjection using given bean class.T - Bean and result typebeanClass - Bean class (not null)selection - Optional selection paths. If not provided, all valid bean property paths will be used.Copyright © 2019 The Holon Platform. All rights reserved.