|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.mom.LongRunningStatementHandle
public class LongRunningStatementHandle
This class represents a handle to the cancellable SQL statements. Instances of this class are used to track long running statements and cancel them when they run too long or by user discretion.
Field Summary | |
---|---|
static int |
CANCELLED
|
static int |
COMPLETED
|
static int |
RUNNING
|
Constructor Summary | |
---|---|
LongRunningStatementHandle(long expiresAt,
java.sql.Statement stmt)
Creates a new LongRunningStatementHandle instance. |
Method Summary | |
---|---|
boolean |
cancel()
This method could be invoked by the LongRunningStatementMonitor
when the statement expires or from another thread when the
user wants to cancel the statement. |
long |
getExpiryTime()
Returns the timestamp at which the statement expires |
int |
getState()
Returns the current state of the statement |
void |
setState(int newState)
Change the statement's state |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMPLETED
public static final int RUNNING
public static final int CANCELLED
Constructor Detail |
---|
public LongRunningStatementHandle(long expiresAt, java.sql.Statement stmt)
LongRunningStatementHandle
instance.
expiresAt
- the timestamp at which this statement expiresstmt
- the JDBC Statement handleMethod Detail |
---|
public void setState(int newState)
newState
- valid values are COMPLETED, RUNNING or CANCELLEDpublic int getState()
public long getExpiryTime()
long
timestamp valuepublic boolean cancel()
LongRunningStatementMonitor
when the statement expires or from another thread when the
user wants to cancel the statement.
true
if cancel succeeds, false
otherwise
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |