このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XStatement
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: sdbc ::

interface XStatement
Description
is used for 遂行する/発効させるing a static SQL 声明 and 得るing the results produced by it.

Only one ResultSet per 声明 can be open at any point in time; therefore, if the reading of one ResultSet is interleaved with the reading of another, each must have been 生成するd by different 声明s. All 声明 遂行する/発効させる methods 暗黙に の近くに a 声明's 現在の ResultSet if an open one 存在するs.


Methods' 要約
executeQuery 遂行する/発効させるs a SQL 声明 that returns a 選び出す/独身 ResultSet.  
executeUpdate 遂行する/発効させるs an SQL INSERT, UPDATE, or DELETE 声明. In 新規加入, SQL 声明s that return nothing, such as SQL DDL 声明s, can be 遂行する/発効させるd.  
遂行する/発効させる 遂行する/発効させるs a SQL 声明 that may return 多重の results.  
getConnection returns the 関係 反対する that produced this 声明 反対する.  
Methods' 詳細(に述べる)s
executeQuery
XResultSet
executeQuery( [in] string  sql )
raises( SQLException );

Description
遂行する/発効させるs a SQL 声明 that returns a 選び出す/独身 ResultSet.
Parameter sql
the SQL 声明 which should be 遂行する/発効させるd
Returns
a ResultSet that 含む/封じ込めるs the data produced by the query; never NULL
Throws
SQLException if a database 接近 error occurs.
executeUpdate
long
executeUpdate( [in] string  sql )
raises( SQLException );

Description
遂行する/発効させるs an SQL INSERT, UPDATE, or DELETE 声明. In 新規加入, SQL 声明s that return nothing, such as SQL DDL 声明s, can be 遂行する/発効させるd.
Parameter sql
a SQL INSERT, UPDATE or DELETE 声明 or a SQL 声明 that returns nothing
Returns
either the 列/漕ぐ/騒動 count for INSERT, UPDATE or DELETE or 0 for SQL 声明s that return nothing
Throws
SQLException if a database 接近 error occurs.
遂行する/発効させる
boolean
遂行する/発効させる( [in] string  sql )
raises( SQLException );

Description
遂行する/発効させるs a SQL 声明 that may return 多重の results.

Under some (uncommon) 状況/情勢s a 選び出す/独身 SQL 声明 may return 多重の result 始める,決めるs and/or update counts. 普通は you can ignore this unless you are (1) 遂行する/発効させるing a 蓄える/店d 手続き that you know may return 多重の results or (2) you are dynamically 遂行する/発効させるing an unknown SQL string. The 航海 through 多重の results is covered by XMultipleResults.

The 遂行する/発効させる method 遂行する/発効させるs a SQL 声明 and 示すs the form of the first result. You can then use XStatement::getResultSet() or XStatement::getUpdateCount() to retrieve the result, and XStatement::getMoreResults() to move to any その後の result(s).

Parameter sql
any SQL 声明
Returns
true if the next result is a ResultSet; 誤った if it is an update count or there are no more results
Throws
SQLException if a database 接近 error occurs.
getConnection
XConnection
getConnection()
raises( SQLException );

Description
returns the 関係 反対する that produced this 声明 反対する.
Returns
the 関係 that produced this 声明
Throws
SQLException if a database 接近 error occurs.
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.