public interface PreparedStatement
| Modifier and Type | Method and Description |
|---|---|
PreparedStatement |
bind(String name,
Object value)
Binds an argument to a positional parameter.
|
<T> Stream<T> |
getResult()
Executes a query and return the result as
Stream |
<T> Optional<T> |
getSingleResult()
Returns the result as a single element otherwise it will return an
Optional.empty() |
PreparedStatement bind(String name, Object value)
name - the parameter namevalue - the parameter valueNullPointerException - when there is null parameter<T> Stream<T> getResult()
StreamT - the type<T> Optional<T> getSingleResult()
Optional.empty()T - the typeNonUniqueResultException - when the result has more than one entityCopyright © 2017–2021 Eclipse Foundation. All rights reserved.