public class DispatchCallback extends Object
Constructor and Description |
---|
DispatchCallback() |
Modifier and Type | Method and Description |
---|---|
void |
forceKillSqlQuery()
If a statement has been set by
trackSqlQuery(java.sql.Statement)
then calls Statement.cancel() on it. |
sqlline.DispatchCallback.Status |
getStatus() |
boolean |
isCanceled() |
boolean |
isFailure() |
boolean |
isRunning() |
boolean |
isSuccess() |
void |
setStatus(sqlline.DispatchCallback.Status status) |
void |
setToCancel() |
void |
setToFailure() |
void |
setToSuccess() |
void |
trackSqlQuery(Statement statement)
Sets the sql statement the callback should keep track of so that it can
be canceled.
|
public void trackSqlQuery(Statement statement)
statement
- the statement to trackpublic void setToSuccess()
public boolean isSuccess()
public void setToFailure()
public boolean isFailure()
public boolean isRunning()
public void setToCancel()
public boolean isCanceled()
public void forceKillSqlQuery() throws SQLException
trackSqlQuery(java.sql.Statement)
then calls Statement.cancel()
on it.
As with Statement.cancel()
the effect of calling this is dependent on the underlying DBMS and
driver.SQLException
- on database errorpublic sqlline.DispatchCallback.Status getStatus()
public void setStatus(sqlline.DispatchCallback.Status status)
Copyright © 2015–2016 Julian Hyde. All rights reserved.