Package org.jdbi.v3.sqlobject.customizer
Annotation Type BindBeanList
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface BindBeanListBinds each property for each value in the annotatedIterableor array/varargs argument, and defines a named attribute as a comma-separated list of each bound parameter name. Used to create query similar to: select * from things where (id, name) in ((1,'abc'),(2,'def'),(3,'ghi'))@SqlQuery("select * from things where (id, name) in (<keys>)") List<Thing> getThings(@BindBeanList(value = "keys", propertyNames = {"id", "name"}) ThingKey... thingKeys)Throws IllegalArgumentException if the argument is not an array or Iterable.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]propertyNamesThe list of properties to invoke on each element in the argument
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringvalueThe attribute name to define.
-