Skip to content

Commit 02fa4f2

Browse files
committed
Javadoc
1 parent 176b03b commit 02fa4f2

15 files changed

Lines changed: 60 additions & 60 deletions

src/main/java/org/apache/commons/dbcp2/BasicDataSource.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class BasicDataSource implements DataSource, BasicDataSourceMXBean, MBean
103103
/**
104104
* Validates the given factory.
105105
*
106-
* @param connectionFactory the factory
106+
* @param connectionFactory The factory
107107
* @throws SQLException Thrown by one of the factory methods while managing a temporary pooled object.
108108
*/
109109
@SuppressWarnings("resource")
@@ -589,9 +589,9 @@ protected DataSource createDataSourceInstance() throws SQLException {
589589
/**
590590
* Creates an object pool used to provide pooling support for {@link Connection JDBC connections}.
591591
*
592-
* @param factory the object factory
593-
* @param poolConfig the object pool configuration
594-
* @param abandonedConfig the abandoned objects configuration
592+
* @param factory The object factory
593+
* @param poolConfig The object pool configuration
594+
* @param abandonedConfig The abandoned objects configuration
595595
* @return A non-null instance
596596
*/
597597
protected GenericObjectPool<PoolableConnection> createObjectPool(final PoolableConnectionFactory factory,
@@ -1596,7 +1596,7 @@ public synchronized boolean isClosed() {
15961596
/**
15971597
* Delegates in a null-safe manner to {@link String#isEmpty()}.
15981598
*
1599-
* @param value the string to test, may be null.
1599+
* @param value The string to test, may be null.
16001600
* @return boolean false if value is null, otherwise {@link String#isEmpty()}.
16011601
*/
16021602
private boolean isEmpty(final String value) {
@@ -1640,7 +1640,7 @@ private void jmxRegister() {
16401640
/**
16411641
* Logs the given message.
16421642
*
1643-
* @param message the message to log.
1643+
* @param message The message to log.
16441644
*/
16451645
protected void log(final String message) {
16461646
if (logWriter != null) {
@@ -1652,7 +1652,7 @@ protected void log(final String message) {
16521652
* Logs the given message and throwable.
16531653
*
16541654
* @param message value to be log.
1655-
* @param throwable the throwable.
1655+
* @param throwable The throwable.
16561656
* @since 2.7.0
16571657
*/
16581658
protected void log(final String message, final Throwable throwable) {
@@ -1869,7 +1869,7 @@ private <T> void setConnectionPool(final BiConsumer<GenericObjectPool<PoolableCo
18691869
* NOTE - The "user" and "password" properties will be added explicitly, so they do not need to be included here.
18701870
* </p>
18711871
*
1872-
* @param connectionProperties the connection properties used to create new connections
1872+
* @param connectionProperties The connection properties used to create new connections
18731873
*/
18741874
public void setConnectionProperties(final String connectionProperties) {
18751875
Objects.requireNonNull(connectionProperties, "connectionProperties");
@@ -1912,7 +1912,7 @@ public void setDefaultAutoCommit(final Boolean defaultAutoCommit) {
19121912
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
19131913
* </p>
19141914
*
1915-
* @param defaultCatalog the default catalog
1915+
* @param defaultCatalog The default catalog
19161916
*/
19171917
public void setDefaultCatalog(final String defaultCatalog) {
19181918
this.defaultCatalog = isEmpty(defaultCatalog) ? null : defaultCatalog;
@@ -1963,7 +1963,7 @@ public void setDefaultReadOnly(final Boolean defaultReadOnly) {
19631963
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
19641964
* </p>
19651965
*
1966-
* @param defaultSchema the default catalog
1966+
* @param defaultSchema The default catalog
19671967
* @since 2.5.0
19681968
*/
19691969
public void setDefaultSchema(final String defaultSchema) {
@@ -1978,7 +1978,7 @@ public void setDefaultSchema(final String defaultSchema) {
19781978
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
19791979
* </p>
19801980
*
1981-
* @param defaultTransactionIsolation the default transaction isolation state
1981+
* @param defaultTransactionIsolation The default transaction isolation state
19821982
* @see Connection#getTransactionIsolation
19831983
*/
19841984
public void setDefaultTransactionIsolation(final int defaultTransactionIsolation) {
@@ -2066,7 +2066,7 @@ public synchronized void setDriver(final Driver driver) {
20662066
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
20672067
* </p>
20682068
*
2069-
* @param driverClassLoader the class loader with which to load the JDBC driver
2069+
* @param driverClassLoader The class loader with which to load the JDBC driver
20702070
*/
20712071
public synchronized void setDriverClassLoader(final ClassLoader driverClassLoader) {
20722072
this.driverClassLoader = driverClassLoader;
@@ -2080,7 +2080,7 @@ public synchronized void setDriverClassLoader(final ClassLoader driverClassLoade
20802080
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
20812081
* </p>
20822082
*
2083-
* @param driverClassName the class name of the JDBC driver
2083+
* @param driverClassName The class name of the JDBC driver
20842084
*/
20852085
public synchronized void setDriverClassName(final String driverClassName) {
20862086
this.driverClassName = isEmpty(driverClassName) ? null : driverClassName;
@@ -2089,7 +2089,7 @@ public synchronized void setDriverClassName(final String driverClassName) {
20892089
/**
20902090
* Sets the {code durationBetweenEvictionRuns} property.
20912091
*
2092-
* @param timeBetweenEvictionRunsMillis the new time between evictor runs
2092+
* @param timeBetweenEvictionRunsMillis The new time between evictor runs
20932093
* @see #setDurationBetweenEvictionRuns(Duration)
20942094
* @since 2.10.0
20952095
*/
@@ -2141,7 +2141,7 @@ public void setFastFailValidation(final boolean fastFailValidation) {
21412141
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
21422142
* </p>
21432143
*
2144-
* @param initialSize the number of connections created when the pool is initialized
2144+
* @param initialSize The number of connections created when the pool is initialized
21452145
*/
21462146
public synchronized void setInitialSize(final int initialSize) {
21472147
this.initialSize = initialSize;
@@ -2162,7 +2162,7 @@ public void setJmxName(final String jmxName) {
21622162
/**
21632163
* Sets the LIFO property. True means the pool behaves as a LIFO queue; false means FIFO.
21642164
*
2165-
* @param lifo the new value for the LIFO property
2165+
* @param lifo The new value for the LIFO property
21662166
*/
21672167
public synchronized void setLifo(final boolean lifo) {
21682168
this.lifo = lifo;
@@ -2265,7 +2265,7 @@ public void setMaxConnLifetimeMillis(final long maxConnLifetimeMillis) {
22652265
* return to the pool.
22662266
*
22672267
* @see #getMaxIdle()
2268-
* @param maxIdle the new value for maxIdle
2268+
* @param maxIdle The new value for maxIdle
22692269
*/
22702270
public synchronized void setMaxIdle(final int maxIdle) {
22712271
this.maxIdle = maxIdle;
@@ -2280,7 +2280,7 @@ public synchronized void setMaxIdle(final int maxIdle) {
22802280
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
22812281
* </p>
22822282
*
2283-
* @param maxOpenStatements the new maximum number of prepared statements
2283+
* @param maxOpenStatements The new maximum number of prepared statements
22842284
*/
22852285
public synchronized void setMaxOpenPreparedStatements(final int maxOpenStatements) {
22862286
this.maxOpenPreparedStatements = maxOpenStatements;
@@ -2290,7 +2290,7 @@ public synchronized void setMaxOpenPreparedStatements(final int maxOpenStatement
22902290
* Sets the maximum total number of idle and borrows connections that can be active at the same time. Use a negative
22912291
* value for no limit.
22922292
*
2293-
* @param maxTotal the new value for maxTotal
2293+
* @param maxTotal The new value for maxTotal
22942294
* @see #getMaxTotal()
22952295
*/
22962296
public synchronized void setMaxTotal(final int maxTotal) {
@@ -2301,7 +2301,7 @@ public synchronized void setMaxTotal(final int maxTotal) {
23012301
/**
23022302
* Sets the MaxWaitMillis property. Use -1 to make the pool wait indefinitely.
23032303
*
2304-
* @param maxWaitDuration the new value for MaxWaitMillis
2304+
* @param maxWaitDuration The new value for MaxWaitMillis
23052305
* @see #getMaxWaitDuration()
23062306
* @since 2.10.0
23072307
*/
@@ -2313,7 +2313,7 @@ public synchronized void setMaxWait(final Duration maxWaitDuration) {
23132313
/**
23142314
* Sets the MaxWaitMillis property. Use -1 to make the pool wait indefinitely.
23152315
*
2316-
* @param maxWaitMillis the new value for MaxWaitMillis
2316+
* @param maxWaitMillis The new value for MaxWaitMillis
23172317
* @see #getMaxWaitDuration()
23182318
* @deprecated {@link #setMaxWait(Duration)}.
23192319
*/
@@ -2325,7 +2325,7 @@ public synchronized void setMaxWaitMillis(final long maxWaitMillis) {
23252325
/**
23262326
* Sets the {code minEvictableIdleDuration} property.
23272327
*
2328-
* @param minEvictableIdleDuration the minimum amount of time an object may sit idle in the pool
2328+
* @param minEvictableIdleDuration The minimum amount of time an object may sit idle in the pool
23292329
* @see #setMinEvictableIdle(Duration)
23302330
* @since 2.10.0
23312331
*/
@@ -2337,7 +2337,7 @@ public synchronized void setMinEvictableIdle(final Duration minEvictableIdleDura
23372337
/**
23382338
* Sets the {code minEvictableIdleDuration} property.
23392339
*
2340-
* @param minEvictableIdleTimeMillis the minimum amount of time an object may sit idle in the pool
2340+
* @param minEvictableIdleTimeMillis The minimum amount of time an object may sit idle in the pool
23412341
* @see #setMinEvictableIdle(Duration)
23422342
* @deprecated Use {@link #setMinEvictableIdle(Duration)}.
23432343
*/
@@ -2351,7 +2351,7 @@ public synchronized void setMinEvictableIdleTimeMillis(final long minEvictableId
23512351
* available when the idle object evictor runs. The value of this property has no effect unless
23522352
* {code durationBetweenEvictionRuns} has a positive value.
23532353
*
2354-
* @param minIdle the new value for minIdle
2354+
* @param minIdle The new value for minIdle
23552355
* @see GenericObjectPool#setMinIdle(int)
23562356
*/
23572357
public synchronized void setMinIdle(final int minIdle) {
@@ -2362,7 +2362,7 @@ public synchronized void setMinIdle(final int minIdle) {
23622362
/**
23632363
* Sets the value of the {code numTestsPerEvictionRun} property.
23642364
*
2365-
* @param numTestsPerEvictionRun the new {code numTestsPerEvictionRun} value
2365+
* @param numTestsPerEvictionRun The new {code numTestsPerEvictionRun} value
23662366
* @see #setNumTestsPerEvictionRun(int)
23672367
*/
23682368
public synchronized void setNumTestsPerEvictionRun(final int numTestsPerEvictionRun) {
@@ -2550,7 +2550,7 @@ public synchronized void setTestWhileIdle(final boolean testWhileIdle) {
25502550
/**
25512551
* Sets the {code durationBetweenEvictionRuns} property.
25522552
*
2553-
* @param timeBetweenEvictionRunsMillis the new time between evictor runs
2553+
* @param timeBetweenEvictionRunsMillis The new time between evictor runs
25542554
* @see #setDurationBetweenEvictionRuns(Duration)
25552555
* @deprecated Use {@link #setDurationBetweenEvictionRuns(Duration)}.
25562556
*/
@@ -2567,7 +2567,7 @@ public synchronized void setTimeBetweenEvictionRunsMillis(final long timeBetween
25672567
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
25682568
* </p>
25692569
*
2570-
* @param connectionString the new value for the JDBC connection connectionString
2570+
* @param connectionString The new value for the JDBC connection connectionString
25712571
*/
25722572
public synchronized void setUrl(final String connectionString) {
25732573
this.connectionString = connectionString;
@@ -2581,7 +2581,7 @@ public synchronized void setUrl(final String connectionString) {
25812581
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
25822582
* </p>
25832583
*
2584-
* @param userName the new value for the JDBC connection user name
2584+
* @param userName The new value for the JDBC connection user name
25852585
*/
25862586
public void setUsername(final String userName) {
25872587
this.userName = userName;
@@ -2595,7 +2595,7 @@ public void setUsername(final String userName) {
25952595
* {@link #setLoginTimeout(int)}, {@link #getLoginTimeout()}, {@link #getLogWriter()}.
25962596
* </p>
25972597
*
2598-
* @param validationQuery the new value for the validation query
2598+
* @param validationQuery The new value for the validation query
25992599
*/
26002600
public void setValidationQuery(final String validationQuery) {
26012601
this.validationQuery = isEmpty(validationQuery) ? null : validationQuery;

src/main/java/org/apache/commons/dbcp2/DelegatingConnection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class DelegatingConnection<C extends Connection> extends AbandonedTrace i
7979
/**
8080
* Creates a wrapper for the Connection which traces this Connection in the AbandonedObjectPool.
8181
*
82-
* @param connection the {@link Connection} to delegate all calls to, may be null (see {@link ManagedConnection}).
82+
* @param connection The {@link Connection} to delegate all calls to, may be null (see {@link ManagedConnection}).
8383
*/
8484
public DelegatingConnection(final C connection) {
8585
this.connection = connection;
@@ -541,7 +541,7 @@ public SQLWarning getWarnings() throws SQLException {
541541
/**
542542
* Handles the given exception by throwing it.
543543
*
544-
* @param e the exception to throw.
544+
* @param e The exception to throw.
545545
* @throws SQLException the exception to throw.
546546
*/
547547
protected void handleException(final SQLException e) throws SQLException {
@@ -906,7 +906,7 @@ public void setClientInfo(final String name, final String value) throws SQLClien
906906
/**
907907
* Sets the raw internal closed state.
908908
*
909-
* @param closed the raw internal closed state.
909+
* @param closed The raw internal closed state.
910910
*/
911911
protected void setClosedInternal(final boolean closed) {
912912
this.closed = closed;

src/main/java/org/apache/commons/dbcp2/DelegatingDatabaseMetaData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public class DelegatingDatabaseMetaData implements DatabaseMetaData {
4646
/**
4747
* Constructs a new instance for the given delegating connection and database meta data.
4848
*
49-
* @param connection the delegating connection
50-
* @param databaseMetaData the database meta data
49+
* @param connection The delegating connection
50+
* @param databaseMetaData The database meta data
5151
*/
5252
public DelegatingDatabaseMetaData(final DelegatingConnection<?> connection, final DatabaseMetaData databaseMetaData) {
5353
this.connection = Objects.requireNonNull(connection, "connection");
@@ -554,7 +554,7 @@ public ResultSet getVersionColumns(final String catalog, final String schema, fi
554554
/**
555555
* Delegates to the connection's {@link DelegatingConnection#handleException(SQLException)}.
556556
*
557-
* @param e the exception to throw or delegate.
557+
* @param e The exception to throw or delegate.
558558
* @throws SQLException the exception to throw.
559559
*/
560560
protected void handleException(final SQLException e) throws SQLException {

src/main/java/org/apache/commons/dbcp2/LifetimeExceededException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class LifetimeExceededException extends SQLException {
3636
/**
3737
* Constructs a new instance with the given message.
3838
*
39-
* @param reason a description of the exception
39+
* @param reason A description of the exception
4040
*/
4141
LifetimeExceededException(final String reason) {
4242
super(reason);

src/main/java/org/apache/commons/dbcp2/PStmtKey.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public PStmtKey(final String sql, final String catalog, final int resultSetType,
195195
*
196196
* @param sql The SQL statement.
197197
* @param catalog The catalog.
198-
* @param resultSetType a result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
198+
* @param resultSetType A result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
199199
* {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}.
200200
* @param resultSetConcurrency A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or
201201
* {@link ResultSet#CONCUR_UPDATABLE}
@@ -213,7 +213,7 @@ public PStmtKey(final String sql, final String catalog, final int resultSetType,
213213
*
214214
* @param sql The SQL statement.
215215
* @param catalog The catalog.
216-
* @param resultSetType a result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
216+
* @param resultSetType A result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
217217
* {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}
218218
* @param resultSetConcurrency A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or
219219
* {@link ResultSet#CONCUR_UPDATABLE}.
@@ -337,7 +337,7 @@ public PStmtKey(final String sql, final String catalog, final String schema, fin
337337
* @param sql The SQL statement.
338338
* @param catalog The catalog.
339339
* @param schema The schema
340-
* @param resultSetType a result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
340+
* @param resultSetType A result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
341341
* {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}.
342342
* @param resultSetConcurrency A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or
343343
* {@link ResultSet#CONCUR_UPDATABLE}
@@ -356,7 +356,7 @@ public PStmtKey(final String sql, final String catalog, final String schema, fin
356356
* @param sql The SQL statement.
357357
* @param catalog The catalog.
358358
* @param schema The schema.
359-
* @param resultSetType a result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
359+
* @param resultSetType A result set type; one of {@link ResultSet#TYPE_FORWARD_ONLY},
360360
* {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or {@link ResultSet#TYPE_SCROLL_SENSITIVE}
361361
* @param resultSetConcurrency A concurrency type; one of {@link ResultSet#CONCUR_READ_ONLY} or
362362
* {@link ResultSet#CONCUR_UPDATABLE}.

src/main/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public int getValidationQueryTimeoutSeconds() {
411411
/**
412412
* Initializes the given connection with the collection of SQL statements set in {@link #setConnectionInitSql(Collection)}.
413413
*
414-
* @param conn the connection to initialize.
414+
* @param conn The connection to initialize.
415415
* @throws SQLException if a database access error occurs or this method is called on a closed connection.
416416
* @see #setConnectionInitSql(Collection)
417417
*/
@@ -576,7 +576,7 @@ public void setAutoCommitOnReturn(final boolean autoCommitOnReturn) {
576576
/**
577577
* Sets the cache state to propagate in {@link #makeObject()}.
578578
*
579-
* @param cacheState the cache state to propagate.
579+
* @param cacheState The cache state to propagate.
580580
*/
581581
public void setCacheState(final boolean cacheState) {
582582
this.cacheState = cacheState;
@@ -627,7 +627,7 @@ public void setDefaultCatalog(final String defaultCatalog) {
627627
/**
628628
* Sets the query timeout Duration.
629629
*
630-
* @param defaultQueryTimeoutDuration the query timeout Duration.
630+
* @param defaultQueryTimeoutDuration The query timeout Duration.
631631
* @since 2.10.0
632632
*/
633633
public void setDefaultQueryTimeout(final Duration defaultQueryTimeoutDuration) {
@@ -637,7 +637,7 @@ public void setDefaultQueryTimeout(final Duration defaultQueryTimeoutDuration) {
637637
/**
638638
* Sets the query timeout in seconds.
639639
*
640-
* @param defaultQueryTimeoutSeconds the query timeout in seconds.
640+
* @param defaultQueryTimeoutSeconds The query timeout in seconds.
641641
* @deprecated Use {@link #setDefaultQueryTimeout(Duration)}.
642642
*/
643643
@Deprecated
@@ -841,7 +841,7 @@ public void setValidationQueryTimeout(final int validationQueryTimeoutSeconds) {
841841
/**
842842
* Validates the given connection if it is open.
843843
*
844-
* @param conn the connection to validate.
844+
* @param conn The connection to validate.
845845
* @throws SQLException if the connection is closed or validate fails.
846846
*/
847847
public void validateConnection(final PoolableConnection conn) throws SQLException {

src/main/java/org/apache/commons/dbcp2/SQLExceptionList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class SQLExceptionList extends SQLException {
4040
/**
4141
* Creates a new exception caused by a list of exceptions.
4242
*
43-
* @param causeList a list of cause exceptions.
43+
* @param causeList A list of cause exceptions.
4444
*/
4545
public SQLExceptionList(final List<? extends Throwable> causeList) {
4646
super(String.format("%,d exceptions: %s", causeList == null ? 0 : causeList.size(), causeList),

0 commit comments

Comments
 (0)