📄 dbconnectionmanager.html
字号:
different JDBC drivers have different capabilities and methods for setting large text values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pstmt</CODE> - the PreparedStatement to set the text field in.<DD><CODE>parameterIndex</CODE> - the index corresponding to the text field.<DD><CODE>value</CODE> - the String to set.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/SQLException.html" title="class or interface in java.sql">SQLException</A></CODE> - if an SQL exception occurs.</DL></DD></DL><HR><A NAME="setMaxRows(java.sql.Statement, int)"><!-- --></A><H3>setMaxRows</H3><PRE>public static void <B>setMaxRows</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Statement.html" title="class or interface in java.sql">Statement</A> stmt, int maxRows)</PRE><DL><DD>Sets the max number of rows that should be returned from executing a statement. The operation is automatically bypassed if Jive knows that the the JDBC driver or database doesn't support it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>stmt</CODE> - the Statement to set the max number of rows for.<DD><CODE>maxRows</CODE> - the max number of rows to return.</DL></DD></DL><HR><A NAME="setFetchSize(java.sql.ResultSet, int)"><!-- --></A><H3>setFetchSize</H3><PRE>public static void <B>setFetchSize</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/sql/ResultSet.html" title="class or interface in java.sql">ResultSet</A> rs, int fetchSize)</PRE><DL><DD>Sets the number of rows that the JDBC driver should buffer at a time. The operation is automatically bypassed if Jive knows that the the JDBC driver or database doesn't support it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rs</CODE> - the ResultSet to set the fetch size for.<DD><CODE>fetchSize</CODE> - the fetchSize.</DL></DD></DL><HR><A NAME="getSchemaManager()"><!-- --></A><H3>getSchemaManager</H3><PRE>public static <A HREF="../../../org/jivesoftware/database/SchemaManager.html" title="class in org.jivesoftware.database">SchemaManager</A> <B>getSchemaManager</B>()</PRE><DL><DD>Returns a SchemaManager instance, which can be used to manage the database schema information for Openfire and plugins.<P><DD><DL><DT><B>Returns:</B><DD>a SchemaManager instance.</DL></DD></DL><HR><A NAME="getDatabaseType()"><!-- --></A><H3>getDatabaseType</H3><PRE>public static <A HREF="../../../org/jivesoftware/database/DbConnectionManager.DatabaseType.html" title="enum in org.jivesoftware.database">DbConnectionManager.DatabaseType</A> <B>getDatabaseType</B>()</PRE><DL><DD>Returns the database type. The possible types are constants of the DatabaseType class. Any database that doesn't have its own constant falls into the "Other" category.<P><DD><DL><DT><B>Returns:</B><DD>the database type.</DL></DD></DL><HR><A NAME="isProfilingEnabled()"><!-- --></A><H3>isProfilingEnabled</H3><PRE>public static boolean <B>isProfilingEnabled</B>()</PRE><DL><DD>Returns true if connection profiling is turned on. You can collect profiling statistics by using the static methods of the ProfiledConnection class.<P><DD><DL><DT><B>Returns:</B><DD>true if connection profiling is enabled.</DL></DD></DL><HR><A NAME="setProfilingEnabled(boolean)"><!-- --></A><H3>setProfilingEnabled</H3><PRE>public static void <B>setProfilingEnabled</B>(boolean enable)</PRE><DL><DD>Turns connection profiling on or off. You can collect profiling statistics by using the static methods of the ProfiledConnection class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>enable</CODE> - true to enable profiling; false to disable.</DL></DD></DL><HR><A NAME="isTransactionsSupported()"><!-- --></A><H3>isTransactionsSupported</H3><PRE>public static boolean <B>isTransactionsSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isStreamTextRequired()"><!-- --></A><H3>isStreamTextRequired</H3><PRE>public static boolean <B>isStreamTextRequired</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isMaxRowsSupported()"><!-- --></A><H3>isMaxRowsSupported</H3><PRE>public static boolean <B>isMaxRowsSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isFetchSizeSupported()"><!-- --></A><H3>isFetchSizeSupported</H3><PRE>public static boolean <B>isFetchSizeSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isSubqueriesSupported()"><!-- --></A><H3>isSubqueriesSupported</H3><PRE>public static boolean <B>isSubqueriesSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isScrollResultsSupported()"><!-- --></A><H3>isScrollResultsSupported</H3><PRE>public static boolean <B>isScrollResultsSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isBatchUpdatesSupported()"><!-- --></A><H3>isBatchUpdatesSupported</H3><PRE>public static boolean <B>isBatchUpdatesSupported</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="isEmbeddedDB()"><!-- --></A><H3>isEmbeddedDB</H3><PRE>public static boolean <B>isEmbeddedDB</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getTestSQL(java.lang.String)"><!-- --></A><H3>getTestSQL</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTestSQL</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> driver)</PRE><DL><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/jivesoftware/database/ConnectionProvider.html" title="interface in org.jivesoftware.database"><B>PREV CLASS</B></A> <A HREF="../../../org/jivesoftware/database/DbConnectionManager.DatabaseType.html" title="enum in org.jivesoftware.database"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/jivesoftware/database/DbConnectionManager.html" target="_top"><B>FRAMES</B></A> <A HREF="DbConnectionManager.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -