com.holonplatform.datastore.jdbc.composer

## Interface SQLContextParametersHandler

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    DefaultSQLContextParametersHandler

      public interface SQLContextParametersHandler
      extends Serializable

  Handler to generate, hold and obtain the SQL named parameters of a SQL context hierarchy.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> String` | `addNamedParameter(SQLParameter<T> parameter)` Add named parameter using given `SQLParameter` definition.
    `static SQLContextParametersHandler` | `create()` Create a new `SQLContextParametersHandler`.
    `Map<String,SQLParameter<?>>` | `getNamedParameters()` Get the named parameters.

- - ### Method Detail

    - #### addNamedParameter

          <T> String addNamedParameter(SQLParameter<T> parameter)

      Add named parameter using given `SQLParameter` definition.
      Type Parameters:
        `T` - Parameter expression type
      Parameters:
        `parameter` - Parameter definition (not null)
      Returns:
        Generated parameter name

    - #### getNamedParameters

          Map<String,SQLParameter<?>> getNamedParameters()

      Get the named parameters.
      Returns:
        A map of parameter names and the associated `SQLParameter` definition, empty if none

    - #### create

          static SQLContextParametersHandler create()

      Create a new `SQLContextParametersHandler`.
      Returns:
        A new `SQLContextParametersHandler`

Copyright © 2019 The Holon Platform. All rights reserved.