Package com.pyranid
Interface PreparedStatementBinder
- All Known Implementing Classes:
DefaultPreparedStatementBinder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract for binding parameters to SQL prepared statements.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescription<T> void
bind
(StatementContext<T> statementContext, PreparedStatement preparedStatement, List<Object> parameters) Binds parameters to a SQL prepared statement.
-
Method Details
-
bind
<T> void bind(@Nonnull StatementContext<T> statementContext, @Nonnull PreparedStatement preparedStatement, @Nonnull List<Object> parameters) Binds parameters to a SQL prepared statement.- Parameters:
statementContext
- current SQL contextpreparedStatement
- the prepared statement to bind toparameters
- the parameters to bind to thePreparedStatement
, if any- Throws:
DatabaseException
- if an error occurs during binding
-