Skip to content

Commit 9e7a564

Browse files
committed
Javadoc
1 parent c3458e3 commit 9e7a564

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

vertx-sql-client/src/main/java/io/vertx/sqlclient/impl/SqlClientInternal.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@
55
public interface SqlClientInternal extends SqlClient {
66

77
/**
8-
* Append a query placeholder in the {@code query}.
8+
* Append a parameter placeholder in the {@code query}.
99
*
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>
1119
*
1220
* @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
1423
*/
1524
int appendQueryPlaceholder(StringBuilder queryBuilder, int index, int current);
1625

0 commit comments

Comments
 (0)