📄 sqlexception.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>SQLData.</B><B><A HREF="../../../java/sql/SQLData.html#readSQL(java.sql.SQLInput, java.lang.String)">readSQL</A></B>(<A HREF="../../../java/sql/SQLInput.html">SQLInput</A> stream, <A HREF="../../../java/lang/String.html">String</A> typeName)</CODE><BR> Populates this object with data read from 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>SQLData.</B><B><A HREF="../../../java/sql/SQLData.html#writeSQL(java.sql.SQLOutput)">writeSQL</A></B>(<A HREF="../../../java/sql/SQLOutput.html">SQLOutput</A> stream)</CODE><BR> Writes this object to the given SQL data stream, converting it back to its SQL value in the data source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/Connection.html">Connection</A></CODE></FONT></TD><TD><CODE><B>Driver.</B><B><A HREF="../../../java/sql/Driver.html#connect(java.lang.String, java.util.Properties)">connect</A></B>(<A HREF="../../../java/lang/String.html">String</A> url, <A HREF="../../../java/util/Properties.html">Properties</A> info)</CODE><BR> Attempts to make a database connection to the given URL.</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>Driver.</B><B><A HREF="../../../java/sql/Driver.html#acceptsURL(java.lang.String)">acceptsURL</A></B>(<A HREF="../../../java/lang/String.html">String</A> url)</CODE><BR> Returns true if the driver thinks that it can open a connection to the given URL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/DriverPropertyInfo.html">DriverPropertyInfo</A>[]</CODE></FONT></TD><TD><CODE><B>Driver.</B><B><A HREF="../../../java/sql/Driver.html#getPropertyInfo(java.lang.String, java.util.Properties)">getPropertyInfo</A></B>(<A HREF="../../../java/lang/String.html">String</A> url, <A HREF="../../../java/util/Properties.html">Properties</A> info)</CODE><BR> Gets information about the possible properties for this driver.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/Statement.html">Statement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#createStatement()">createStatement</A></B>()</CODE><BR> Creates a <code>Statement</code> object 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> <A HREF="../../../java/sql/PreparedStatement.html">PreparedStatement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#prepareStatement(java.lang.String)">prepareStatement</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql)</CODE><BR> Creates 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> <A HREF="../../../java/sql/CallableStatement.html">CallableStatement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#prepareCall(java.lang.String)">prepareCall</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql)</CODE><BR> Creates 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> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#nativeSQL(java.lang.String)">nativeSQL</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql)</CODE><BR> Converts the given SQL statement into the system's native SQL grammar.</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>Connection.</B><B><A HREF="../../../java/sql/Connection.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> boolean</CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getAutoCommit()">getAutoCommit</A></B>()</CODE><BR> Gets the current auto-commit 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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#commit()">commit</A></B>()</CODE><BR> Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by the 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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#rollback()">rollback</A></B>()</CODE><BR> Drops all changes made since the previous commit/rollback and releases any database locks currently held by 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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#close()">close</A></B>()</CODE><BR> Releases a Connection's database and JDBC resources immediately instead of waiting for them to be automatically released.</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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#isClosed()">isClosed</A></B>()</CODE><BR> Tests to see if a Connection is closed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/DatabaseMetaData.html">DatabaseMetaData</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getMetaData()">getMetaData</A></B>()</CODE><BR> Gets 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> void</CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean readOnly)</CODE><BR> Puts this connection in read-only mode as a hint to enable database optimizations.</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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#isReadOnly()">isReadOnly</A></B>()</CODE><BR> Tests to see if the connection is in read-only 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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#setCatalog(java.lang.String)">setCatalog</A></B>(<A HREF="../../../java/lang/String.html">String</A> catalog)</CODE><BR> Sets a catalog name in order to select a subspace of this Connection's database in which to work.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getCatalog()">getCatalog</A></B>()</CODE><BR> Returns the Connection's current catalog name.</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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#setTransactionIsolation(int)">setTransactionIsolation</A></B>(int level)</CODE><BR> Attempts to change the transaction isolation level to the one given.</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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getTransactionIsolation()">getTransactionIsolation</A></B>()</CODE><BR> Gets 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> <A HREF="../../../java/sql/SQLWarning.html">SQLWarning</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getWarnings()">getWarnings</A></B>()</CODE><BR> Returns the first warning reported by calls on 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>Connection.</B><B><A HREF="../../../java/sql/Connection.html#clearWarnings()">clearWarnings</A></B>()</CODE><BR> Clears all warnings reported for this <code>Connection</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/sql/Statement.html">Statement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#createStatement(int, int)">createStatement</A></B>(int resultSetType, int resultSetConcurrency)</CODE><BR> Creates a <code>Statement</code> object that will generate <code>ResultSet</code> 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> <A HREF="../../../java/sql/PreparedStatement.html">PreparedStatement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#prepareStatement(java.lang.String, int, int)">prepareStatement</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql, int resultSetType, int resultSetConcurrency)</CODE><BR> Creates a <code>PreparedStatement</code> object that will generate <code>ResultSet</code> 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> <A HREF="../../../java/sql/CallableStatement.html">CallableStatement</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#prepareCall(java.lang.String, int, int)">prepareCall</A></B>(<A HREF="../../../java/lang/String.html">String</A> sql, int resultSetType, int resultSetConcurrency)</CODE><BR> Creates a <code>CallableStatement</code> object that will generate <code>ResultSet</code> 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> <A HREF="../../../java/util/Map.html">Map</A></CODE></FONT></TD><TD><CODE><B>Connection.</B><B><A HREF="../../../java/sql/Connection.html#getTypeMap()">getTypeMap</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -