| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Jun 15 16:53:37 PDT 2001 --> |
| <TITLE> |
| Apache Struts API Documentation: Class GenericDataSource |
| </TITLE> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <BODY BGCOLOR="white"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/GenericConnection.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/IteratorAdapter.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="GenericDataSource.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.util</FONT> |
| <BR> |
| Class GenericDataSource</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.util.GenericDataSource</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>javax.sql.DataSource</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT>public class <B>GenericDataSource</B><DT>extends java.lang.Object<DT>implements javax.sql.DataSource</DL> |
| |
| <P> |
| <p>Generic data source implementation of the <code>DataSource</code> |
| interface. <b>WARNING</b> - This implementation does not know how to |
| provide connections with different username/password combinations. |
| Calling this version of the implementation using the |
| getConnection(username,password) signature will throw an exception.</p> |
| |
| <p>The following properties are supported by the standard |
| <code>GenericDataSource</code> implementation:</p> |
| <table> |
| <tr> |
| <th width="15%">Property</th> |
| <th width="85%">Description</th> |
| </tr> |
| <tr> |
| <td align="center">autoCommit</td> |
| <td>Set to <code>true</code> if you want the connections returned to you |
| by calling <code>getConnection()</code> to be configured in |
| "auto-commit after every statement" mode. The default value is |
| <code>true</code>, to conform to JDBC standard conventions.</td> |
| </tr> |
| <tr> |
| <td align="center">description</td> |
| <td>A short textual description of this data source. This property is |
| required by the <code>javax.sql.DataSource</code> interface, but is |
| not used within this implementation.</td> |
| </tr> |
| <tr> |
| <td align="center">driverClass</td> |
| <td>The fully qualified class name of the JDBC driver to be utilized for |
| the connections created by this data source. Consult the |
| documentation for your JDBC driver to identify the value to be |
| configured for this property.</td> |
| </tr> |
| <tr> |
| <td align="center">maxCount</td> |
| <td>The maximum number of JDBC connections that will be created by this |
| data source. This value must be greater than or equal to the value |
| specified for the <code>minCount</count> property.</td> |
| </tr> |
| <tr> |
| <td align="center">minCount</td> |
| <td>The minimum number of JDBC connections to establish when this data |
| source is first opened. This value must be less than or equal to the |
| value specified for the <code>maxCount</code> property.</td> |
| </tr> |
| <tr> |
| <td align="center">password</td> |
| <td>The database password used to establish the connections created by |
| this connection pool, in conjunction with the username specified in |
| the <code>user</code> property.</td> |
| </tr> |
| <tr> |
| <td align="center">pingCommand</td> |
| <td>A non-query SQL command that, if specified, will be executed before |
| a connection is returned by a call to <code>getConnection()</code>. |
| If any SQLException is thrown by the execution of this statement, |
| it is assumed that this connection is stale and it will be discarded. |
| Because this happens on every connection allocation, you should ensure |
| that the statement executes very quickly.</td> |
| </tr> |
| <tr> |
| <td align="center">pingQuery</td> |
| <td>A query SQL command (i.e. a SELECT) that, if specified, will be |
| executed before a connection is returned by a call to |
| <code>getConnection()</code>. If any SQLException is thrown by the |
| execution of this query (or by the subsequent processing of the |
| entire returned <code>ResultSet</code>), it is assumed that this |
| connection is stale and it will be discarded. Because this happens |
| on every connection allocation, you should ensure that the |
| statement executes very quickly.</td> |
| </tr> |
| <tr> |
| <td align="center">readOnly</td> |
| <td>Set to <code>true</code> if you want the connections returned to you |
| by calling <code>getConnection()</code> to be configured for read only |
| operations. This can result in more efficient database access, |
| because the database will know it does not need to retain undo logs |
| for rolling back the transaction. The default value is |
| <code>false</code>.</td> |
| </tr> |
| <tr> |
| <td align="center">url</td> |
| <td>The connection URL to be passed to our JDBC driver when establishing |
| a new connection. The value specified typically starts with |
| <code>jdbc:</code>, and includes a reference to the host (and, |
| optionally, the port number) at which the database server is listening |
| for connections, plus the name of the database to be opened. Consult |
| the documentation for your JDBC driver to identify the value to be |
| configured for this property.</td> |
| </tr> |
| <tr> |
| <td align="center">user</td> |
| <td>The database username used to establish the connections created by |
| this connection pool, in conjunction with the password specified in |
| the <code>password</code> property.</td> |
| </tr> |
| </table> |
| |
| <p>In addition, you can add to the set of <code>Properties</code> passed to |
| the JDBC driver by calling <code>addProperty()</code>.</p> |
| <P> |
| <DL> |
| <DT><B>Version: </B><DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author: </B><DD>Craig R. McClanahan, Ted Husted</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- ======== INNER CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#activeCount">activeCount</A></B></CODE> |
| |
| <BR> |
| The number of connections that have been created by this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#autoCommit">autoCommit</A></B></CODE> |
| |
| <BR> |
| The default auto-commit state for newly created connections.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#closed">closed</A></B></CODE> |
| |
| <BR> |
| Has this data source been closed?</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.LinkedList</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#connections">connections</A></B></CODE> |
| |
| <BR> |
| The list of Connections (wrapped in our associated wrapper class) that |
| have been created but are not currently in use.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#debug">debug</A></B></CODE> |
| |
| <BR> |
| The debugging detail level for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#description">description</A></B></CODE> |
| |
| <BR> |
| The description of this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.sql.Driver</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#driver">driver</A></B></CODE> |
| |
| <BR> |
| The JDBC driver that we use as a connection factory.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#driverClass">driverClass</A></B></CODE> |
| |
| <BR> |
| The Java class name of the JDBC driver to use.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#loginTimeout">loginTimeout</A></B></CODE> |
| |
| <BR> |
| The login timeout for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.io.PrintWriter</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#logWriter">logWriter</A></B></CODE> |
| |
| <BR> |
| The log writer for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#maxCount">maxCount</A></B></CODE> |
| |
| <BR> |
| The maximum number of connections to be created.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#minCount">minCount</A></B></CODE> |
| |
| <BR> |
| The minimum number of connections to be created.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#password">password</A></B></CODE> |
| |
| <BR> |
| The database password for use in establishing a connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#pingCommand">pingCommand</A></B></CODE> |
| |
| <BR> |
| The non-query SQL command used to ping an allocated connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#pingQuery">pingQuery</A></B></CODE> |
| |
| <BR> |
| The query SQL command used to ping an allocated connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.Properties</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#properties">properties</A></B></CODE> |
| |
| <BR> |
| The connection properties for use in establishing connections.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#readOnly">readOnly</A></B></CODE> |
| |
| <BR> |
| The default read-only state for newly created connections.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#SQLEXCEPTION_GETCONNECTION">SQLEXCEPTION_GETCONNECTION</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#url">url</A></B></CODE> |
| |
| <BR> |
| The JDBC URL for the database connection to be opened.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#useCount">useCount</A></B></CODE> |
| |
| <BR> |
| The number of connections created by this data source that are |
| currently in use.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#user">user</A></B></CODE> |
| |
| <BR> |
| The database username for use in establishing a connection.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#GenericDataSource()">GenericDataSource</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#addProperty(java.lang.String, java.lang.String)">addProperty</A></B>(java.lang.String name, |
| java.lang.String value)</CODE> |
| |
| <BR> |
| Add a generic property to the list of connection properties to be used.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#close()">close</A></B>()</CODE> |
| |
| <BR> |
| Close all connections that have been created by this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.sql.Connection</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#createConnection()">createConnection</A></B>()</CODE> |
| |
| <BR> |
| Create, configure, and return a new JDBC Connection that has been |
| wrapped in our corresponding wrapper.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getActiveCount()">getActiveCount</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getAutoCommit()">getAutoCommit</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.Connection</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getConnection()">getConnection</A></B>()</CODE> |
| |
| <BR> |
| Attempt to establish a database connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.Connection</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getConnection(java.lang.String, java.lang.String)">getConnection</A></B>(java.lang.String username, |
| java.lang.String password)</CODE> |
| |
| <BR> |
| Attempt to establish a database connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getDebug()">getDebug</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getDescription()">getDescription</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getDriverClass()">getDriverClass</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getLoginTimeout()">getLoginTimeout</A></B>()</CODE> |
| |
| <BR> |
| Return the login timeout for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.io.PrintWriter</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getLogWriter()">getLogWriter</A></B>()</CODE> |
| |
| <BR> |
| Return the log writer for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getMaxCount()">getMaxCount</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getMinCount()">getMinCount</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getPassword()">getPassword</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getPingCommand()">getPingCommand</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getPingQuery()">getPingQuery</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getReadOnly()">getReadOnly</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getUrl()">getUrl</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getUseCount()">getUseCount</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#getUser()">getUser</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#log(java.lang.String)">log</A></B>(java.lang.String message)</CODE> |
| |
| <BR> |
| Log the specified message to our log writer, if we have one.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#log(java.lang.String, java.lang.Throwable)">log</A></B>(java.lang.String message, |
| java.lang.Throwable throwable)</CODE> |
| |
| <BR> |
| Log the specified message and exception to our log writer, if we |
| have one.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#open()">open</A></B>()</CODE> |
| |
| <BR> |
| Open the initial connections that are appropriate for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#ping(java.sql.Connection)">ping</A></B>(java.sql.Connection conn)</CODE> |
| |
| <BR> |
| Perform any configured <code>pingCommand</code> and/or |
| <code>pingQuery</code> on the specified connection, returning any |
| SQLException that is encountered along the way.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>(package private) void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#returnConnection(org.apache.struts.util.GenericConnection)">returnConnection</A></B>(<A HREF="../../../../org/apache/struts/util/GenericConnection.html">GenericConnection</A> conn)</CODE> |
| |
| <BR> |
| Return this connection to the available connection pool.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setAutoCommit(boolean)">setAutoCommit</A></B>(boolean autoCommit)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setDebug(int)">setDebug</A></B>(int debug)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setDescription(java.lang.String)">setDescription</A></B>(java.lang.String description)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setDriverClass(java.lang.String)">setDriverClass</A></B>(java.lang.String driverClass)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setLoginTimeout(int)">setLoginTimeout</A></B>(int loginTimeout)</CODE> |
| |
| <BR> |
| Set the login timeout for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setLogWriter(java.io.PrintWriter)">setLogWriter</A></B>(java.io.PrintWriter logWriter)</CODE> |
| |
| <BR> |
| Set the log writer for this data source.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setMaxCount(int)">setMaxCount</A></B>(int maxCount)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setMinCount(int)">setMinCount</A></B>(int minCount)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setPassword(java.lang.String)">setPassword</A></B>(java.lang.String password)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setPingCommand(java.lang.String)">setPingCommand</A></B>(java.lang.String pingCommand)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setPingQuery(java.lang.String)">setPingQuery</A></B>(java.lang.String pingQuery)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean readOnly)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setUrl(java.lang.String)">setUrl</A></B>(java.lang.String url)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#setUser(java.lang.String)">setUser</A></B>(java.lang.String user)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericDataSource.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| Return a string representation of this component.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.lang.Object</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="SQLEXCEPTION_GETCONNECTION"><!-- --></A><H3> |
| SQLEXCEPTION_GETCONNECTION</H3> |
| <PRE> |
| private static final java.lang.String <B>SQLEXCEPTION_GETCONNECTION</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="closed"><!-- --></A><H3> |
| closed</H3> |
| <PRE> |
| protected boolean <B>closed</B></PRE> |
| <DL> |
| <DD>Has this data source been closed?</DL> |
| <HR> |
| |
| <A NAME="connections"><!-- --></A><H3> |
| connections</H3> |
| <PRE> |
| protected java.util.LinkedList <B>connections</B></PRE> |
| <DL> |
| <DD>The list of Connections (wrapped in our associated wrapper class) that |
| have been created but are not currently in use.</DL> |
| <HR> |
| |
| <A NAME="driver"><!-- --></A><H3> |
| driver</H3> |
| <PRE> |
| protected java.sql.Driver <B>driver</B></PRE> |
| <DL> |
| <DD>The JDBC driver that we use as a connection factory.</DL> |
| <HR> |
| |
| <A NAME="loginTimeout"><!-- --></A><H3> |
| loginTimeout</H3> |
| <PRE> |
| protected int <B>loginTimeout</B></PRE> |
| <DL> |
| <DD>The login timeout for this data source.</DL> |
| <HR> |
| |
| <A NAME="logWriter"><!-- --></A><H3> |
| logWriter</H3> |
| <PRE> |
| protected java.io.PrintWriter <B>logWriter</B></PRE> |
| <DL> |
| <DD>The log writer for this data source.</DL> |
| <HR> |
| |
| <A NAME="activeCount"><!-- --></A><H3> |
| activeCount</H3> |
| <PRE> |
| protected int <B>activeCount</B></PRE> |
| <DL> |
| <DD>The number of connections that have been created by this data source.</DL> |
| <HR> |
| |
| <A NAME="autoCommit"><!-- --></A><H3> |
| autoCommit</H3> |
| <PRE> |
| protected boolean <B>autoCommit</B></PRE> |
| <DL> |
| <DD>The default auto-commit state for newly created connections.</DL> |
| <HR> |
| |
| <A NAME="debug"><!-- --></A><H3> |
| debug</H3> |
| <PRE> |
| protected int <B>debug</B></PRE> |
| <DL> |
| <DD>The debugging detail level for this data source.</DL> |
| <HR> |
| |
| <A NAME="description"><!-- --></A><H3> |
| description</H3> |
| <PRE> |
| protected java.lang.String <B>description</B></PRE> |
| <DL> |
| <DD>The description of this data source.</DL> |
| <HR> |
| |
| <A NAME="driverClass"><!-- --></A><H3> |
| driverClass</H3> |
| <PRE> |
| protected java.lang.String <B>driverClass</B></PRE> |
| <DL> |
| <DD>The Java class name of the JDBC driver to use.</DL> |
| <HR> |
| |
| <A NAME="maxCount"><!-- --></A><H3> |
| maxCount</H3> |
| <PRE> |
| protected int <B>maxCount</B></PRE> |
| <DL> |
| <DD>The maximum number of connections to be created.</DL> |
| <HR> |
| |
| <A NAME="minCount"><!-- --></A><H3> |
| minCount</H3> |
| <PRE> |
| protected int <B>minCount</B></PRE> |
| <DL> |
| <DD>The minimum number of connections to be created.</DL> |
| <HR> |
| |
| <A NAME="password"><!-- --></A><H3> |
| password</H3> |
| <PRE> |
| protected java.lang.String <B>password</B></PRE> |
| <DL> |
| <DD>The database password for use in establishing a connection.</DL> |
| <HR> |
| |
| <A NAME="pingCommand"><!-- --></A><H3> |
| pingCommand</H3> |
| <PRE> |
| protected java.lang.String <B>pingCommand</B></PRE> |
| <DL> |
| <DD>The non-query SQL command used to ping an allocated connection.</DL> |
| <HR> |
| |
| <A NAME="pingQuery"><!-- --></A><H3> |
| pingQuery</H3> |
| <PRE> |
| protected java.lang.String <B>pingQuery</B></PRE> |
| <DL> |
| <DD>The query SQL command used to ping an allocated connection.</DL> |
| <HR> |
| |
| <A NAME="properties"><!-- --></A><H3> |
| properties</H3> |
| <PRE> |
| protected java.util.Properties <B>properties</B></PRE> |
| <DL> |
| <DD>The connection properties for use in establishing connections.</DL> |
| <HR> |
| |
| <A NAME="readOnly"><!-- --></A><H3> |
| readOnly</H3> |
| <PRE> |
| protected boolean <B>readOnly</B></PRE> |
| <DL> |
| <DD>The default read-only state for newly created connections.</DL> |
| <HR> |
| |
| <A NAME="url"><!-- --></A><H3> |
| url</H3> |
| <PRE> |
| protected java.lang.String <B>url</B></PRE> |
| <DL> |
| <DD>The JDBC URL for the database connection to be opened.</DL> |
| <HR> |
| |
| <A NAME="useCount"><!-- --></A><H3> |
| useCount</H3> |
| <PRE> |
| protected int <B>useCount</B></PRE> |
| <DL> |
| <DD>The number of connections created by this data source that are |
| currently in use.</DL> |
| <HR> |
| |
| <A NAME="user"><!-- --></A><H3> |
| user</H3> |
| <PRE> |
| protected java.lang.String <B>user</B></PRE> |
| <DL> |
| <DD>The database username for use in establishing a connection.</DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="GenericDataSource()"><!-- --></A><H3> |
| GenericDataSource</H3> |
| <PRE> |
| public <B>GenericDataSource</B>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="addProperty(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| addProperty</H3> |
| <PRE> |
| public void <B>addProperty</B>(java.lang.String name, |
| java.lang.String value)</PRE> |
| <DL> |
| <DD>Add a generic property to the list of connection properties to be used.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the generic property<DD><CODE>value</CODE> - Corresponding generic property value</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getActiveCount()"><!-- --></A><H3> |
| getActiveCount</H3> |
| <PRE> |
| public int <B>getActiveCount</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getAutoCommit()"><!-- --></A><H3> |
| getAutoCommit</H3> |
| <PRE> |
| public boolean <B>getAutoCommit</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setAutoCommit(boolean)"><!-- --></A><H3> |
| setAutoCommit</H3> |
| <PRE> |
| public void <B>setAutoCommit</B>(boolean autoCommit)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDebug()"><!-- --></A><H3> |
| getDebug</H3> |
| <PRE> |
| public int <B>getDebug</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDebug(int)"><!-- --></A><H3> |
| setDebug</H3> |
| <PRE> |
| public void <B>setDebug</B>(int debug)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDescription()"><!-- --></A><H3> |
| getDescription</H3> |
| <PRE> |
| public java.lang.String <B>getDescription</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDescription(java.lang.String)"><!-- --></A><H3> |
| setDescription</H3> |
| <PRE> |
| public void <B>setDescription</B>(java.lang.String description)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDriverClass()"><!-- --></A><H3> |
| getDriverClass</H3> |
| <PRE> |
| public java.lang.String <B>getDriverClass</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDriverClass(java.lang.String)"><!-- --></A><H3> |
| setDriverClass</H3> |
| <PRE> |
| public void <B>setDriverClass</B>(java.lang.String driverClass)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMaxCount()"><!-- --></A><H3> |
| getMaxCount</H3> |
| <PRE> |
| public int <B>getMaxCount</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setMaxCount(int)"><!-- --></A><H3> |
| setMaxCount</H3> |
| <PRE> |
| public void <B>setMaxCount</B>(int maxCount)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMinCount()"><!-- --></A><H3> |
| getMinCount</H3> |
| <PRE> |
| public int <B>getMinCount</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setMinCount(int)"><!-- --></A><H3> |
| setMinCount</H3> |
| <PRE> |
| public void <B>setMinCount</B>(int minCount)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPassword()"><!-- --></A><H3> |
| getPassword</H3> |
| <PRE> |
| public java.lang.String <B>getPassword</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPassword(java.lang.String)"><!-- --></A><H3> |
| setPassword</H3> |
| <PRE> |
| public void <B>setPassword</B>(java.lang.String password)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPingCommand()"><!-- --></A><H3> |
| getPingCommand</H3> |
| <PRE> |
| public java.lang.String <B>getPingCommand</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPingCommand(java.lang.String)"><!-- --></A><H3> |
| setPingCommand</H3> |
| <PRE> |
| public void <B>setPingCommand</B>(java.lang.String pingCommand)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPingQuery()"><!-- --></A><H3> |
| getPingQuery</H3> |
| <PRE> |
| public java.lang.String <B>getPingQuery</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPingQuery(java.lang.String)"><!-- --></A><H3> |
| setPingQuery</H3> |
| <PRE> |
| public void <B>setPingQuery</B>(java.lang.String pingQuery)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getReadOnly()"><!-- --></A><H3> |
| getReadOnly</H3> |
| <PRE> |
| public boolean <B>getReadOnly</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setReadOnly(boolean)"><!-- --></A><H3> |
| setReadOnly</H3> |
| <PRE> |
| public void <B>setReadOnly</B>(boolean readOnly)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUrl()"><!-- --></A><H3> |
| getUrl</H3> |
| <PRE> |
| public java.lang.String <B>getUrl</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setUrl(java.lang.String)"><!-- --></A><H3> |
| setUrl</H3> |
| <PRE> |
| public void <B>setUrl</B>(java.lang.String url)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUseCount()"><!-- --></A><H3> |
| getUseCount</H3> |
| <PRE> |
| public int <B>getUseCount</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUser()"><!-- --></A><H3> |
| getUser</H3> |
| <PRE> |
| public java.lang.String <B>getUser</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setUser(java.lang.String)"><!-- --></A><H3> |
| setUser</H3> |
| <PRE> |
| public void <B>setUser</B>(java.lang.String user)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getConnection()"><!-- --></A><H3> |
| getConnection</H3> |
| <PRE> |
| public java.sql.Connection <B>getConnection</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Attempt to establish a database connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getConnection</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getConnection(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| getConnection</H3> |
| <PRE> |
| public java.sql.Connection <B>getConnection</B>(java.lang.String username, |
| java.lang.String password) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Attempt to establish a database connection. <b>WARNING</b> - The |
| specified username and password are not supported by this |
| implementation.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getConnection</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>username</CODE> - Database username for this connection<DD><CODE>password</CODE> - Database password for this connection<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLoginTimeout()"><!-- --></A><H3> |
| getLoginTimeout</H3> |
| <PRE> |
| public int <B>getLoginTimeout</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return the login timeout for this data source.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getLoginTimeout</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLogWriter()"><!-- --></A><H3> |
| getLogWriter</H3> |
| <PRE> |
| public java.io.PrintWriter <B>getLogWriter</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return the log writer for this data source.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getLogWriter</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setLoginTimeout(int)"><!-- --></A><H3> |
| setLoginTimeout</H3> |
| <PRE> |
| public void <B>setLoginTimeout</B>(int loginTimeout) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Set the login timeout for this data source.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setLoginTimeout</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>loginTimeout</CODE> - The new login timeout<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setLogWriter(java.io.PrintWriter)"><!-- --></A><H3> |
| setLogWriter</H3> |
| <PRE> |
| public void <B>setLogWriter</B>(java.io.PrintWriter logWriter) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Set the log writer for this data source.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setLogWriter</CODE> in interface <CODE>javax.sql.DataSource</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>logWriter</CODE> - The new log writer<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="close()"><!-- --></A><H3> |
| close</H3> |
| <PRE> |
| public void <B>close</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Close all connections that have been created by this data source.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="open()"><!-- --></A><H3> |
| open</H3> |
| <PRE> |
| public void <B>open</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Open the initial connections that are appropriate for this data source.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public java.lang.String <B>toString</B>()</PRE> |
| <DL> |
| <DD>Return a string representation of this component.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createConnection()"><!-- --></A><H3> |
| createConnection</H3> |
| <PRE> |
| protected java.sql.Connection <B>createConnection</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Create, configure, and return a new JDBC Connection that has been |
| wrapped in our corresponding wrapper.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="log(java.lang.String)"><!-- --></A><H3> |
| log</H3> |
| <PRE> |
| protected void <B>log</B>(java.lang.String message)</PRE> |
| <DL> |
| <DD>Log the specified message to our log writer, if we have one.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="log(java.lang.String, java.lang.Throwable)"><!-- --></A><H3> |
| log</H3> |
| <PRE> |
| protected void <B>log</B>(java.lang.String message, |
| java.lang.Throwable throwable)</PRE> |
| <DL> |
| <DD>Log the specified message and exception to our log writer, if we |
| have one.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged<DD><CODE>throwable</CODE> - The exception to be logged</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="ping(java.sql.Connection)"><!-- --></A><H3> |
| ping</H3> |
| <PRE> |
| protected void <B>ping</B>(java.sql.Connection conn) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Perform any configured <code>pingCommand</code> and/or |
| <code>pingQuery</code> on the specified connection, returning any |
| SQLException that is encountered along the way.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>conn</CODE> - The connection to be pinged</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="returnConnection(org.apache.struts.util.GenericConnection)"><!-- --></A><H3> |
| returnConnection</H3> |
| <PRE> |
| void <B>returnConnection</B>(<A HREF="../../../../org/apache/struts/util/GenericConnection.html">GenericConnection</A> conn)</PRE> |
| <DL> |
| <DD>Return this connection to the available connection pool.<DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>conn</CODE> - The connection being returned</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/GenericConnection.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/IteratorAdapter.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="GenericDataSource.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2001 - Apache Software Foundation |
| </BODY> |
| </HTML> |