public interface QueryAttributesBindings
Statement object.| Modifier and Type | Method | Description |
|---|---|---|
void |
clearAttributes() |
Removes all query attributes from the query attributes list.
|
boolean |
containsAttribute(String name) |
Checks if there is already an attribute with the specified name.
|
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 |
removeAttribute(String name) |
Removes the specified query attribute from the list of query attributes.
|
void |
runThroughAll(Consumer<BindValue> bindAttribute) |
Runs through all query attributes while feeding the given
Consumer with each one of them. |
void |
setAttribute(String name,
Object value) |
Adds a new query attribute to the list of query attributes.
|
void setAttribute(String name, Object value)
name - the query attribute name.value - the query attribute value.void removeAttribute(String name)
name - the query attribute name.int getCount()
BindValue getAttributeValue(int index)
index - the position of the query attribute value to return.BindValue in the given position of the query attributes list.void runThroughAll(Consumer<BindValue> bindAttribute)
Consumer with each one of them.bindAttribute - A Consumer for each one of the single query attributes.boolean containsAttribute(String name)
name - the query attribute name.true if the specified attribute name already exists.void clearAttributes()