| <!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 GenericConnection |
| </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/FastTreeMap.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/GenericDataSource.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="GenericConnection.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 GenericConnection</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.util.GenericConnection</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.sql.Connection</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT>public class <B>GenericConnection</B><DT>extends java.lang.Object<DT>implements java.sql.Connection</DL> |
| |
| <P> |
| Generic wrapper implementation of a <strong>Connection</strong> that |
| works with <code>GenericDataSource</code> to wrap connections for any |
| JDBC driver. |
| <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 boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#autoCommit">autoCommit</A></B></CODE> |
| |
| <BR> |
| The initial auto-commit state to which we should return after release.</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/GenericConnection.html#catalog">catalog</A></B></CODE> |
| |
| <BR> |
| The initial catalog to which we should return after release.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#closed">closed</A></B></CODE> |
| |
| <BR> |
| The closed flag for this wrapped connection.</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/GenericConnection.html#conn">conn</A></B></CODE> |
| |
| <BR> |
| The Connection that is being wrapped.</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/GenericConnection.html#level">level</A></B></CODE> |
| |
| <BR> |
| The initial transaction isolation level to which we should return |
| after release.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.Map</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#map">map</A></B></CODE> |
| |
| <BR> |
| The initial type map to which we should return after release.</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/GenericConnection.html#readOnly">readOnly</A></B></CODE> |
| |
| <BR> |
| The initial read-only state to which we should return after release.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/util/GenericDataSource.html">GenericDataSource</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#source">source</A></B></CODE> |
| |
| <BR> |
| The GenericDataSource that owns this connection.</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/GenericConnection.html#SQLEXCEPTION_CLOSED">SQLEXCEPTION_CLOSED</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_java.sql.Connection"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Fields inherited from interface java.sql.Connection</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE</CODE></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/GenericConnection.html#GenericConnection(org.apache.struts.util.GenericDataSource, java.sql.Connection, boolean, boolean)">GenericConnection</A></B>(<A HREF="../../../../org/apache/struts/util/GenericDataSource.html">GenericDataSource</A> source, |
| java.sql.Connection conn, |
| boolean autoCommit, |
| boolean readOnly)</CODE> |
| |
| <BR> |
| Construct a new GenericConnection wrapping the specified connection.</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/GenericConnection.html#clearWarnings()">clearWarnings</A></B>()</CODE> |
| |
| <BR> |
| Clear all warnings reported for this Connection.</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/GenericConnection.html#close()">close</A></B>()</CODE> |
| |
| <BR> |
| Return this wrapped Connection to our data source 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/GenericConnection.html#commit()">commit</A></B>()</CODE> |
| |
| <BR> |
| Make all changes made since the previous commit or rollback |
| permanent, and releases any database locks currently held.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.Statement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#createStatement()">createStatement</A></B>()</CODE> |
| |
| <BR> |
| Create a <code>Statement</code> for sending SQL statements to the |
| database.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.Statement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#createStatement(int, int)">createStatement</A></B>(int resultSetType, |
| int resultSetConcurrency)</CODE> |
| |
| <BR> |
| (JDBC 2.0) Create a Statement that will create a ResultSet of the |
| specified type and concurrency.</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/GenericConnection.html#getAutoCommit()">getAutoCommit</A></B>()</CODE> |
| |
| <BR> |
| Return the current auto-commit state.</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/GenericConnection.html#getCatalog()">getCatalog</A></B>()</CODE> |
| |
| <BR> |
| Return the current catalog name for this Connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>(package private) java.sql.Connection</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#getConnection()">getConnection</A></B>()</CODE> |
| |
| <BR> |
| Return the actual connection that we are wrapping.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>(package private) javax.sql.DataSource</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#getDataSource()">getDataSource</A></B>()</CODE> |
| |
| <BR> |
| Return the data source that owns this connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.DatabaseMetaData</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#getMetaData()">getMetaData</A></B>()</CODE> |
| |
| <BR> |
| Get the metadata regarding this connection's database.</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/GenericConnection.html#getTransactionIsolation()">getTransactionIsolation</A></B>()</CODE> |
| |
| <BR> |
| Return this Connection's current transaction isolation level.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Map</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#getTypeMap()">getTypeMap</A></B>()</CODE> |
| |
| <BR> |
| (JDBC 2.0) Return the type map for this connection.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.SQLWarning</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#getWarnings()">getWarnings</A></B>()</CODE> |
| |
| <BR> |
| Return the first warning reported by calls to this Connection.</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/GenericConnection.html#isClosed()">isClosed</A></B>()</CODE> |
| |
| <BR> |
| Return <code>true</code> if this Connection is closed.</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/GenericConnection.html#isReadOnly()">isReadOnly</A></B>()</CODE> |
| |
| <BR> |
| Return <code>true</code> if this Connection is in read-only mode.</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/GenericConnection.html#nativeSQL(java.lang.String)">nativeSQL</A></B>(java.lang.String sql)</CODE> |
| |
| <BR> |
| Convert the given SQL statement into the system's native SQL grammer.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.CallableStatement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#prepareCall(java.lang.String)">prepareCall</A></B>(java.lang.String sql)</CODE> |
| |
| <BR> |
| Create a <code>CallableStatement</code> object for calling database |
| stored procedures.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.CallableStatement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#prepareCall(java.lang.String, int, int)">prepareCall</A></B>(java.lang.String sql, |
| int resultSetType, |
| int resultSetConcurrency)</CODE> |
| |
| <BR> |
| (JDBC 2.0) Create a CallableStatement object that will generate |
| ResultSet objects with the given type and concurrency.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.PreparedStatement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#prepareStatement(java.lang.String)">prepareStatement</A></B>(java.lang.String sql)</CODE> |
| |
| <BR> |
| Create a <code>PreparedStatement</code> object for sending |
| parameterized SQL statements to the database.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.sql.PreparedStatement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/GenericConnection.html#prepareStatement(java.lang.String, int, int)">prepareStatement</A></B>(java.lang.String sql, |
| int resultSetType, |
| int resultSetConcurrency)</CODE> |
| |
| <BR> |
| (JDBC 2.0) Create a PreparedStatement object that will generate |
| ResultSet objects with the given type and concurrency.</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/GenericConnection.html#rollback()">rollback</A></B>()</CODE> |
| |
| <BR> |
| Drop all changes made since the previous commit or rollback.</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/GenericConnection.html#setAutoCommit(boolean)">setAutoCommit</A></B>(boolean autoCommit)</CODE> |
| |
| <BR> |
| Sets this connection's auto-commit mode.</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/GenericConnection.html#setCatalog(java.lang.String)">setCatalog</A></B>(java.lang.String catalog)</CODE> |
| |
| <BR> |
| Set the catalog name for this Connection.</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/GenericConnection.html#setClosed(boolean)">setClosed</A></B>(boolean closed)</CODE> |
| |
| <BR> |
| Set the closed status of this connection wrapper.</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/GenericConnection.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean readOnly)</CODE> |
| |
| <BR> |
| Set the read-only mode of this connection.</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/GenericConnection.html#setTransactionIsolation(int)">setTransactionIsolation</A></B>(int level)</CODE> |
| |
| <BR> |
| Set the transaction isolation level for this Connection.</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/GenericConnection.html#setTypeMap(java.util.Map)">setTypeMap</A></B>(java.util.Map map)</CODE> |
| |
| <BR> |
| (JDBC 2.0) Set the type map for this connection.</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, toString, 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_CLOSED"><!-- --></A><H3> |
| SQLEXCEPTION_CLOSED</H3> |
| <PRE> |
| private static final java.lang.String <B>SQLEXCEPTION_CLOSED</B></PRE> |
| <DL> |
| </DL> |
| <HR> |
| |
| <A NAME="autoCommit"><!-- --></A><H3> |
| autoCommit</H3> |
| <PRE> |
| protected boolean <B>autoCommit</B></PRE> |
| <DL> |
| <DD>The initial auto-commit state to which we should return after release.</DL> |
| <HR> |
| |
| <A NAME="catalog"><!-- --></A><H3> |
| catalog</H3> |
| <PRE> |
| protected java.lang.String <B>catalog</B></PRE> |
| <DL> |
| <DD>The initial catalog to which we should return after release.</DL> |
| <HR> |
| |
| <A NAME="closed"><!-- --></A><H3> |
| closed</H3> |
| <PRE> |
| private boolean <B>closed</B></PRE> |
| <DL> |
| <DD>The closed flag for this wrapped connection.</DL> |
| <HR> |
| |
| <A NAME="conn"><!-- --></A><H3> |
| conn</H3> |
| <PRE> |
| protected java.sql.Connection <B>conn</B></PRE> |
| <DL> |
| <DD>The Connection that is being wrapped.</DL> |
| <HR> |
| |
| <A NAME="level"><!-- --></A><H3> |
| level</H3> |
| <PRE> |
| protected int <B>level</B></PRE> |
| <DL> |
| <DD>The initial transaction isolation level to which we should return |
| after release.</DL> |
| <HR> |
| |
| <A NAME="map"><!-- --></A><H3> |
| map</H3> |
| <PRE> |
| protected java.util.Map <B>map</B></PRE> |
| <DL> |
| <DD>The initial type map to which we should return after release.</DL> |
| <HR> |
| |
| <A NAME="readOnly"><!-- --></A><H3> |
| readOnly</H3> |
| <PRE> |
| protected boolean <B>readOnly</B></PRE> |
| <DL> |
| <DD>The initial read-only state to which we should return after release.</DL> |
| <HR> |
| |
| <A NAME="source"><!-- --></A><H3> |
| source</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/struts/util/GenericDataSource.html">GenericDataSource</A> <B>source</B></PRE> |
| <DL> |
| <DD>The GenericDataSource that owns this 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="GenericConnection(org.apache.struts.util.GenericDataSource, java.sql.Connection, boolean, boolean)"><!-- --></A><H3> |
| GenericConnection</H3> |
| <PRE> |
| public <B>GenericConnection</B>(<A HREF="../../../../org/apache/struts/util/GenericDataSource.html">GenericDataSource</A> source, |
| java.sql.Connection conn, |
| boolean autoCommit, |
| boolean readOnly) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Construct a new GenericConnection wrapping the specified connection.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>source</CODE> - The data source that owns this connection<DD><CODE>conn</CODE> - The connection to wrap<DD><CODE>autoCommit</CODE> - Desired auto-commit state for this connection<DD><CODE>readOnly</CODE> - Desired read-only state for this connection<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if an SQL processing error occurs</DL> |
| </DD> |
| </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="clearWarnings()"><!-- --></A><H3> |
| clearWarnings</H3> |
| <PRE> |
| public void <B>clearWarnings</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Clear all warnings reported for this Connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>clearWarnings</CODE> in interface <CODE>java.sql.Connection</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="close()"><!-- --></A><H3> |
| close</H3> |
| <PRE> |
| public void <B>close</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return this wrapped Connection to our data source connection pool.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>close</CODE> in interface <CODE>java.sql.Connection</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="commit()"><!-- --></A><H3> |
| commit</H3> |
| <PRE> |
| public void <B>commit</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Make all changes made since the previous commit or rollback |
| permanent, and releases any database locks currently held.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>commit</CODE> in interface <CODE>java.sql.Connection</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="createStatement()"><!-- --></A><H3> |
| createStatement</H3> |
| <PRE> |
| public java.sql.Statement <B>createStatement</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Create a <code>Statement</code> for sending SQL statements to the |
| database.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>createStatement</CODE> in interface <CODE>java.sql.Connection</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="createStatement(int, int)"><!-- --></A><H3> |
| createStatement</H3> |
| <PRE> |
| public java.sql.Statement <B>createStatement</B>(int resultSetType, |
| int resultSetConcurrency) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>(JDBC 2.0) Create a Statement that will create a ResultSet of the |
| specified type and concurrency.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>createStatement</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>resultSetType</CODE> - A result set type<DD><CODE>resultSetConcurrency</CODE> - A result set concurrency<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getAutoCommit()"><!-- --></A><H3> |
| getAutoCommit</H3> |
| <PRE> |
| public boolean <B>getAutoCommit</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return the current auto-commit state.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getAutoCommit</CODE> in interface <CODE>java.sql.Connection</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="getCatalog()"><!-- --></A><H3> |
| getCatalog</H3> |
| <PRE> |
| public java.lang.String <B>getCatalog</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return the current catalog name for this Connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getCatalog</CODE> in interface <CODE>java.sql.Connection</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="getMetaData()"><!-- --></A><H3> |
| getMetaData</H3> |
| <PRE> |
| public java.sql.DatabaseMetaData <B>getMetaData</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Get the metadata regarding this connection's database.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getMetaData</CODE> in interface <CODE>java.sql.Connection</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="getTransactionIsolation()"><!-- --></A><H3> |
| getTransactionIsolation</H3> |
| <PRE> |
| public int <B>getTransactionIsolation</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return this Connection's current transaction isolation level.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getTransactionIsolation</CODE> in interface <CODE>java.sql.Connection</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="getTypeMap()"><!-- --></A><H3> |
| getTypeMap</H3> |
| <PRE> |
| public java.util.Map <B>getTypeMap</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>(JDBC 2.0) Return the type map for this connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getTypeMap</CODE> in interface <CODE>java.sql.Connection</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="getWarnings()"><!-- --></A><H3> |
| getWarnings</H3> |
| <PRE> |
| public java.sql.SQLWarning <B>getWarnings</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return the first warning reported by calls to this Connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>getWarnings</CODE> in interface <CODE>java.sql.Connection</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="isClosed()"><!-- --></A><H3> |
| isClosed</H3> |
| <PRE> |
| public boolean <B>isClosed</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return <code>true</code> if this Connection is closed. |
| |
| The GenericConnection.isClosed() method is only guaranteed to return true after |
| GenericConnection.closed() has been called. This method cannot be called, in |
| general, to determine if a database connection is valid or invalid. |
| |
| A typical JDBC client can determine that a connection is invalid by catching the |
| exception that is thrown when a JDBC operation is attempted.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>isClosed</CODE> in interface <CODE>java.sql.Connection</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="isReadOnly()"><!-- --></A><H3> |
| isReadOnly</H3> |
| <PRE> |
| public boolean <B>isReadOnly</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Return <code>true</code> if this Connection is in read-only mode.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>isReadOnly</CODE> in interface <CODE>java.sql.Connection</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="nativeSQL(java.lang.String)"><!-- --></A><H3> |
| nativeSQL</H3> |
| <PRE> |
| public java.lang.String <B>nativeSQL</B>(java.lang.String sql) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Convert the given SQL statement into the system's native SQL grammer.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>nativeSQL</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sql</CODE> - Statement to be processed</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prepareCall(java.lang.String)"><!-- --></A><H3> |
| prepareCall</H3> |
| <PRE> |
| public java.sql.CallableStatement <B>prepareCall</B>(java.lang.String sql) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Create a <code>CallableStatement</code> object for calling database |
| stored procedures.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>prepareCall</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sql</CODE> - Statement to be processed<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prepareCall(java.lang.String, int, int)"><!-- --></A><H3> |
| prepareCall</H3> |
| <PRE> |
| public java.sql.CallableStatement <B>prepareCall</B>(java.lang.String sql, |
| int resultSetType, |
| int resultSetConcurrency) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>(JDBC 2.0) Create a CallableStatement object that will generate |
| ResultSet objects with the given type and concurrency.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>prepareCall</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sql</CODE> - Statement to be processed<DD><CODE>resultSetType</CODE> - A result set type<DD><CODE>resultSetConcurrency</CODE> - A result set concurrency<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prepareStatement(java.lang.String)"><!-- --></A><H3> |
| prepareStatement</H3> |
| <PRE> |
| public java.sql.PreparedStatement <B>prepareStatement</B>(java.lang.String sql) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Create a <code>PreparedStatement</code> object for sending |
| parameterized SQL statements to the database.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>prepareStatement</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sql</CODE> - Statement to be processed<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="prepareStatement(java.lang.String, int, int)"><!-- --></A><H3> |
| prepareStatement</H3> |
| <PRE> |
| public java.sql.PreparedStatement <B>prepareStatement</B>(java.lang.String sql, |
| int resultSetType, |
| int resultSetConcurrency) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>(JDBC 2.0) Create a PreparedStatement object that will generate |
| ResultSet objects with the given type and concurrency.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>prepareStatement</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>sql</CODE> - Statement to be processed<DD><CODE>resultSetType</CODE> - A result set type<DD><CODE>resultSetConcurrency</CODE> - A result set concurrency<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rollback()"><!-- --></A><H3> |
| rollback</H3> |
| <PRE> |
| public void <B>rollback</B>() |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Drop all changes made since the previous commit or rollback.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>rollback</CODE> in interface <CODE>java.sql.Connection</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="setAutoCommit(boolean)"><!-- --></A><H3> |
| setAutoCommit</H3> |
| <PRE> |
| public void <B>setAutoCommit</B>(boolean autoCommit) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Sets this connection's auto-commit mode.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setAutoCommit</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>autoCommit</CODE> - The new auto-commit mode.<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setCatalog(java.lang.String)"><!-- --></A><H3> |
| setCatalog</H3> |
| <PRE> |
| public void <B>setCatalog</B>(java.lang.String catalog) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Set the catalog name for this Connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setCatalog</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>catalog</CODE> - The new catalog name<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setReadOnly(boolean)"><!-- --></A><H3> |
| setReadOnly</H3> |
| <PRE> |
| public void <B>setReadOnly</B>(boolean readOnly) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Set the read-only mode of this connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setReadOnly</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>readOnly</CODE> - The new read-only mode<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setTransactionIsolation(int)"><!-- --></A><H3> |
| setTransactionIsolation</H3> |
| <PRE> |
| public void <B>setTransactionIsolation</B>(int level) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>Set the transaction isolation level for this Connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setTransactionIsolation</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>level</CODE> - The new transaction isolation level<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setTypeMap(java.util.Map)"><!-- --></A><H3> |
| setTypeMap</H3> |
| <PRE> |
| public void <B>setTypeMap</B>(java.util.Map map) |
| throws java.sql.SQLException</PRE> |
| <DL> |
| <DD>(JDBC 2.0) Set the type map for this connection.<DD><DL> |
| <DT><B>Specified by: </B><DD><CODE>setTypeMap</CODE> in interface <CODE>java.sql.Connection</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>map</CODE> - The new type map<DT><B>Throws:</B><DD><CODE>java.sql.SQLException</CODE> - if a database access error occurs</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getConnection()"><!-- --></A><H3> |
| getConnection</H3> |
| <PRE> |
| java.sql.Connection <B>getConnection</B>()</PRE> |
| <DL> |
| <DD>Return the actual connection that we are wrapping.<DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDataSource()"><!-- --></A><H3> |
| getDataSource</H3> |
| <PRE> |
| javax.sql.DataSource <B>getDataSource</B>()</PRE> |
| <DL> |
| <DD>Return the data source that owns this connection.<DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setClosed(boolean)"><!-- --></A><H3> |
| setClosed</H3> |
| <PRE> |
| void <B>setClosed</B>(boolean closed)</PRE> |
| <DL> |
| <DD>Set the closed status of this connection wrapper. |
| |
| Would usually only be called by the owning DataSource (source), with |
| setClosed(false), when a pooled connection is being recycled.<DD><DL> |
| </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/FastTreeMap.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/GenericDataSource.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="GenericConnection.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> |