You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2009/03/19 22:27:13 UTC
svn commit: r756211 -
/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java
Author: psteitz
Date: Thu Mar 19 21:27:13 2009
New Revision: 756211
URL: http://svn.apache.org/viewvc?rev=756211&view=rev
Log:
Javadoc only. Added setter disclaimer to new setConnectionInitSqls method.
Modified:
commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java
Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java?rev=756211&r1=756210&r2=756211&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSource.java Thu Mar 19 21:27:13 2009
@@ -840,8 +840,14 @@
/**
* Sets the list of SQL statements to be executed when a physical
* connection is first created.
+ * <p>
+ * Note: this method currently has no effect once the pool has been
+ * initialized. The pool is initialized the first time one of the
+ * following methods is invoked: <code>getConnection, setLogwriter,
+ * setLoginTimeout, getLoginTimeout, getLogWriter.</code></p>
*
- * @param connectionInitSqls
+ * @param connectionInitSqls Collection of SQL statements to execute
+ * on connection creation
*/
public synchronized void setConnectionInitSqls(Collection connectionInitSqls) {
this.connectionInitSqls = null;