Interface ConvertOperationBuilder<T>

Type Parameters:
T - The type of the entity view class

public interface ConvertOperationBuilder<T>
A builder for defining flush related configuration.
Since:
1.4.0
Author:
Christian Beikov
  • Method Details

    • convert

      T convert()
      Converts the source object as defined and returns the result.
      Returns:
      The converted view
    • excludeAttribute

      ConvertOperationBuilder<T> excludeAttribute​(String attributePath)
      Specifies that the given attribute should not be converted into the target view.
      Parameters:
      attributePath - The attribute path to skip during conversion
      Returns:
      this for chaining
    • excludeAttributes

      ConvertOperationBuilder<T> excludeAttributes​(String... attributePaths)
      Specifies that the given attributes should not be converted into the target view.
      Parameters:
      attributePaths - The attribute paths to skip during conversion
      Returns:
      this for chaining
    • convertAttribute

      ConvertOperationBuilder<T> convertAttribute​(String attributePath, Class<?> attributeViewClass, ConvertOption... convertOptions)
      Specifies that the attribute object should use the given view type class and convert options.
      Parameters:
      attributePath - The attribute path for which to override the view class and convert options
      attributeViewClass - The entity view class to convert the attribute object to
      convertOptions - The convert options to use
      Returns:
      this for chaining
    • convertAttribute

      ConvertOperationBuilder<T> convertAttribute​(String attributePath, Class<?> attributeViewClass, String constructorName, ConvertOption... convertOptions)
      Specifies that the attribute object should use the given view type class and convert options.
      Parameters:
      attributePath - The attribute path for which to override the view class and convert options
      attributeViewClass - The entity view class to convert the attribute object to
      constructorName - The name of the entity view constructor to use
      convertOptions - The convert options to use
      Returns:
      this for chaining
      Since:
      1.5.0