Skip to content

Commit 5da070c

Browse files
committed
Javadoc
1 parent b0b5fa1 commit 5da070c

5 files changed

Lines changed: 41 additions & 41 deletions

File tree

src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public Integer call() throws SQLException {
225225
* @param pmdKnownBroken Some drivers don't support {@link java.sql.ParameterMetaData#getParameterType(int)};
226226
* if {@code pmdKnownBroken} is set to true, we won't even try it; if false, we'll try it,
227227
* and if it breaks, we'll remember not to use it again.
228-
* @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently.
228+
* @param executorService The {@code ExecutorService} instance used to run JDBC invocations concurrently.
229229
* @deprecated Use {@link #AsyncQueryRunner(ExecutorService, QueryRunner)} instead.
230230
* Constructor for AsyncQueryRunner that controls the use of {@code ParameterMetaData}.
231231
*
@@ -240,7 +240,7 @@ public AsyncQueryRunner(final boolean pmdKnownBroken, final ExecutorService exec
240240
* @param pmdKnownBroken Some drivers don't support {@link java.sql.ParameterMetaData#getParameterType(int)};
241241
* if {@code pmdKnownBroken} is set to true, we won't even try it; if false, we'll try it,
242242
* and if it breaks, we'll remember not to use it again.
243-
* @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently.
243+
* @param executorService The {@code ExecutorService} instance used to run JDBC invocations concurrently.
244244
* @deprecated Use {@link #AsyncQueryRunner(ExecutorService, QueryRunner)} instead.
245245
* Constructor for AsyncQueryRunner that take a {@code DataSource} and controls the use of {@code ParameterMetaData}.
246246
* Methods that do not take a {@code Connection} parameter will retrieve connections from this
@@ -256,7 +256,7 @@ public AsyncQueryRunner(final DataSource ds, final boolean pmdKnownBroken, final
256256

257257
/**
258258
* @param ds The {@code DataSource} to retrieve connections from.
259-
* @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently.
259+
* @param executorService The {@code ExecutorService} instance used to run JDBC invocations concurrently.
260260
* @deprecated Use {@link #AsyncQueryRunner(ExecutorService, QueryRunner)} instead.
261261
* Constructor for AsyncQueryRunner that takes a {@code DataSource}.
262262
*
@@ -272,7 +272,7 @@ public AsyncQueryRunner(final DataSource ds, final ExecutorService executorServi
272272
/**
273273
* Constructor for AsyncQueryRunner.
274274
*
275-
* @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently.
275+
* @param executorService The {@code ExecutorService} instance used to run JDBC invocations concurrently.
276276
*/
277277
public AsyncQueryRunner(final ExecutorService executorService) {
278278
this(null, false, executorService);
@@ -281,8 +281,8 @@ public AsyncQueryRunner(final ExecutorService executorService) {
281281
/**
282282
* Constructor for AsyncQueryRunner which uses a provided ExecutorService and underlying QueryRunner.
283283
*
284-
* @param executorService the {@code ExecutorService} instance used to run JDBC invocations concurrently.
285-
* @param queryRunner the {@code QueryRunner} instance to use for the queries.
284+
* @param executorService The {@code ExecutorService} instance used to run JDBC invocations concurrently.
285+
* @param queryRunner The {@code QueryRunner} instance to use for the queries.
286286
* @since 1.5
287287
*/
288288
public AsyncQueryRunner(final ExecutorService executorService, final QueryRunner queryRunner) {

src/main/java/org/apache/commons/dbutils/DbUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static final class DriverProxy implements Driver {
5050
/**
5151
* Creates a new JDBC Driver that adapts a JDBC Driver loaded dynamically.
5252
*
53-
* @param adapted the adapted JDBC Driver loaded dynamically.
53+
* @param adapted The adapted JDBC Driver loaded dynamically.
5454
*/
5555
public DriverProxy(final Driver adapted) {
5656
this.adapted = adapted;
@@ -250,7 +250,7 @@ public static void commitAndCloseQuietly(final Connection conn) {
250250
* Loads and registers a database driver class.
251251
* If this succeeds, it returns true, else it returns false.
252252
*
253-
* @param classLoader the class loader used to load the driver class
253+
* @param classLoader The class loader used to load the driver class
254254
* @param driverClassName of driver to load
255255
* @return boolean {@code true} if the driver was found, otherwise {@code false}
256256
* @since 1.4

src/main/java/org/apache/commons/dbutils/OutParameter.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public class OutParameter<T> {
4242
* Constructs an {@code OutParameter} for the given JDBC SQL type and
4343
* Java type.
4444
*
45-
* @param sqlType the JDBC SQL type of the parameter as in
45+
* @param sqlType The JDBC SQL type of the parameter as in
4646
* {@link java.sql.Types}.
47-
* @param javaType the Java class of the parameter value, cast compatible
47+
* @param javaType The Java class of the parameter value, cast compatible
4848
* with the type returned by {@code CallableStatement.getObject(int)}
4949
* for the JDBC type given by {@code sqlType}.
5050
*/
@@ -58,12 +58,12 @@ public OutParameter(final int sqlType, final Class<T> javaType) {
5858
* Java type and with the given value. The parameter will be treated as an
5959
* INOUT parameter if the value is null.
6060
*
61-
* @param sqlType the JDBC SQL type of the parameter as in
61+
* @param sqlType The JDBC SQL type of the parameter as in
6262
* {@link java.sql.Types}.
63-
* @param javaType the Java class of the parameter value, cast compatible
63+
* @param javaType The Java class of the parameter value, cast compatible
6464
* with the type returned by {@code CallableStatement.getObject(int)}
6565
* for the JDBC type given by {@code sqlType}.
66-
* @param value the IN value of the parameter
66+
* @param value The IN value of the parameter
6767
*/
6868
public OutParameter(final int sqlType, final Class<T> javaType, final T value) {
6969
this.sqlType = sqlType;
@@ -105,8 +105,8 @@ public T getValue() {
105105
* {@code OutParameter}. If the value is not null, the parameter is
106106
* treated like an INOUT parameter and the value is set on the statement.
107107
*
108-
* @param stmt the statement the parameter should register on.
109-
* @param index the (1-based) index of the parameter.
108+
* @param stmt The statement the parameter should register on.
109+
* @param index The (1-based) index of the parameter.
110110
* @throws SQLException if the parameter could not be registered, or if the
111111
* value of the parameter could not be set.
112112
*/
@@ -121,8 +121,8 @@ void register(final CallableStatement stmt, final int index) throws SQLException
121121
* Set the value using the return value of the parameter an the given index
122122
* from the given {@code CallableStatement}.
123123
*
124-
* @param stmt the already executed statement
125-
* @param index the (1-based) index of the parameter
124+
* @param stmt The already executed statement
125+
* @param index The (1-based) index of the parameter
126126
* @throws SQLException when the value could not be retrieved from the
127127
* statement.
128128
*/
@@ -135,7 +135,7 @@ void setValue(final CallableStatement stmt, final int index) throws SQLException
135135
* stored procedure is executed, then the parameter will be treated like an
136136
* INOUT parameter.
137137
*
138-
* @param value the new value for the parameter.
138+
* @param value The new value for the parameter.
139139
*/
140140
public void setValue(final T value) {
141141
this.value = value;

src/main/java/org/apache/commons/dbutils/QueryRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ public <T> T query(final String sql, final ResultSetHandler<T> rsh, final Object
721721
* {@code params} array using the OUT parameter values from the
722722
* {@code stmt}.
723723
*
724-
* @param stmt the statement from which to retrieve OUT parameter values
725-
* @param params the parameter array for the statement invocation
724+
* @param stmt The statement from which to retrieve OUT parameter values
725+
* @param params The parameter array for the statement invocation
726726
* @throws SQLException when the value could not be retrieved from the
727727
* statement.
728728
*/

src/main/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public Object invoke(final Object proxy, final Method method, final Object[] arg
402402
* Sets the value to return when a SQL null is encountered as the result of
403403
* invoking a {@code getAsciiStream} method.
404404
*
405-
* @param nullAsciiStream the value
405+
* @param nullAsciiStream The value
406406
*/
407407
public void setNullAsciiStream(final InputStream nullAsciiStream) {
408408
this.nullAsciiStream = nullAsciiStream;
@@ -412,7 +412,7 @@ public void setNullAsciiStream(final InputStream nullAsciiStream) {
412412
* Sets the value to return when a SQL null is encountered as the result of
413413
* invoking a {@code getBigDecimal} method.
414414
*
415-
* @param nullBigDecimal the value
415+
* @param nullBigDecimal The value
416416
*/
417417
public void setNullBigDecimal(final BigDecimal nullBigDecimal) {
418418
this.nullBigDecimal = nullBigDecimal;
@@ -422,7 +422,7 @@ public void setNullBigDecimal(final BigDecimal nullBigDecimal) {
422422
* Sets the value to return when a SQL null is encountered as the result of
423423
* invoking a {@code getBinaryStream} method.
424424
*
425-
* @param nullBinaryStream the value
425+
* @param nullBinaryStream The value
426426
*/
427427
public void setNullBinaryStream(final InputStream nullBinaryStream) {
428428
this.nullBinaryStream = nullBinaryStream;
@@ -432,7 +432,7 @@ public void setNullBinaryStream(final InputStream nullBinaryStream) {
432432
* Sets the value to return when a SQL null is encountered as the result of
433433
* invoking a {@code getBlob} method.
434434
*
435-
* @param nullBlob the value
435+
* @param nullBlob The value
436436
*/
437437
public void setNullBlob(final Blob nullBlob) {
438438
this.nullBlob = nullBlob;
@@ -442,7 +442,7 @@ public void setNullBlob(final Blob nullBlob) {
442442
* Sets the value to return when a SQL null is encountered as the result of
443443
* invoking a {@code getBoolean} method.
444444
*
445-
* @param nullBoolean the value
445+
* @param nullBoolean The value
446446
*/
447447
public void setNullBoolean(final boolean nullBoolean) {
448448
this.nullBoolean = nullBoolean;
@@ -452,7 +452,7 @@ public void setNullBoolean(final boolean nullBoolean) {
452452
* Sets the value to return when a SQL null is encountered as the result of
453453
* invoking a {@code getByte} method.
454454
*
455-
* @param nullByte the value
455+
* @param nullByte The value
456456
*/
457457
public void setNullByte(final byte nullByte) {
458458
this.nullByte = nullByte;
@@ -462,7 +462,7 @@ public void setNullByte(final byte nullByte) {
462462
* Sets the value to return when a SQL null is encountered as the result of
463463
* invoking a {@code getBytes} method.
464464
*
465-
* @param nullBytes the value
465+
* @param nullBytes The value
466466
*/
467467
public void setNullBytes(final byte[] nullBytes) {
468468
if (nullBytes != null) {
@@ -476,7 +476,7 @@ public void setNullBytes(final byte[] nullBytes) {
476476
* Sets the value to return when a SQL null is encountered as the result of
477477
* invoking a {@code getCharacterStream} method.
478478
*
479-
* @param nullCharacterStream the value
479+
* @param nullCharacterStream The value
480480
*/
481481
public void setNullCharacterStream(final Reader nullCharacterStream) {
482482
this.nullCharacterStream = nullCharacterStream;
@@ -486,7 +486,7 @@ public void setNullCharacterStream(final Reader nullCharacterStream) {
486486
* Sets the value to return when a SQL null is encountered as the result of
487487
* invoking a {@code getClob} method.
488488
*
489-
* @param nullClob the value
489+
* @param nullClob The value
490490
*/
491491
public void setNullClob(final Clob nullClob) {
492492
this.nullClob = nullClob;
@@ -496,7 +496,7 @@ public void setNullClob(final Clob nullClob) {
496496
* Sets the value to return when a SQL null is encountered as the result of
497497
* invoking a {@code getDate} method.
498498
*
499-
* @param nullDate the value
499+
* @param nullDate The value
500500
*/
501501
public void setNullDate(final Date nullDate) {
502502
this.nullDate = nullDate != null ? new Date(nullDate.getTime()) : null;
@@ -506,7 +506,7 @@ public void setNullDate(final Date nullDate) {
506506
* Sets the value to return when a SQL null is encountered as the result of
507507
* invoking a {@code getDouble} method.
508508
*
509-
* @param nullDouble the value
509+
* @param nullDouble The value
510510
*/
511511
public void setNullDouble(final double nullDouble) {
512512
this.nullDouble = nullDouble;
@@ -516,7 +516,7 @@ public void setNullDouble(final double nullDouble) {
516516
* Sets the value to return when a SQL null is encountered as the result of
517517
* invoking a {@code getFloat} method.
518518
*
519-
* @param nullFloat the value
519+
* @param nullFloat The value
520520
*/
521521
public void setNullFloat(final float nullFloat) {
522522
this.nullFloat = nullFloat;
@@ -526,7 +526,7 @@ public void setNullFloat(final float nullFloat) {
526526
* Sets the value to return when a SQL null is encountered as the result of
527527
* invoking a {@code getInt} method.
528528
*
529-
* @param nullInt the value
529+
* @param nullInt The value
530530
*/
531531
public void setNullInt(final int nullInt) {
532532
this.nullInt = nullInt;
@@ -536,7 +536,7 @@ public void setNullInt(final int nullInt) {
536536
* Sets the value to return when a SQL null is encountered as the result of
537537
* invoking a {@code getLong} method.
538538
*
539-
* @param nullLong the value
539+
* @param nullLong The value
540540
*/
541541
public void setNullLong(final long nullLong) {
542542
this.nullLong = nullLong;
@@ -546,7 +546,7 @@ public void setNullLong(final long nullLong) {
546546
* Sets the value to return when a SQL null is encountered as the result of
547547
* invoking a {@code getObject} method.
548548
*
549-
* @param nullObject the value
549+
* @param nullObject The value
550550
*/
551551
public void setNullObject(final Object nullObject) {
552552
this.nullObject = nullObject;
@@ -556,7 +556,7 @@ public void setNullObject(final Object nullObject) {
556556
* Sets the value to return when a SQL null is encountered as the result of
557557
* invoking a {@code getRef} method.
558558
*
559-
* @param nullRef the value
559+
* @param nullRef The value
560560
*/
561561
public void setNullRef(final Ref nullRef) {
562562
this.nullRef = nullRef;
@@ -566,7 +566,7 @@ public void setNullRef(final Ref nullRef) {
566566
* Sets the value to return when a SQL null is encountered as the result of
567567
* invoking a {@code getShort} method.
568568
*
569-
* @param nullShort the value
569+
* @param nullShort The value
570570
*/
571571
public void setNullShort(final short nullShort) {
572572
this.nullShort = nullShort;
@@ -576,7 +576,7 @@ public void setNullShort(final short nullShort) {
576576
* Sets the value to return when a SQL null is encountered as the result of
577577
* invoking a {@code getString} method.
578578
*
579-
* @param nullString the value
579+
* @param nullString The value
580580
*/
581581
public void setNullString(final String nullString) {
582582
this.nullString = nullString;
@@ -586,7 +586,7 @@ public void setNullString(final String nullString) {
586586
* Sets the value to return when a SQL null is encountered as the result of
587587
* invoking a {@code getTime} method.
588588
*
589-
* @param nullTime the value
589+
* @param nullTime The value
590590
*/
591591
public void setNullTime(final Time nullTime) {
592592
this.nullTime = nullTime != null ? new Time(nullTime.getTime()) : null;
@@ -596,7 +596,7 @@ public void setNullTime(final Time nullTime) {
596596
* Sets the value to return when a SQL null is encountered as the result of
597597
* invoking a {@code getTimestamp} method.
598598
*
599-
* @param nullTimestamp the value
599+
* @param nullTimestamp The value
600600
*/
601601
public void setNullTimestamp(final Timestamp nullTimestamp) {
602602
if (nullTimestamp != null) {
@@ -611,7 +611,7 @@ public void setNullTimestamp(final Timestamp nullTimestamp) {
611611
* Sets the value to return when a SQL null is encountered as the result of
612612
* invoking a {@code getURL} method.
613613
*
614-
* @param nullURL the value
614+
* @param nullURL The value
615615
*/
616616
public void setNullURL(final URL nullURL) {
617617
this.nullURL = nullURL;

0 commit comments

Comments
 (0)