File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
vertx-sql-client/src/main/java/io/vertx/sqlclient/impl Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 5
5
public interface SqlClientInternal extends SqlClient {
6
6
7
7
/**
8
- * Append a query placeholder in the {@code query}.
8
+ * Append a parameter placeholder in the {@code query}.
9
9
*
10
- * <p>The index starts at {@code 0}
10
+ * <p>The index starts at {@code 0}.
11
+ *
12
+ * <ul>
13
+ * <li>When {@code index == current} indicates it is a new parameter and therefore the same
14
+ * * value should be returned.</li>
15
+ * <li>When {@code index < current} indicates the builder wants to reuse a parameter.
16
+ * The implementation can either return the same value to indicate the parameter can be reused or
17
+ * return the next index to use (which is shall be the {@code current} value</li>
18
+ * </ul>
11
19
*
12
20
* @param queryBuilder the builder to append to
13
- * @param index the placeholder index
21
+ * @param index the parameter placeholder index
22
+ * @return the index at which the parameter placeholder could be added
14
23
*/
15
24
int appendQueryPlaceholder (StringBuilder queryBuilder , int index , int current );
16
25
You can’t perform that action at this time.
0 commit comments