Skip to content

Commit 3e70b4a

Browse files
committed
Consistent spelling style
1 parent 39e55e2 commit 3e70b4a

24 files changed

+81
-82
lines changed

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/Binding.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import java.util.Arrays;
2323

2424
/**
25-
* A collection of {@link MySqlParameter} for one bind invocation of a parametrized statement.
25+
* A collection of {@link MySqlParameter} for one bind invocation of a parameterized statement.
2626
*
27-
* @see ParametrizedStatementSupport
27+
* @see ParameterizedStatementSupport
2828
*/
2929
final class Binding {
3030

@@ -40,7 +40,7 @@ final class Binding {
4040
* Add a {@link MySqlParameter} to the binding.
4141
*
4242
* @param index the index of the {@link MySqlParameter}
43-
* @param value the {@link MySqlParameter} from {@link PrepareParametrizedStatement}
43+
* @param value the {@link MySqlParameter} from {@link PrepareParameterizedStatement}
4444
*/
4545
void add(int index, MySqlParameter value) {
4646
if (index < 0 || index >= this.values.length) {

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public Builder tcpNoDelay(boolean enabled) {
883883
}
884884

885885
/**
886-
* Configures the protocol of parametrized statements to the text protocol.
886+
* Configures the protocol of parameterized statements to the text protocol.
887887
* <p>
888888
* The text protocol is default protocol that's using client-preparing. See also MySQL
889889
* documentations.
@@ -897,7 +897,7 @@ public Builder useClientPrepareStatement() {
897897
}
898898

899899
/**
900-
* Configures the protocol of parametrized statements to the binary protocol.
900+
* Configures the protocol of parameterized statements to the binary protocol.
901901
* <p>
902902
* The binary protocol is compact protocol that's using server-preparing. See also MySQL
903903
* documentations.
@@ -910,7 +910,7 @@ public Builder useServerPrepareStatement() {
910910
}
911911

912912
/**
913-
* Configures the protocol of parametrized statements and prepare-preferred simple statements to the
913+
* Configures the protocol of parameterized statements and prepare-preferred simple statements to the
914914
* binary protocol.
915915
* <p>
916916
* The {@code preferPrepareStatement} configures whether to prefer prepare execution on a
@@ -1025,7 +1025,7 @@ public Builder queryCacheSize(int queryCacheSize) {
10251025
/**
10261026
* Configures the maximum size of the server-preparing cache. Usually it should be power of two.
10271027
* Default to {@code 256}. Driver will use unbounded cache if size is less than {@code 0}. It is used
1028-
* only if using server-preparing parametrized statements, i.e. the {@link #useServerPrepareStatement}
1028+
* only if using server-preparing parameterized statements, i.e. the {@link #useServerPrepareStatement}
10291029
* is set.
10301030
* <p>
10311031
* Notice: the cache is using EC model (the PACELC theorem) for ensure consistency. Consistency is

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionFactoryProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ public final class MySqlConnectionFactoryProvider implements ConnectionFactoryPr
201201
Option.valueOf("createDatabaseIfNotExist");
202202

203203
/**
204-
* Enable server preparing for parametrized statements and prefer server preparing simple statements.
204+
* Enable server preparing for parameterized statements and prefer server preparing simple statements.
205205
* <p>
206206
* The value can be a {@link Boolean}. If it is {@code true}, driver will use server preparing for
207-
* parametrized statements and text query for simple statements. If it is {@code false}, driver will use
208-
* client preparing for parametrized statements and text query for simple statements.
207+
* parameterized statements and text query for simple statements. If it is {@code false}, driver will use
208+
* client preparing for parameterized statements and text query for simple statements.
209209
* <p>
210210
* The value can be a {@link Predicate}{@code <}{@link String}{@code >}. If it is set, driver will server
211-
* preparing for parametrized statements, it configures whether to prefer prepare execution on a
211+
* preparing for parameterized statements, it configures whether to prefer prepare execution on a
212212
* statement-by-statement basis (simple statements). The {@link Predicate}{@code <}{@link String}{@code >}
213213
* accepts the simple SQL query string and returns a {@code boolean} flag indicating preference.
214214
* <p>

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlSimpleConnection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ public MySqlStatement createStatement(String sql) {
256256
}
257257

258258
if (prepare == null) {
259-
logger.debug("Create a parametrized statement provided by text query");
260-
return new TextParametrizedStatement(client, codecs, query);
259+
logger.debug("Create a parameterized statement provided by text query");
260+
return new TextParameterizedStatement(client, codecs, query);
261261
}
262262

263-
logger.debug("Create a parametrized statement provided by prepare query");
263+
logger.debug("Create a parameterized statement provided by prepare query");
264264

265-
return new PrepareParametrizedStatement(client, codecs, query, prepareCache);
265+
return new PrepareParameterizedStatement(client, codecs, query, prepareCache);
266266
}
267267

268268
@Override

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/ParameterWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.nio.ByteBuffer;
2626

2727
/**
28-
* A writer for {@link MySqlParameter}s of parametrized statements with text-based protocol.
28+
* A writer for {@link MySqlParameter}s of parameterized statements with text-based protocol.
2929
*/
3030
public abstract class ParameterWriter extends Writer {
3131

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/ParametrizedStatementSupport.java renamed to r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/ParameterizedStatementSupport.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
import static io.asyncer.r2dbc.mysql.internal.util.AssertUtils.requireNonNull;
3535

3636
/**
37-
* Base class considers parametrized {@link MySqlStatement} with parameter markers.
37+
* Base class considers parameterized {@link MySqlStatement} with parameter markers.
3838
* <p>
3939
* MySQL uses indexed parameters which are marked by {@literal ?} without naming. Implementations should use
4040
* {@link Query} to supports named parameters.
4141
*/
42-
abstract class ParametrizedStatementSupport extends MySqlStatementSupport {
42+
abstract class ParameterizedStatementSupport extends MySqlStatementSupport {
4343

4444
protected final Codecs codecs;
4545

@@ -49,7 +49,7 @@ abstract class ParametrizedStatementSupport extends MySqlStatementSupport {
4949

5050
private final AtomicBoolean executed = new AtomicBoolean();
5151

52-
ParametrizedStatementSupport(Client client, Codecs codecs, Query query) {
52+
ParameterizedStatementSupport(Client client, Codecs codecs, Query query) {
5353
super(client);
5454

5555
requireNonNull(query, "query must not be null");
@@ -113,7 +113,7 @@ public final Flux<? extends MySqlResult> execute() {
113113

114114
return Flux.defer(() -> {
115115
if (!executed.compareAndSet(false, true)) {
116-
return Flux.error(new IllegalStateException("Parametrized statement was already executed"));
116+
return Flux.error(new IllegalStateException("Parameterized statement was already executed"));
117117
}
118118

119119
return execute(bindings.bindings);

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/PrepareParametrizedStatement.java renamed to r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/PrepareParameterizedStatement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
import static io.asyncer.r2dbc.mysql.internal.util.AssertUtils.require;
3030

3131
/**
32-
* An implementation of {@link ParametrizedStatementSupport} based on MySQL prepare query.
32+
* An implementation of {@link ParameterizedStatementSupport} based on MySQL prepare query.
3333
*/
34-
final class PrepareParametrizedStatement extends ParametrizedStatementSupport {
34+
final class PrepareParameterizedStatement extends ParameterizedStatementSupport {
3535

3636
private final PrepareCache prepareCache;
3737

3838
private int fetchSize = 0;
3939

40-
PrepareParametrizedStatement(Client client, Codecs codecs, Query query, PrepareCache prepareCache) {
40+
PrepareParameterizedStatement(Client client, Codecs codecs, Query query, PrepareCache prepareCache) {
4141
super(client, codecs, query);
4242
this.prepareCache = prepareCache;
4343
}

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/QueryFlow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
import java.util.function.Predicate;
8888

8989
/**
90-
* A message flow considers both of parametrized and text queries, such as {@link TextParametrizedStatement},
91-
* {@link PrepareParametrizedStatement}, {@link TextSimpleStatement}, {@link PrepareSimpleStatement} and
90+
* A message flow considers both of parameterized and text queries, such as {@link TextParameterizedStatement},
91+
* {@link PrepareParameterizedStatement}, {@link TextSimpleStatement}, {@link PrepareSimpleStatement} and
9292
* {@link MySqlBatch}.
9393
*/
9494
final class QueryFlow {

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/TextParametrizedStatement.java renamed to r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/TextParameterizedStatement.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
import java.util.List;
2525

2626
/**
27-
* An implementation of {@link ParametrizedStatementSupport} based on MySQL text query.
27+
* An implementation of {@link ParameterizedStatementSupport} based on MySQL text query.
2828
*/
29-
final class TextParametrizedStatement extends ParametrizedStatementSupport {
29+
final class TextParameterizedStatement extends ParameterizedStatementSupport {
3030

31-
TextParametrizedStatement(Client client, Codecs codecs, Query query) {
31+
TextParameterizedStatement(Client client, Codecs codecs, Query query) {
3232
super(client, codecs, query);
3333
}
3434

r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/api/MySqlStatement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface MySqlStatement extends Statement {
3535
* {@inheritDoc}
3636
*
3737
* @return {@link MySqlStatement this}
38-
* @throws IllegalStateException if the statement is parametrized and not all parameters are provided
38+
* @throws IllegalStateException if the statement is parameterized and not all parameters are provided
3939
*/
4040
@Override
4141
MySqlStatement add();
@@ -96,7 +96,7 @@ public interface MySqlStatement extends Statement {
9696
* {@inheritDoc}
9797
*
9898
* @return a {@link Flux} representing {@link MySqlResult}s of the statement
99-
* @throws IllegalStateException if the statement is parametrized and not all parameters are provided
99+
* @throws IllegalStateException if the statement is parameterized and not all parameters are provided
100100
*/
101101
@Override
102102
Flux<? extends MySqlResult> execute();

0 commit comments

Comments
 (0)