Package org.jdbi.v3.sqlobject.customizer
Annotation Type BindMap
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface BindMap
Binds 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.String[]keysThe set of map keys to bind.StringvaluePrefix to apply to each map key.
-
-
-
Element Detail
-
value
String value
Prefix to apply to each map key. If specified, map keys will be bound asprefix.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 asnull. 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,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
-
-