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
    @NonNull Type
    Gets the full type information for this parameter, including how it's parameterized.
    @NonNull Optional<Object>
    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