public class NativeQueryAttributesBindings extends java.lang.Object implements QueryAttributesBindings
Constructor and Description |
---|
NativeQueryAttributesBindings() |
Modifier and Type | Method and Description |
---|---|
void |
clearAttributes()
Removes all query attributes from the query attributes list.
|
QueryAttributesBindValue |
getAttributeValue(int index)
Returns an internal representation of the query attribute in the given position of the query attributes list.
|
int |
getCount()
Get the count of query attributes in the list.
|
void |
runThroughAll(java.util.function.Consumer<QueryAttributesBindValue> bindAttribute)
Runs through all query attributes while feeding the given
Consumer with each one of them. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Adds a new query attribute to the list of query attributes.
|
public void setAttribute(java.lang.String name, java.lang.Object value)
QueryAttributesBindings
setAttribute
in interface QueryAttributesBindings
name
- the query attribute name.value
- the query attribute value.public int getCount()
QueryAttributesBindings
getCount
in interface QueryAttributesBindings
public QueryAttributesBindValue getAttributeValue(int index)
QueryAttributesBindings
getAttributeValue
in interface QueryAttributesBindings
index
- the position of the query attribute value to return.QueryAttributesBindValue
in the given position of the query attributes list.public void runThroughAll(java.util.function.Consumer<QueryAttributesBindValue> bindAttribute)
QueryAttributesBindings
Consumer
with each one of them.runThroughAll
in interface QueryAttributesBindings
bindAttribute
- A Consumer
for each one of the single query attributes.public void clearAttributes()
QueryAttributesBindings
clearAttributes
in interface QueryAttributesBindings