Skip to content

Commit 9828d7f

Browse files
committed
Javadoc
1 parent 3bd3271 commit 9828d7f

24 files changed

Lines changed: 84 additions & 84 deletions

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public boolean getAutoCommitOnReturn() {
697697
/**
698698
* Gets the state caching flag.
699699
*
700-
* @return the state caching flag
700+
* @return The state caching flag
701701
*/
702702
@Override
703703
public boolean getCacheState() {
@@ -749,7 +749,7 @@ public Connection getConnection(final String user, final String pass) throws SQL
749749
* Note: This getter only returns the last value set by a call to {@link #setConnectionFactoryClassName(String)}.
750750
* </p>
751751
*
752-
* @return the ConnectionFactoryClassName that has been configured for use by this pool.
752+
* @return The ConnectionFactoryClassName that has been configured for use by this pool.
753753
* @since 2.7.0
754754
*/
755755
public String getConnectionFactoryClassName() {
@@ -778,7 +778,7 @@ public String[] getConnectionInitSqlsAsArray() {
778778
/**
779779
* Gets the underlying connection pool.
780780
*
781-
* @return the underlying connection pool.
781+
* @return The underlying connection pool.
782782
* @since 2.10.0
783783
*/
784784
public GenericObjectPool<PoolableConnection> getConnectionPool() {
@@ -802,7 +802,7 @@ public Boolean getDefaultAutoCommit() {
802802
/**
803803
* Gets the default catalog.
804804
*
805-
* @return the default catalog
805+
* @return The default catalog
806806
*/
807807
@Override
808808
public String getDefaultCatalog() {
@@ -845,7 +845,7 @@ public Boolean getDefaultReadOnly() {
845845
/**
846846
* Gets the default schema.
847847
*
848-
* @return the default schema.
848+
* @return The default schema.
849849
* @since 2.5.0
850850
*/
851851
@Override
@@ -856,7 +856,7 @@ public String getDefaultSchema() {
856856
/**
857857
* Gets the default transaction isolation state of returned connections.
858858
*
859-
* @return the default value for transaction isolation state
859+
* @return The default value for transaction isolation state
860860
* @see Connection#getTransactionIsolation
861861
*/
862862
@Override
@@ -919,7 +919,7 @@ public String[] getDisconnectionSqlCodesAsArray() {
919919
* driver instance that may have been created from the value set via {@link #setDriverClassName(String)}.
920920
* </p>
921921
*
922-
* @return the JDBC Driver that has been configured for use by this pool
922+
* @return The JDBC Driver that has been configured for use by this pool
923923
*/
924924
public synchronized Driver getDriver() {
925925
return driver;
@@ -946,7 +946,7 @@ public synchronized ClassLoader getDriverClassLoader() {
946946
* return the class name of any driver that may have been set via {@link #setDriver(Driver)}.
947947
* </p>
948948
*
949-
* @return the JDBC driver class name
949+
* @return The JDBC driver class name
950950
*/
951951
@Override
952952
public synchronized String getDriverClassName() {
@@ -956,7 +956,7 @@ public synchronized String getDriverClassName() {
956956
/**
957957
* Gets the value of the {code durationBetweenEvictionRuns} property.
958958
*
959-
* @return the time (in milliseconds) between evictor runs
959+
* @return The time (in milliseconds) between evictor runs
960960
* @see #setDurationBetweenEvictionRuns(Duration)
961961
* @since 2.10.0
962962
*/
@@ -1003,7 +1003,7 @@ public boolean getFastFailValidation() {
10031003
/**
10041004
* Gets the initial size of the connection pool.
10051005
*
1006-
* @return the number of connections created when the pool is initialized
1006+
* @return The number of connections created when the pool is initialized
10071007
*/
10081008
@Override
10091009
public synchronized int getInitialSize() {
@@ -1095,7 +1095,7 @@ public PrintWriter getLogWriter() throws SQLException {
10951095
* Gets the maximum permitted duration of a connection. A value of zero or less indicates an
10961096
* infinite lifetime.
10971097
*
1098-
* @return the maximum permitted duration of a connection.
1098+
* @return The maximum permitted duration of a connection.
10991099
* @since 2.10.0
11001100
*/
11011101
public Duration getMaxConnDuration() {
@@ -1121,7 +1121,7 @@ public long getMaxConnLifetimeMillis() {
11211121
* A negative value indicates that there is no limit
11221122
* </p>
11231123
*
1124-
* @return the maximum number of idle connections
1124+
* @return The maximum number of idle connections
11251125
*/
11261126
@Override
11271127
public synchronized int getMaxIdle() {
@@ -1131,7 +1131,7 @@ public synchronized int getMaxIdle() {
11311131
/**
11321132
* Gets the value of the {@code maxOpenPreparedStatements} property.
11331133
*
1134-
* @return the maximum number of open statements
1134+
* @return The maximum number of open statements
11351135
*/
11361136
@Override
11371137
public synchronized int getMaxOpenPreparedStatements() {
@@ -1144,7 +1144,7 @@ public synchronized int getMaxOpenPreparedStatements() {
11441144
* A negative number means that there is no limit.
11451145
* </p>
11461146
*
1147-
* @return the maximum number of active connections
1147+
* @return The maximum number of active connections
11481148
*/
11491149
@Override
11501150
public synchronized int getMaxTotal() {
@@ -1155,7 +1155,7 @@ public synchronized int getMaxTotal() {
11551155
* Gets the maximum Duration that the pool will wait for a connection to be returned before throwing an exception. A
11561156
* value less than or equal to zero means the pool is set to wait indefinitely.
11571157
*
1158-
* @return the maxWaitDuration property value.
1158+
* @return The maxWaitDuration property value.
11591159
* @since 2.10.0
11601160
*/
11611161
public synchronized Duration getMaxWaitDuration() {
@@ -1166,7 +1166,7 @@ public synchronized Duration getMaxWaitDuration() {
11661166
* Gets the maximum number of milliseconds that the pool will wait for a connection to be returned before
11671167
* throwing an exception. A value less than or equal to zero means the pool is set to wait indefinitely.
11681168
*
1169-
* @return the maxWaitMillis property value.
1169+
* @return The maxWaitMillis property value.
11701170
* @deprecated Use {@link #getMaxWaitDuration()}.
11711171
*/
11721172
@Deprecated
@@ -1178,7 +1178,7 @@ public synchronized long getMaxWaitMillis() {
11781178
/**
11791179
* Gets the {code minEvictableIdleDuration} property.
11801180
*
1181-
* @return the value of the {code minEvictableIdleDuration} property
1181+
* @return The value of the {code minEvictableIdleDuration} property
11821182
* @see #setMinEvictableIdle(Duration)
11831183
* @since 2.10.0
11841184
*/
@@ -1189,7 +1189,7 @@ public synchronized Duration getMinEvictableIdleDuration() {
11891189
/**
11901190
* Gets the {code minEvictableIdleDuration} property.
11911191
*
1192-
* @return the value of the {code minEvictableIdleDuration} property
1192+
* @return The value of the {code minEvictableIdleDuration} property
11931193
* @see #setMinEvictableIdle(Duration)
11941194
* @deprecated Use {@link #getMinEvictableIdleDuration()}.
11951195
*/
@@ -1204,7 +1204,7 @@ public synchronized long getMinEvictableIdleTimeMillis() {
12041204
* are available when the idle object evictor runs. The value of this property has no effect unless
12051205
* {code durationBetweenEvictionRuns} has a positive value.
12061206
*
1207-
* @return the minimum number of idle connections
1207+
* @return The minimum number of idle connections
12081208
* @see GenericObjectPool#getMinIdle()
12091209
*/
12101210
@Override
@@ -1215,7 +1215,7 @@ public synchronized int getMinIdle() {
12151215
/**
12161216
* [Read Only] The current number of active connections that have been allocated from this data source.
12171217
*
1218-
* @return the current number of active connections
1218+
* @return The current number of active connections
12191219
*/
12201220
@Override
12211221
public int getNumActive() {
@@ -1227,7 +1227,7 @@ public int getNumActive() {
12271227
/**
12281228
* [Read Only] The current number of idle connections that are waiting to be allocated from this data source.
12291229
*
1230-
* @return the current number of idle connections
1230+
* @return The current number of idle connections
12311231
*/
12321232
@Override
12331233
public int getNumIdle() {
@@ -1239,7 +1239,7 @@ public int getNumIdle() {
12391239
/**
12401240
* Gets the value of the {code numTestsPerEvictionRun} property.
12411241
*
1242-
* @return the number of objects to examine during idle object evictor runs
1242+
* @return The number of objects to examine during idle object evictor runs
12431243
* @see #setNumTestsPerEvictionRun(int)
12441244
*/
12451245
@Override
@@ -1255,7 +1255,7 @@ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
12551255
/**
12561256
* Gets the password passed to the JDBC driver to establish connections.
12571257
*
1258-
* @return the connection password
1258+
* @return The connection password
12591259
* @deprecated Exposing passwords via JMX is an Information Exposure issue.
12601260
*/
12611261
@Deprecated
@@ -1267,7 +1267,7 @@ public String getPassword() {
12671267
/**
12681268
* Gets the registered JMX ObjectName.
12691269
*
1270-
* @return the registered JMX ObjectName.
1270+
* @return The registered JMX ObjectName.
12711271
*/
12721272
protected ObjectName getRegisteredJmxName() {
12731273
return ObjectNameWrapper.unwrap(registeredJmxObjectName);
@@ -1463,7 +1463,7 @@ public synchronized boolean getTestWhileIdle() {
14631463
/**
14641464
* Gets the value of the {code durationBetweenEvictionRuns} property.
14651465
*
1466-
* @return the time (in milliseconds) between evictor runs
1466+
* @return The time (in milliseconds) between evictor runs
14671467
* @see #setDurationBetweenEvictionRuns(Duration)
14681468
* @deprecated Use {@link #getDurationBetweenEvictionRuns()}.
14691469
*/
@@ -1476,7 +1476,7 @@ public synchronized long getTimeBetweenEvictionRunsMillis() {
14761476
/**
14771477
* Gets the JDBC connection {code connectionString} property.
14781478
*
1479-
* @return the {code connectionString} passed to the JDBC driver to establish connections
1479+
* @return The {code connectionString} passed to the JDBC driver to establish connections
14801480
*/
14811481
@Override
14821482
public synchronized String getUrl() {
@@ -1486,7 +1486,7 @@ public synchronized String getUrl() {
14861486
/**
14871487
* Gets the JDBC connection {code userName} property.
14881488
*
1489-
* @return the {code userName} passed to the JDBC driver to establish connections
1489+
* @return The {code userName} passed to the JDBC driver to establish connections
14901490
* @deprecated Use {@link #getUserName()}.
14911491
*/
14921492
@Deprecated
@@ -1498,7 +1498,7 @@ public String getUsername() {
14981498
/**
14991499
* Gets the validation query used to validate connections before returning them.
15001500
*
1501-
* @return the SQL validation query
1501+
* @return The SQL validation query
15021502
* @see #setValidationQuery(String)
15031503
*/
15041504
@Override
@@ -1509,7 +1509,7 @@ public String getValidationQuery() {
15091509
/**
15101510
* Gets the validation query timeout.
15111511
*
1512-
* @return the timeout in seconds before connection validation queries fail.
1512+
* @return The timeout in seconds before connection validation queries fail.
15131513
* @deprecated Use {@link #getValidationQueryTimeoutDuration()}.
15141514
*/
15151515
@Deprecated
@@ -1521,7 +1521,7 @@ public int getValidationQueryTimeout() {
15211521
/**
15221522
* Gets the validation query timeout.
15231523
*
1524-
* @return the timeout in seconds before connection validation queries fail.
1524+
* @return The timeout in seconds before connection validation queries fail.
15251525
*/
15261526
public Duration getValidationQueryTimeoutDuration() {
15271527
return validationQueryTimeoutDuration;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public boolean getAutoCommit() throws SQLException {
337337
* <li>read-only</li>
338338
* </ul>
339339
*
340-
* @return the state caching flag
340+
* @return The state caching flag
341341
*/
342342
public boolean getCacheState() {
343343
return cacheState;
@@ -415,7 +415,7 @@ public C getDelegate() {
415415
/**
416416
* Gets the delegate connection.
417417
*
418-
* @return the delegate connection.
418+
* @return The delegate connection.
419419
*/
420420
protected final C getDelegateInternal() {
421421
return connection;
@@ -553,7 +553,7 @@ protected void handleException(final SQLException e) throws SQLException {
553553
*
554554
* @param <T> The throwable type.
555555
* @param e The SQLException
556-
* @return the given {@link SQLException}
556+
* @return The given {@link SQLException}
557557
* @since 2.7.0
558558
*/
559559
protected <T extends Throwable> T handleExceptionNoThrow(final T e) {
@@ -599,7 +599,7 @@ public boolean isClosed() throws SQLException {
599599
/**
600600
* Tests the raw internal closed state.
601601
*
602-
* @return the raw internal closed state.
602+
* @return The raw internal closed state.
603603
*/
604604
protected boolean isClosedInternal() {
605605
return closed;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public ResultSet getIndexInfo(final String catalog, final String schema, final S
273273
* This method is useful when you may have nested {@link DelegatingResultSet}s, and you want to make sure to obtain a "genuine" {@link ResultSet}.
274274
* </p>
275275
*
276-
* @return the innermost database meta data.
276+
* @return The innermost database meta data.
277277
*/
278278
public DatabaseMetaData getInnermostDelegate() {
279279
DatabaseMetaData m = databaseMetaData;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public int getHoldability() throws SQLException {
602602
* a "genuine" {@link ResultSet}.
603603
* </p>
604604
*
605-
* @return the innermost delegate.
605+
* @return The innermost delegate.
606606
*/
607607
@SuppressWarnings("resource")
608608
public ResultSet getInnermostDelegate() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public Connection getConnection() throws SQLException {
400400
/**
401401
* Gets the internal connection.
402402
*
403-
* @return the internal connection.
403+
* @return The internal connection.
404404
*/
405405
protected DelegatingConnection<?> getConnectionInternal() {
406406
return connection;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public ListException(final String message, final List<Throwable> exceptionList)
5050
/**
5151
* Gets the list of exceptions.
5252
*
53-
* @return the list of exceptions.
53+
* @return The list of exceptions.
5454
*/
5555
public List<Throwable> getExceptionList() {
5656
return exceptionList;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public Integer getResultSetHoldability() {
596596
* Gets the result set type, one of {@link ResultSet#TYPE_FORWARD_ONLY}, {@link ResultSet#TYPE_SCROLL_INSENSITIVE}, or
597597
* {@link ResultSet#TYPE_SCROLL_SENSITIVE}.
598598
*
599-
* @return the result set type.
599+
* @return The result set type.
600600
*/
601601
public Integer getResultSetType() {
602602
return resultSetType;
@@ -614,7 +614,7 @@ public String getSchema() {
614614
/**
615615
* Gets the SQL statement.
616616
*
617-
* @return the SQL statement.
617+
* @return The SQL statement.
618618
*/
619619
public String getSql() {
620620
return sql;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public ConnectionFactory getConnectionFactory() {
174174
/**
175175
* Gets how many connections were created in {@link #makeObject()}.
176176
*
177-
* @return the connection count.
177+
* @return The connection count.
178178
*/
179179
protected AtomicLong getConnectionIndex() {
180180
return connectionIndex;
@@ -360,7 +360,7 @@ protected int getMaxOpenPreparedStatements() {
360360
/**
361361
* Returns the {@link ObjectPool} in which {@link Connection}s are pooled.
362362
*
363-
* @return the connection pool
363+
* @return The connection pool
364364
*/
365365
public synchronized ObjectPool<PoolableConnection> getPool() {
366366
return pool;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public interface PoolableConnectionMXBean {
9393
/**
9494
* Gets the value of the {@link Object#toString()} method via a bean getter, so it can be read as a property via JMX.
9595
*
96-
* @return the value of the {@link Object#toString()}.
96+
* @return The value of the {@link Object#toString()}.
9797
*/
9898
String getToString();
9999

0 commit comments

Comments
 (0)