Statement object.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if the specified attribute name already exists.the query attribute name. name)Checks if there is already an attribute with the specified name. |
| public BindValue | Returns: theBindValue in the given position of the query attributes list.the position of the query attribute value to return. index)Returns an internal representation of the query attribute in the given position of the query attributes list. |
| public int | Returns: the number of query attributes existing in the list.Get the count of query attributes in the list. |
| public void | removeAttribute(String
the query attribute name. name)Removes the specified query attribute from the list of query attributes. |
| public void | runThroughAll(Consumer<BindValue>
A bindAttribute)Consumer for each one of the single query attributes.Runs through all query attributes while feeding the given |
| public void | setAttribute(String
the query attribute name. name, Object the query attribute value. value)Adds a new query attribute to the list of query attributes. |
| clearAttributes | back to summary |
|---|---|
| public void clearAttributes() Removes all query attributes from the query attributes list. | |
| containsAttribute | back to summary |
|---|---|
| public boolean containsAttribute(String name) Checks if there is already an attribute with the specified name.
| |
| getAttributeValue | back to summary |
|---|---|
| public BindValue getAttributeValue(int index) Returns an internal representation of the query attribute in the given position of the query attributes list. It's implementation dependent what to do when the index value is invalid. | |
| getCount | back to summary |
|---|---|
| public int getCount() Get the count of query attributes in the list.
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Removes the specified query attribute from the list of query attributes.
| |
| runThroughAll | back to summary |
|---|---|
| public void runThroughAll(Consumer<BindValue> bindAttribute) Runs through all query attributes while feeding the given | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Adds a new query attribute to the list of query attributes. Implementations must validate the type of the given the object and reject it or replace it by another representation if not supported, by its String version, for example. Query attribute names are not checked for duplication. | |