|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
weka.gui.sql.event.QueryExecuteEvent
public class QueryExecuteEvent
An event that is generated when a query is executed.
QueryExecuteListener
,
Serialized FormConstructor Summary | |
---|---|
QueryExecuteEvent(java.lang.Object source,
DbUtils utils,
java.lang.String query,
int rows,
java.sql.ResultSet rs,
java.lang.Exception ex)
constructs the event |
Method Summary | |
---|---|
boolean |
failed()
is TRUE in case the exception is not NULL, i.e. |
DbUtils |
getDbUtils()
returns the DbUtils instance that was executed the query |
java.lang.Exception |
getException()
returns the exception, if one happened, otherwise NULL |
int |
getMaxRows()
returns the maximum number of rows to retrieve. |
java.lang.String |
getQuery()
returns the query that was executed |
java.sql.ResultSet |
getResultSet()
returns the resultset that was produced, can be null in case the query failed |
boolean |
hasResult()
whether a ResultSet was produced, e.g. |
java.lang.String |
toString()
returns the event in a string representation |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryExecuteEvent(java.lang.Object source, DbUtils utils, java.lang.String query, int rows, java.sql.ResultSet rs, java.lang.Exception ex)
source
- the source that generated this eventutils
- the DbUtils instance that connected to the DBquery
- the query that is the basis for the resultsetrows
- the maximum number of rows to retrieve (0 for all)rs
- the ResultSet that was produced (depending on the
type of SQL query it can also be NULL)ex
- in case an exception occurredMethod Detail |
---|
public DbUtils getDbUtils()
public java.lang.String getQuery()
public int getMaxRows()
public boolean failed()
public boolean hasResult()
public java.sql.ResultSet getResultSet()
public java.lang.Exception getException()
public java.lang.String toString()
toString
in class java.util.EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |