Module io.helidon.dbclient.jdbc
Package io.helidon.dbclient.jdbc
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 io.helidon.dbclient.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, statementTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.dbclient.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
-