|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjava.util.EventObject
javax.sql.ConnectionEvent
public class ConnectionEvent
�ṩ������������¼���Դ��Ϣ�� Event
����Ӧ�ó���ر���������Ӳ���������ʱ���� ConnectionEvent
����ConnectionEvent
�������������Ϣ��
SQLException
�ֶ�ժҪ |
---|
���� java.util.EventObject �̳е��ֶ� |
---|
source |
���췽��ժҪ | |
---|---|
ConnectionEvent(PooledConnection con)
����һ�� ConnectionEvent ����ʹ�ø����� PooledConnection ������г�ʼ���� |
|
ConnectionEvent(PooledConnection con,
SQLException ex)
����һ�� ConnectionEvent ����ʹ�ø����� PooledConnection ����� SQLException ������г�ʼ���� |
����ժҪ | |
---|---|
SQLException |
getSQLException()
��ȡ�� ConnectionEvent ����� SQLException �� |
���� java.util.EventObject �̳еķ��� |
---|
getSource, toString |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public ConnectionEvent(PooledConnection con)
����һ�� ConnectionEvent
����ʹ�ø����� PooledConnection
������г�ʼ����SQLException
��Ĭ��ֵΪ null
��
con
- ��Ϊ�¼�Դ���������
IllegalArgumentException
- ��� con
Ϊ null��public ConnectionEvent(PooledConnection con, SQLException ex)
����һ�� ConnectionEvent
����ʹ�ø����� PooledConnection
����� SQLException
������г�ʼ����
con
- ��Ϊ�¼�Դ���������ex
- Ҫ��Ӧ�ó����׳��� SQLException
IllegalArgumentException
- ��� con
Ϊ null��������ϸ��Ϣ |
---|
public SQLException getSQLException()
��ȡ�� ConnectionEvent
����� SQLException
������Ϊ null
��
null
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������