类 ConnectionEvent
java.lang.Object
java.util.EventObject
weka.gui.sql.event.ConnectionEvent
- 所有已实现的接口:
Serializable
An event that is generated when a connection is established or dropped.
- 版本:
- $Revision: 1.2 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
it was a connect trystatic final int
it was a disconnect -
构造器概要
构造器构造器说明ConnectionEvent
(Object source, int type, DbUtils utils) constructs the eventConnectionEvent
(Object source, int type, DbUtils utils, Exception ex) constructs the event -
方法概要
修饰符和类型方法说明boolean
failed()
whether an exception happened and is storedreturns the DbUtils instance that is responsible for the connect/disconnect.returns the stored exception, if any (can be NULL)int
getType()
returns the type of this event, CONNECT or DISCONNECTboolean
returns whether the connection is still open.toString()
returns the event in a string representation从类继承的方法 java.util.EventObject
getSource
-
字段详细资料
-
构造器详细资料
-
ConnectionEvent
constructs the event- 参数:
source
- the source that generated this eventtype
- whether CONNECT or DISCONNECT happenedutils
- the DatabaseUtils isntance responsible for the connection
-
ConnectionEvent
constructs the event- 参数:
source
- the source that generated this eventtype
- whether CONNECT or DISCONNECT happenedutils
- the DatabaseUtils isntance responsible for the connectionex
- a possible exception, if not successful
-
-
方法详细资料
-
getType
public int getType()returns the type of this event, CONNECT or DISCONNECT- 返回:
- the type of this event
- 另请参阅:
-
failed
public boolean failed()whether an exception happened and is stored- 返回:
- whether an exception happened
-
isConnected
public boolean isConnected()returns whether the connection is still open.- 返回:
- whether the connection is still open
-
getException
returns the stored exception, if any (can be NULL) -
getDbUtils
returns the DbUtils instance that is responsible for the connect/disconnect.- 返回:
- the responsible DbUtils instance
-
toString
returns the event in a string representation- 覆盖:
toString
在类中EventObject
- 返回:
- the event in a string representation
-