Interface ObjectBuilder<T>

Type Parameters:
T - The type that this builder produces

public interface ObjectBuilder<T>
An object build provides the select clause expressions that should be used by a FullQueryBuilder and provides methods for transforming tuples into the target type T.
Since:
1.0.0
Author:
Christian Beikov
  • Method Summary

    Modifier and Type Method Description
    <X extends SelectBuilder<X>>
    void
    applySelects​(X selectBuilder)
    Applies the select items necessary for this object builder to work.
    T build​(Object[] tuple)
    Builds an object of the target type T from the given tuple.
    List<T> buildList​(List<T> list)
    Transforms the given list and returns the result.
  • Method Details

    • applySelects

      <X extends SelectBuilder<X>> void applySelects​(X selectBuilder)
      Applies the select items necessary for this object builder to work.
      Type Parameters:
      X - The type of the select builder
      Parameters:
      selectBuilder - The selectBuilder on which to apply the selects
    • build

      T build​(Object[] tuple)
      Builds an object of the target type T from the given tuple.
      Parameters:
      tuple - The result tuple
      Returns:
      The target object
    • buildList

      List<T> buildList​(List<T> list)
      Transforms the given list and returns the result.
      Parameters:
      list - The list to be transformed
      Returns:
      The resulting list