Package jakarta.nosql.column
Interface ColumnPreparedStatement
-
public interface ColumnPreparedStatement
An object that represents a precompiled Query statement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ColumnPreparedStatement
bind(String name, Object value)
Binds an argument to a positional parameter.Stream<ColumnEntity>
getResult()
Executes a query and return the result asStream
Optional<ColumnEntity>
getSingleResult()
Returns the result as a single element otherwise it will return anOptional.empty()
-
-
-
Method Detail
-
bind
ColumnPreparedStatement bind(String name, Object value)
Binds an argument to a positional parameter.- Parameters:
name
- the parameter namevalue
- the parameter value- Returns:
- the same query instance
- Throws:
NullPointerException
- when there is null parameter
-
getResult
Stream<ColumnEntity> getResult()
Executes a query and return the result asStream
- Returns:
- The result stream, if delete it will return an empty stream
-
getSingleResult
Optional<ColumnEntity> getSingleResult()
Returns the result as a single element otherwise it will return anOptional.empty()
- Returns:
- the single result
- Throws:
NonUniqueResultException
- when the result has more than one entity
-
-