Package org.jdbi.v3.sqlobject.customizer
Annotation Type BindMap
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface BindMapBinds the entries of aMap<String, Object>to a SQL statement.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanconvertKeysWhether to automatically convert map keys to strings.java.lang.String[]keysThe set of map keys to bind.java.lang.StringvaluePrefix to apply to each map key.
-
-
-
-
convertKeys
boolean convertKeys
Whether to automatically convert map keys to strings. If false,Mapkeys must be strings, or an exception is thrown. If true, any object may be the key, and it will be converted withObject.toString().- Returns:
- whether keys will be implicitly converted to Strings.
- Default:
- false
-
-