📄 turbinedb.html
字号:
<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>clone, equals, finalize, 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="TurbineDB()"><!-- --></A><H3>TurbineDB</H3><PRE>public <B>TurbineDB</B>()</PRE><DL><DD><B>Deprecated.</B> </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="getDefaultMap()"><!-- --></A><H3>getDefaultMap</H3><PRE>public static java.lang.String <B>getDefaultMap</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the map name for the default database.<DD><DL><DT><B>Returns:</B><DD>the map name for the default database.</DL></DD></DL><HR><A NAME="getDatabaseMap()"><!-- --></A><H3>getDatabaseMap</H3><PRE>public static org.apache.torque.map.DatabaseMap <B>getDatabaseMap</B>() throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Returns the default database map information.<DD><DL><DT><B>Returns:</B><DD>A DatabaseMap.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</DL></DD></DL><HR><A NAME="getDatabaseMap(java.lang.String)"><!-- --></A><H3>getDatabaseMap</H3><PRE>public static org.apache.torque.map.DatabaseMap <B>getDatabaseMap</B>(java.lang.String name) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD><B>Deprecated.</B> <DD>Returns the database map information. Name relates to the name of the connection pool to associate with the map.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the <code>DatabaseMap</code> to retrieve.<DT><B>Returns:</B><DD>The named <code>DatabaseMap</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</DL></DD></DL><HR><A NAME="getDefaultDB()"><!-- --></A><H3>getDefaultDB</H3><PRE>public static java.lang.String <B>getDefaultDB</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the pool name for the default database.<DD><DL><DT><B>Returns:</B><DD>the pool name for the default database.</DL></DD></DL><HR><A NAME="getConnection()"><!-- --></A><H3>getConnection</H3><PRE>public static java.sql.Connection <B>getConnection</B>() throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>This method returns a DBConnection from the default pool.<DD><DL><DT><B>Returns:</B><DD>The requested connection.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</DL></DD></DL><HR><A NAME="getConnection(java.lang.String)"><!-- --></A><H3>getConnection</H3><PRE>public static java.sql.Connection <B>getConnection</B>(java.lang.String name) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>This method returns a DBConnection from the pool with the specified name. The pool must either have been registered with the <CODE>#registerPool(String,String,String,String,String)</CODE> method, or be specified in the property file using the following syntax: <pre> database.[name].driver database.[name].url database.[name].username database.[name].password </pre><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the pool to get a connection from.<DT><B>Returns:</B><DD>The requested connection.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</DL></DD></DL><HR><A NAME="releaseConnection(java.sql.Connection)"><!-- --></A><H3>releaseConnection</H3><PRE>public static void <B>releaseConnection</B>(java.sql.Connection dbconn) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Release a connection back to the database pool.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.<DD><CODE>java.lang.Exception</CODE> - A generic exception.</DL></DD></DL><HR><A NAME="getDB()"><!-- --></A><H3>getDB</H3><PRE>public static org.apache.torque.adapter.DB <B>getDB</B>() throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Returns the database adapter for the default connection pool.<DD><DL><DT><B>Returns:</B><DD>The database adapter.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</DL></DD></DL><HR><A NAME="getDB(java.lang.String)"><!-- --></A><H3>getDB</H3><PRE>public static org.apache.torque.adapter.DB <B>getDB</B>(java.lang.String name) throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B> <DD>Returns database adapter for a specific connection pool.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A pool name.<DT><B>Returns:</B><DD>The corresponding database adapter.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - Any exceptions caught during processing will be rethrown wrapped into a TurbineException.</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/TurbineDB.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"> PREV CLASS <A HREF="../../../../../org/apache/turbine/services/db/TurbineMapBrokerService.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="TurbineDB.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 © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -