commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp PoolableConnectionFactory.java
Date Wed, 12 May 2004 18:28:59 GMT
dirkv       2004/05/12 11:28:59

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        PoolableConnectionFactory.java
  Log:
  Bugzilla Bug 28893: PoolableConnectionFactory has incomplete javadoc on validationQuery
  - update javadoc
  (reported by Hontvari Jozsef)
  
  Revision  Changes    Path
  1.21      +8 -8      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
  
  Index: PoolableConnectionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- PoolableConnectionFactory.java	29 Feb 2004 20:18:25 -0000	1.20
  +++ PoolableConnectionFactory.java	12 May 2004 18:28:58 -0000	1.21
  @@ -38,7 +38,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        */
  @@ -57,7 +57,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        * @param defaultTransactionIsolation the default "Transaction Isolation" setting for
returned {@link Connection}s
  @@ -78,7 +78,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        * @param config the AbandonedConfig if tracing SQL objects
  @@ -108,7 +108,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        * @param defaultTransactionIsolation the default "Transaction Isolation" setting for
returned {@link Connection}s
  @@ -141,7 +141,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        * @param defaultTransactionIsolation the default "Transaction Isolation" setting for
returned {@link Connection}s
  @@ -177,7 +177,7 @@
        * @param connFactory the {@link ConnectionFactory} from which to obtain base {@link
Connection}s
        * @param pool the {@link ObjectPool} in which to pool those {@link Connection}s
        * @param stmtPoolFactory the {@link KeyedObjectPoolFactory} to use to create {@link
KeyedObjectPool}s for pooling {@link java.sql.PreparedStatement}s, or <tt>null</tt>
to disable {@link java.sql.PreparedStatement} pooling
  -     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. May be <tt>null</tt>
  +     * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.  Should return at least one row. Using <tt>null</tt> turns off validation.
        * @param defaultReadOnly the default "read only" setting for borrowed {@link Connection}s
        * @param defaultAutoCommit the default "auto commit" setting for returned {@link Connection}s
        * @param defaultTransactionIsolation the default "Transaction Isolation" setting for
returned {@link Connection}s
  @@ -218,7 +218,7 @@
       /**
        * Sets the query I use to {@link #validateObject validate} {@link Connection}s.
        * Should return at least one row.
  -     * May be <tt>null</tt>
  +     * Using <tt>null</tt> turns off validation.
        * @param validationQuery a query to use to {@link #validateObject validate} {@link
Connection}s.
        */
       synchronized public void setValidationQuery(String validationQuery) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message