com.holonplatform.datastore.jpa.jpql.context

## Interface JPQLContextParametersHandler

- All Superinterfaces:
    Serializable

      public interface JPQLContextParametersHandler
      extends Serializable

  Handler to generate, hold and obtain the JPQL named parameters of a 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(JPQLParameter<T> parameter)` Add named parameter using given `JPQLParameter` definition.
    `static JPQLContextParametersHandler` | `create()` Create a new `JPQLContextParametersHandler`.
    `Map<String,JPQLParameter<?>>` | `getNamedParameters()` Get the named parameters.

- - ### Method Detail

    - #### addNamedParameter

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

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

    - #### getNamedParameters

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

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

    - #### create

          static JPQLContextParametersHandler create()

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

Copyright © 2019 The Holon Platform. All rights reserved.