Annotation Type BindMethodsList


@Retention(RUNTIME) @Target(PARAMETER) public @interface BindMethodsList
Binds each method for each value in the annotated Iterable or array/varargs argument, and defines a named attribute as a comma-separated list of each bound method name. Used to create query similar to: insert into things (id, name) values (1,'abc'),(2,'def'),(3,'ghi')
 @SqlQuery("insert into things (id, name) values <items>")
 List<Thing> saveThings(@BindMethodsList(value = "items", methodNames = {"getId", "getName"}) Thing... things)
 

Throws IllegalArgumentException if the argument is not an array or Iterable.