Package org.jdbi.v3.sqlobject.customizer
Annotation Type BindMap
Binds the entries of a
Map<String, Object>
to a SQL statement.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Whether to automatically convert map keys to strings.String[]
The set of map keys to bind.Prefix to apply to each map key.
-
Element Details
-
value
String valuePrefix to apply to each map key. If specified, map keys will be bound asprefix.key
.- Returns:
- the prefix
- Default:
- ""
-
keys
String[] keysThe 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 convertKeysWhether 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 withObject.toString()
.- Returns:
- whether keys will be implicitly converted to Strings.
- Default:
- false
-