Class JdbcStatement<S extends DbStatement<S>>
java.lang.Object
io.helidon.dbclient.DbStatementBase<S>
io.helidon.dbclient.jdbc.JdbcStatement<S>
- Type Parameters:
S- type of subclass
- All Implemented Interfaces:
DbStatement<S>
JDBC statement base implementation.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnection(Connection connection) Set the connection.protected PreparedStatementprepareStatement(DbClientServiceContext serviceContext) Create thePreparedStatement.protected PreparedStatementprepareStatement(String stmtName, String stmt) Create thePreparedStatement.protected PreparedStatementprepareStatement(Connection connection, String stmtName, String stmt) Create thePreparedStatement.Methods inherited from class DbStatementBase
addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, addParam, autoClose, context, context, doExecute, identity, indexedParam, namedParam, parameters, params, params, statementTypeModifier and TypeMethodDescriptionaddParam(boolean parameter) Add next boolean parameter to the list of ordered parameters (e.g.addParam(byte parameter) Add next byte parameter to the list of ordered parameters (e.g.addParam(byte[] parameter) Add next byte[] parameter to the list of ordered parameters (e.g.addParam(double parameter) Add next double parameter to the list of ordered parameters (e.g.addParam(float parameter) Add next float parameter to the list of ordered parameters (e.g.addParam(int parameter) Add next integer parameter to the list of ordered parameters (e.g.addParam(long parameter) Add next long parameter to the list of ordered parameters (e.g.addParam(short parameter) Add next short parameter to the list of ordered parameters (e.g.Add next parameter to the list of ordered parameters (e.g.Add nextStringparameter to the list of ordered parameters (e.g.Add next boolean parameter to the map of named parameters (e.g.Add next byte parameter to the map of named parameters (e.g.Add next byte[] parameter to the map of named parameters (e.g.Add next double parameter to the map of named parameters (e.g.Add next float parameter to the map of named parameters (e.g.Add next int parameter to the map of named parameters (e.g.Add next long parameter to the map of named parameters (e.g.Add next short parameter to the map of named parameters (e.g.Add next parameter to the map of named parameters (e.g.Add nextStringparameter to the map of named parameters (e.g.addParam(String name, BigDecimal parameter) Add nextBigDecimalparameter to the map of named parameters (e.g.addParam(String name, BigInteger parameter) Add nextBigIntegerparameter to the map of named parameters (e.g.addParam(BigDecimal parameter) Add nextBigDecimalparameter to the list of ordered parameters (e.g.addParam(BigInteger parameter) Add nextBigIntegerparameter to the list of ordered parameters (e.g.protected static <T> Stream<T> Decorate the given stream to invokeBaseStream.close()on terminal operations.context()Get the execution context.protected <C extends DbExecuteContext>
CReturns execution context cast to it's extending class.protected <T> TdoExecute(BiFunction<CompletableFuture<Long>, DbClientServiceContext, T> function) Execute the statement with interception.protected Sidentity()Get this instance as the correct type.indexedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.namedParam(Object parameters) Configure parameters usingObjectinstance with registered mapper.Get the statement parameters.Configure parameters from aListby order.Configure named parameters.abstract DbStatementTypeGet the statement type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DbStatement
params
-
Method Details
-
connection
Set the connection.- Parameters:
connection- the database connection
-
prepareStatement
Create thePreparedStatement.- Parameters:
serviceContext- client service context- Returns:
- new instance of
PreparedStatement
-
prepareStatement
Create thePreparedStatement.- Parameters:
stmtName- statement namestmt- statement text- Returns:
- new instance of
PreparedStatement
-
prepareStatement
Create thePreparedStatement.- Parameters:
connection- the database connectionstmtName- statement namestmt- statement text- Returns:
- new instance of
PreparedStatement
-