| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:53 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class DefaultConnectionPool
|
| </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="class-use/DefaultConnectionPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/xalan/lib/sql/ConnectionPoolManager.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/lib/sql/DTMDocument.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="DefaultConnectionPool.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <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.xalan.lib.sql</FONT>
|
| <BR>
|
| Class DefaultConnectionPool</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.apache.xalan.lib.sql.DefaultConnectionPool</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>DefaultConnectionPool</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A></DL>
|
|
|
| <P>
|
| For internal connectiones, i.e. Connection information supplies in the |
| Stylesheet. The Default Connection Pool will be used.
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
| <!-- ======== 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/xalan/lib/sql/DefaultConnectionPool.html#DefaultConnectionPool()">DefaultConnectionPool</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/xalan/lib/sql/DefaultConnectionPool.html#freeUnused()">freeUnused</A></B>()</CODE>
|
|
|
| <BR>
|
| Go through the connection pool and release any connections |
| that are not InUse;</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/xalan/lib/sql/DefaultConnectionPool.html#getConnection()">getConnection</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/xalan/lib/sql/DefaultConnectionPool.html#hasActiveConnections()">hasActiveConnections</A></B>()</CODE>
|
|
|
| <BR>
|
| Is our ConnectionPool have any connections that are still in Use ??</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/xalan/lib/sql/DefaultConnectionPool.html#initializePool()">initializePool</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/xalan/lib/sql/DefaultConnectionPool.html#isEnabled()">isEnabled</A></B>()</CODE>
|
|
|
| <BR>
|
| Return our current Active state</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/xalan/lib/sql/DefaultConnectionPool.html#releaseConnection(java.sql.Connection)">releaseConnection</A></B>(java.sql.Connection con)</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/xalan/lib/sql/DefaultConnectionPool.html#releaseConnectionOnError(java.sql.Connection)">releaseConnectionOnError</A></B>(java.sql.Connection con)</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/xalan/lib/sql/DefaultConnectionPool.html#setDriver(java.lang.String)">setDriver</A></B>(java.lang.String d)</CODE>
|
|
|
| <BR>
|
| Set the driver call to be used to create connections</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/xalan/lib/sql/DefaultConnectionPool.html#setMinConnections(int)">setMinConnections</A></B>(int n)</CODE>
|
|
|
| <BR>
|
| Override the current number of connections to keep in the 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/xalan/lib/sql/DefaultConnectionPool.html#setPassword(java.lang.String)">setPassword</A></B>(java.lang.String p)</CODE>
|
|
|
| <BR>
|
| Set the password in the property set.</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/xalan/lib/sql/DefaultConnectionPool.html#setPoolEnabled(boolean)">setPoolEnabled</A></B>(boolean flag)</CODE>
|
|
|
| <BR>
|
| The Pool can be Enabled and Disabled.</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/xalan/lib/sql/DefaultConnectionPool.html#setProtocol(java.util.Properties)">setProtocol</A></B>(java.util.Properties p)</CODE>
|
|
|
| <BR>
|
| The Protocol string is used to pass in other connection |
| properties.</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/xalan/lib/sql/DefaultConnectionPool.html#setURL(java.lang.String)">setURL</A></B>(java.lang.String url)</CODE>
|
|
|
| <BR>
|
| Set the url used to connect to the database</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/xalan/lib/sql/DefaultConnectionPool.html#setUser(java.lang.String)">setUser</A></B>(java.lang.String u)</CODE>
|
|
|
| <BR>
|
| Set the user name in the property set</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/xalan/lib/sql/DefaultConnectionPool.html#testConnection()">testConnection</A></B>()</CODE>
|
|
|
| <BR>
|
| Try to aquire a new connection, if it succeeds then return |
| true, else return false.</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>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| toString,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= 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="DefaultConnectionPool()"><!-- --></A><H3>
|
| DefaultConnectionPool</H3>
|
| <PRE>
|
| public <B>DefaultConnectionPool</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="isEnabled()"><!-- --></A><H3>
|
| isEnabled</H3>
|
| <PRE>
|
| public boolean <B>isEnabled</B>()</PRE>
|
| <DL>
|
| <DD>Return our current Active state<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#isEnabled()">isEnabled</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setDriver(java.lang.String)"><!-- --></A><H3>
|
| setDriver</H3>
|
| <PRE>
|
| public void <B>setDriver</B>(java.lang.String d)</PRE>
|
| <DL>
|
| <DD>Set the driver call to be used to create connections<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setDriver(java.lang.String)">setDriver</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>d</CODE> - </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>Set the url used to connect to the database<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setURL(java.lang.String)">setURL</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>url</CODE> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="freeUnused()"><!-- --></A><H3>
|
| freeUnused</H3>
|
| <PRE>
|
| public void <B>freeUnused</B>()</PRE>
|
| <DL>
|
| <DD>Go through the connection pool and release any connections |
| that are not InUse;<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#freeUnused()">freeUnused</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="hasActiveConnections()"><!-- --></A><H3>
|
| hasActiveConnections</H3>
|
| <PRE>
|
| public boolean <B>hasActiveConnections</B>()</PRE>
|
| <DL>
|
| <DD>Is our ConnectionPool have any connections that are still in Use ??<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#hasActiveConnections()">hasActiveConnections</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setPassword(java.lang.String)"><!-- --></A><H3>
|
| setPassword</H3>
|
| <PRE>
|
| public void <B>setPassword</B>(java.lang.String p)</PRE>
|
| <DL>
|
| <DD>Set the password in the property set.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setPassword(java.lang.String)">setPassword</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>p</CODE> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setUser(java.lang.String)"><!-- --></A><H3>
|
| setUser</H3>
|
| <PRE>
|
| public void <B>setUser</B>(java.lang.String u)</PRE>
|
| <DL>
|
| <DD>Set the user name in the property set<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setUser(java.lang.String)">setUser</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>u</CODE> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setProtocol(java.util.Properties)"><!-- --></A><H3>
|
| setProtocol</H3>
|
| <PRE>
|
| public void <B>setProtocol</B>(java.util.Properties p)</PRE>
|
| <DL>
|
| <DD>The Protocol string is used to pass in other connection |
| properties. A properties file is a general purpose container<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setProtocol(java.util.Properties)">setProtocol</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>p</CODE> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setMinConnections(int)"><!-- --></A><H3>
|
| setMinConnections</H3>
|
| <PRE>
|
| public void <B>setMinConnections</B>(int n)</PRE>
|
| <DL>
|
| <DD>Override the current number of connections to keep in the pool. This |
| setting will only have effect on a new pool or when a new connection |
| is requested and there is less connections that this setting.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setMinConnections(int)">setMinConnections</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>n</CODE> - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="testConnection()"><!-- --></A><H3>
|
| testConnection</H3>
|
| <PRE>
|
| public boolean <B>testConnection</B>()</PRE>
|
| <DL>
|
| <DD>Try to aquire a new connection, if it succeeds then return |
| true, else return false. |
| Note: This method will cause the connection pool to be built.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#testConnection()">testConnection</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A></DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="getConnection()"><!-- --></A><H3>
|
| getConnection</H3>
|
| <PRE>
|
| public java.sql.Connection <B>getConnection</B>() |
| throws java.lang.IllegalArgumentException, |
| java.sql.SQLException</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#getConnection()">getConnection</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Returns:</B><DD>Connection<DT><B>Throws:</B><DD>java.sql.SQLException - <DD>java.lang.IllegalArgumentException - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="releaseConnection(java.sql.Connection)"><!-- --></A><H3>
|
| releaseConnection</H3>
|
| <PRE>
|
| public void <B>releaseConnection</B>(java.sql.Connection con) |
| throws java.sql.SQLException</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#releaseConnection(java.sql.Connection)">releaseConnection</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>con</CODE> - <DT><B>Throws:</B><DD>java.sql.SQLException - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="releaseConnectionOnError(java.sql.Connection)"><!-- --></A><H3>
|
| releaseConnectionOnError</H3>
|
| <PRE>
|
| public void <B>releaseConnectionOnError</B>(java.sql.Connection con) |
| throws java.sql.SQLException</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#releaseConnectionOnError(java.sql.Connection)">releaseConnectionOnError</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>con</CODE> - <DT><B>Throws:</B><DD>java.sql.SQLException - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="initializePool()"><!-- --></A><H3>
|
| initializePool</H3>
|
| <PRE>
|
| public void <B>initializePool</B>() |
| throws java.lang.IllegalArgumentException, |
| java.sql.SQLException</PRE>
|
| <DL>
|
| <DD><DL>
|
| <DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - <DD>java.sql.SQLException - </DL>
|
| </DD>
|
| </DL>
|
| <HR>
|
|
|
| <A NAME="setPoolEnabled(boolean)"><!-- --></A><H3>
|
| setPoolEnabled</H3>
|
| <PRE>
|
| public void <B>setPoolEnabled</B>(boolean flag)</PRE>
|
| <DL>
|
| <DD>The Pool can be Enabled and Disabled. Disabling the pool |
| closes all the outstanding Unused connections and any new |
| connections will be closed upon release.<DD><DL>
|
| <DT><B>Specified by: </B><DD><A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html#setPoolEnabled(boolean)">setPoolEnabled</A> in interface <A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPool.html">ConnectionPool</A><DT><B>Parameters:</B><DD><CODE>flag</CODE> - Control the Connection Pool. |
| If it is enabled then Connections will actuall be held |
| around. If disabled then all unused connections will be instantly |
| closed and as connections are released they are closed and removed |
| from the pool.</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="class-use/DefaultConnectionPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/xalan/lib/sql/ConnectionPoolManager.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/lib/sql/DTMDocument.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="DefaultConnectionPool.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|