blob: 70c376a21e568836931d0180774e9d03f70c89ae [file] [log] [blame]
<!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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultConnectionPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPoolManager.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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> &nbsp;
&nbsp;<A HREF="DefaultConnectionPool.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#freeUnused()">freeUnused</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.sql.Connection</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#getConnection()">getConnection</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#hasActiveConnections()">hasActiveConnections</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#initializePool()">initializePool</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#isEnabled()">isEnabled</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return our current Active state</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;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&nbsp;con)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;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&nbsp;con)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;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&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#setMinConnections(int)">setMinConnections</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;p)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#setPoolEnabled(boolean)">setPoolEnabled</A></B>(boolean&nbsp;flag)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;p)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;url)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;u)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/apache/xalan/lib/sql/DefaultConnectionPool.html#testConnection()">testConnection</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Try to aquire a new connection, if it succeeds then return
true, else return false.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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&nbsp;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> - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="setURL(java.lang.String)"><!-- --></A><H3>
setURL</H3>
<PRE>
public void <B>setURL</B>(java.lang.String&nbsp;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> - &nbsp;</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&nbsp;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> - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="setUser(java.lang.String)"><!-- --></A><H3>
setUser</H3>
<PRE>
public void <B>setUser</B>(java.lang.String&nbsp;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> - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="setProtocol(java.util.Properties)"><!-- --></A><H3>
setProtocol</H3>
<PRE>
public void <B>setProtocol</B>(java.util.Properties&nbsp;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> - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="setMinConnections(int)"><!-- --></A><H3>
setMinConnections</H3>
<PRE>
public void <B>setMinConnections</B>(int&nbsp;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> - &nbsp;</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 - &nbsp;<DD>java.lang.IllegalArgumentException - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="releaseConnection(java.sql.Connection)"><!-- --></A><H3>
releaseConnection</H3>
<PRE>
public void <B>releaseConnection</B>(java.sql.Connection&nbsp;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> - &nbsp;<DT><B>Throws:</B><DD>java.sql.SQLException - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="releaseConnectionOnError(java.sql.Connection)"><!-- --></A><H3>
releaseConnectionOnError</H3>
<PRE>
public void <B>releaseConnectionOnError</B>(java.sql.Connection&nbsp;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> - &nbsp;<DT><B>Throws:</B><DD>java.sql.SQLException - &nbsp;</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 - &nbsp;<DD>java.sql.SQLException - &nbsp;</DL>
</DD>
</DL>
<HR>
<A NAME="setPoolEnabled(boolean)"><!-- --></A><H3>
setPoolEnabled</H3>
<PRE>
public void <B>setPoolEnabled</B>(boolean&nbsp;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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultConnectionPool.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/apache/xalan/lib/sql/ConnectionPoolManager.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<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> &nbsp;
&nbsp;<A HREF="DefaultConnectionPool.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
Copyright © 2006 Apache XML Project. All Rights Reserved.
</BODY>
</HTML>