Interface TypedParameter


@ThreadSafe public interface TypedParameter
Special "type carrier" which avoids generic type erasure at runtime when PreparedStatementBinder binds parameters to PreparedStatement.

Examples of where this is used:

Implementations should be threadsafe.
Since:
3.0.0
Author:
Mark Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the full type information for this parameter, including how it's parameterized.
    Gets the value of this parameter.
  • Method Details

    • getExplicitType

      @Nonnull Type getExplicitType()
      Gets the full type information for this parameter, including how it's parameterized.
      Returns:
      the full type information for this parameter
    • getValue

      @Nonnull Optional<Object> getValue()
      Gets the value of this parameter.
      Returns:
      the value of this parameter, or Optional.empty() if none