Annotation Type BindMap


@Retention(RUNTIME) @Target(PARAMETER) public @interface BindMap
Binds the entries of a Map<String, Object> to a SQL statement.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to automatically convert map keys to strings.
    The set of map keys to bind.
    Prefix to apply to each map key.
  • Element Details

    • value

      String value
      Prefix to apply to each map key. If specified, map keys will be bound as prefix.key.
      Returns:
      the prefix
      Default:
      ""
    • keys

      String[] keys
      The set of map keys to bind. If specified, binds only the specified keys; any keys present in this property but absent from the map will be bound as null. If not specified, all map entries are bound.
      Returns:
      the map keys to bind.
      Default:
      {}
    • convertKeys

      boolean convertKeys
      Whether to automatically convert map keys to strings. If false, Map keys must be strings, or an exception is thrown. If true, any object may be the key, and it will be converted with Object.toString().
      Returns:
      whether keys will be implicitly converted to Strings.
      Default:
      false