public class CancellationHandler
extends java.lang.Object
Constructor and Description |
---|
CancellationHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
begin(java.sql.Statement statement,
java.lang.Object context)
Indicates that a statement is going to be executed.
|
static void |
cancel(java.lang.Object context)
Requests cancellation.
|
static void |
cancelSilently(java.lang.Object context)
Requests cancellation without logging.
|
static void |
checkForCancellation(java.lang.Object context)
Checks for cancellation.
|
static void |
end(java.sql.Statement statement,
java.lang.Object context)
Indicates that a statement has been executed.
|
static void |
reset(java.lang.Object context)
Resets the handler.
|
public static void reset(java.lang.Object context)
context
- cancellation context, null
for default contextpublic static void cancel(java.lang.Object context)
context
- cancellation context, null
for default contextpublic static void cancelSilently(java.lang.Object context)
context
- cancellation context, null
for default contextpublic static void begin(java.sql.Statement statement, java.lang.Object context)
context
- cancellation context, null
for default contextstatement
- the statementpublic static void end(java.sql.Statement statement, java.lang.Object context)
statement
- the statementcontext
- cancellation context, null
for default contextpublic static void checkForCancellation(java.lang.Object context) throws CancellationException
context
- cancellation context, null
for default contextCancellationException
- if cancellation have been requested