JavaTM Platform
Standard Ed. 6

javax.sql
클래스 StatementEvent

java.lang.Object 
  상위를 확장 java.util.EventObject 
      상위를 확장 javax.sql.StatementEvent
모든 구현된 인터페이스:
Serializable


public class StatementEvent
extends EventObject

PooledConnection 에 등록된 모든 StatementEventListener 에,StatementEvent 가 송신됩니다. 이 처리는, 드라이버가,PooledConnection 에 관련지을 수 있었던 PreparedStatement 가 닫았는지, 무효이다고 판단했을 경우에 행해집니다.  

도입된 버젼:
1.6
관련 항목:
직렬화 된 형식

필드의 개요
 
클래스 java.util. EventObject 로부터 상속된 필드
source
 
생성자 의 개요
StatementEvent (PooledConnection  con, PreparedStatement  statement)
          지정된 PooledConnectionPreparedStatement 를 가지는 StatementEvent 를 구축합니다.
StatementEvent (PooledConnection  con, PreparedStatement  statement, SQLException  exception)
          지정된 PooledConnection,PreparedStatement, 및 SQLException 를 가지는 StatementEvent 를 구축합니다.
 
메소드의 개요
 SQLException getSQLException ()
          드라이버가 throw 하려고 하고 있는 SQLException 를 돌려줍니다.
 PreparedStatement getStatement ()
          닫혀진, 또는 무효인 PreparedStatement 를 돌려줍니다.
 
클래스 java.util. EventObject 로부터 상속된 메소드
getSource , toString
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

StatementEvent

public StatementEvent(PooledConnection  con,
                      PreparedStatement  statement)
지정된 PooledConnectionPreparedStatement 를 가지는 StatementEvent 를 구축합니다. 이 이벤트에 포함되는 SQLException 는, 디폴트로 null 가 됩니다.  

파라미터:
con - 닫혀진, 또는 무효인 PreparedStatement 를 관련지을 수 있고 있는 PooledConnection
statement - 닫혀진, 또는 무효인 PreparedStatement

예외:
IllegalArgumentException - con 가 null 의 경우
도입된 버젼:
1.6

StatementEvent

public StatementEvent(PooledConnection  con,
                      PreparedStatement  statement,
                      SQLException  exception)
지정된 PooledConnection,PreparedStatement, 및 SQLException 를 가지는 StatementEvent 를 구축합니다.  

파라미터:
con - 닫혀진, 또는 무효인 PreparedStatement 를 관련지을 수 있고 있는 PooledConnection
statement - 닫혀진, 또는 무효인 PreparedStatement
exception - 드라이버가 어플리케이션에 throw 하려고 하고 있는 SQLException
예외:
IllegalArgumentException - con 가 null 의 경우

도입된 버젼:
1.6
메소드의 상세

getStatement

public PreparedStatement  getStatement()
닫혀진, 또는 무효인 PreparedStatement 를 돌려줍니다.

반환값:
닫혀진, 또는 무효인 PreparedStatement

도입된 버젼:
1.6

getSQLException

public SQLException  getSQLException()
드라이버가 throw 하려고 하고 있는 SQLException 를 돌려줍니다.

반환값:
드라이버가 throw 하려고 하고 있는 SQLException

도입된 버젼:
1.6

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.