1. Project Clover database Fri Jul 17 2026 06:10:26 UTC
  2. Package guru.mikelue.foxglove.jdbc

File CustomStatementSetter.java

 

Code metrics

0
0
0
1
29
11
0
-
-
0
-

Classes

Class Line # Actions
CustomStatementSetter 14 0 - 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package guru.mikelue.foxglove.jdbc;
2   
3    import java.sql.PreparedStatement;
4    import java.sql.SQLException;
5   
6    import guru.mikelue.foxglove.ColumnMeta;
7   
8    /**
9    * Defines the custom extension for setting parameter value.
10    *
11    * @param <T> The type of parameter value
12    */
13    @FunctionalInterface
 
14    public interface CustomStatementSetter<T> {
15    /**
16    * Sets the parameter value to the statement.
17    *
18    * @param stmt The statement to set parameter value
19    * @param paramIndex The index of parameter to set
20    * @param columnMeta The column metadata of the parameter
21    * @param value The parameter value to set
22    *
23    * @throws SQLException If any SQL error occurs
24    */
25    void setParameter(
26    PreparedStatement stmt, int paramIndex,
27    ColumnMeta columnMeta, T value
28    ) throws SQLException;
29    }