新聞中心
StatementEvent

專注于為中小企業(yè)提供網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站建設(shè)服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)黃埔免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了上千余家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
java.lang.Object
|---java.util.EventObject
|---|---javax.sql.StatementEvent
public class StatementEvent
extends EventObjectStatementEvent 被發(fā)送到所有向 PooledConnection 注冊(cè)的 StatementEventListener。 當(dāng)驅(qū)動(dòng)程序確定與 PooledConnection 關(guān)聯(lián)的 PreparedStatement 已關(guān)閉或驅(qū)動(dòng)程序確定無效時(shí),會(huì)發(fā)生這種情況。
Since:
1.6
字段摘要
| 從類 java.util.EventObject 繼承的字段 |
|---|
| source |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| StatementEvent(PooledConnection con, PreparedStatement statement) | 使用指定的 PooledConnection 和 PreparedStatement 構(gòu)造一個(gè) StatementEvent。 |
| StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception) | 使用指定的 PooledConnection、PreparedStatement 和 SQLException 構(gòu)造一個(gè) StatementEvent |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| SQLException | getSQLException() | 返回驅(qū)動(dòng)程序即將拋出的 SQLException |
| PreparedStatement | getStatement() | 返回正在關(guān)閉或無效的 PreparedStatement |
| 從類 java.util.EventObject 繼承的方法 |
|---|
| getSource, toString |
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
構(gòu)造函數(shù)詳細(xì)信息
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement)
使用指定的 PooledConnection 和 PreparedStatement 構(gòu)造一個(gè) StatementEvent。 事件中包含的 SQLException 默認(rèn)為 null。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| con | 與關(guān)閉或無效 PreparedStatement 關(guān)聯(lián)的 PooledConnection。 |
| statement | 正在關(guān)閉或無效的 PreparedStatement |
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| IllegalArgumentException | 如果 con 為空。 |
Since:
1.6
StatementEvent
public StatementEvent(PooledConnection con, PreparedStatement statement, SQLException exception)
使用指定的 PooledConnection、PreparedStatement 和 SQLException 構(gòu)造一個(gè) StatementEvent
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| con | 與關(guān)閉或無效 PreparedStatement 關(guān)聯(lián)的 PooledConnection。 |
| statement | 正在關(guān)閉或無效的 PreparedStatement |
| exception | 驅(qū)動(dòng)程序即將向應(yīng)用程序拋出的 SQLException |
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| IllegalArgumentException | 如果 con 為空。 |
Since:
1.6
方法詳情
getStatement
public PreparedStatement getStatement()
返回正在關(guān)閉或無效的 PreparedStatement
返回:
正在關(guān)閉或無效的 PreparedStatement
Since:
1.6
getSQLException
public SQLException getSQLException()
返回驅(qū)動(dòng)程序即將拋出的 SQLException
返回:
驅(qū)動(dòng)程序即將拋出的 SQLException
Since:
1.6
分享名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSStatementEvent
URL地址:http://m.fisionsoft.com.cn/article/djhihso.html


咨詢
建站咨詢
