public class NativeQueryAttributesBindings extends java.lang.Object implements QueryAttributesBindings
| Constructor and Description |
|---|
NativeQueryAttributesBindings(Session sess) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAttributes()
Removes all query attributes from the query attributes list.
|
BindValue |
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<BindValue> 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 NativeQueryAttributesBindings(Session sess)
public void setAttribute(java.lang.String name,
java.lang.Object value)
QueryAttributesBindingssetAttribute in interface QueryAttributesBindingsname - the query attribute name.value - the query attribute value.public int getCount()
QueryAttributesBindingsgetCount in interface QueryAttributesBindingspublic BindValue getAttributeValue(int index)
QueryAttributesBindingsgetAttributeValue in interface QueryAttributesBindingsindex - the position of the query attribute value to return.BindValue in the given position of the query attributes list.public void runThroughAll(java.util.function.Consumer<BindValue> bindAttribute)
QueryAttributesBindingsConsumer with each one of them.runThroughAll in interface QueryAttributesBindingsbindAttribute - A Consumer for each one of the single query attributes.public void clearAttributes()
QueryAttributesBindingsclearAttributes in interface QueryAttributesBindings