Module storm

Interface SqlTemplate.Parameter

All Known Implementing Classes:
SqlTemplate.NamedParameter, SqlTemplate.PositionalParameter
Enclosing interface:
SqlTemplate

public static sealed interface SqlTemplate.Parameter permits SqlTemplate.NamedParameter, SqlTemplate.PositionalParameter
Represents a parameter that can be used in a SQL query.

This abstraction encapsulates values that will be passed directly to the underlying database system, regardless of the data access framework being used.

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the database value of this parameter.
  • Method Details

    • dbValue

      Object dbValue()
      Retrieves the database value of this parameter.

      The returned value will be passed directly to the underlying database system (e.g., via a prepared statement JPA query, or any other database interaction mechanism) without additional transformation.

      Returns:
      the raw database value of this parameter.