@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface BindBeanList
Iterable or 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.
| Modifier and Type | Required Element and Description |
|---|---|
String[] |
propertyNames
The list of properties to invoke on each element in the argument
|
public abstract String[] propertyNames
public abstract String value
Copyright © 2020. All rights reserved.