com.holonplatform.core.query

## Interface BeanProjection<T>

- Type Parameters:
    `T` - Bean result type
  All Superinterfaces:
    Expression, QueryProjection<T>

      public interface BeanProjection<T>
      extends QueryProjection<T>

  A `QueryProjection` which uses a `BeanPropertySet` to define the projection selection and returns `BeanPropertySet.getBeanClass()` type results.
  Since:
    5.0.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.holonplatform.core.Expression

      `Expression.ExpressionResolverFunction<E extends Expression,R extends Expression>, Expression.InvalidExpressionException`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class<T>` | `getBeanClass()` Get the projection bean class.
    `Optional<Path[]>` | `getSelection()` Get the optional projection selection bean `Path`s.
    `default Class<? extends T>` | `getType()` Get projection result type
    `static <T> BeanProjection<T>` | `of(Class<T> beanClass, Path... selection)` Create a `BeanProjection` using given bean class.

    - ### Methods inherited from interface com.holonplatform.core.Expression

      `validate`

- - ### Method Detail

    - #### getBeanClass

          Class<T> getBeanClass()

      Get the projection bean class.
      Returns:
        Projection bean class (not null)

    - #### getSelection

          Optional<Path[]> getSelection()

      Get the optional projection selection bean `Path`s. If not provided, all valid bean property paths will be used as selection.
      Returns:
        Optional projection selection paths

    - #### getType

          default Class<? extends T> getType()

      Description copied from interface: `QueryProjection`
      Get projection result type
      Specified by:
        `getType` in interface `QueryProjection<T>`
      Returns:
        Type class

    - #### of

          static <T> BeanProjection<T> of(Class<T> beanClass,
                                          Path... selection)

      Create a `BeanProjection` using given bean class.
      Type Parameters:
        `T` - Bean and result type
      Parameters:
        `beanClass` - Bean class (not null)
        `selection` - Optional selection paths. If not provided, all valid bean property paths will be used.
      Returns:
        BeanProjection using given bean class

Copyright © 2017 The Holon Platform. All rights reserved.