|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.IDataTransaction.Job
Instances of this class is returned from the commitAsynchroniesly
method.
Field Summary | |
static int |
CANCELED
|
static int |
COMPLETED
|
static int |
FAILED
|
static int |
STARTED
|
static int |
WAITING_TO_START
|
Constructor Summary | |
IDataTransaction.Job(IDataTransaction dataTransaction)
|
Method Summary | |
void |
addProgressListener(IDataTransaction.IProgressListener listener)
Adds a listener that will recevie events from this jab. |
void |
cancel()
Tries to cancel this job. |
void |
fireJobCanceledEvent()
|
void |
fireJobCompletedEvent()
|
void |
fireJobFailedEvent(java.lang.Throwable exception)
|
void |
fireJobStartedEvent()
|
void |
fireProgressChangedEvent(int maxProgress,
int currentProgress)
|
IDataTransaction.IProgressListener[] |
getAllProgressListeners()
|
IDataTransaction |
getDataTransaction()
Returns the data transaction that this job commits. |
java.lang.Throwable |
getException()
Returns the most recent exception that was caught while this job was executed. |
int |
getId()
Returns a unique id for this job. |
int |
getStatus()
Returns the current status of this job. |
boolean |
isFinished()
|
void |
removeProgressListener(IDataTransaction.IProgressListener listener)
Removes a progress listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WAITING_TO_START
public static final int STARTED
public static final int CANCELED
public static final int FAILED
public static final int COMPLETED
Constructor Detail |
public IDataTransaction.Job(IDataTransaction dataTransaction)
dataTransaction
- the data transaction that should be commited when
this job is executed.Method Detail |
public void cancel() throws DataServiceException
DataServiceException
public int getId()
public int getStatus()
public boolean isFinished()
public void addProgressListener(IDataTransaction.IProgressListener listener)
public void removeProgressListener(IDataTransaction.IProgressListener listener)
public IDataTransaction.IProgressListener[] getAllProgressListeners()
public IDataTransaction getDataTransaction()
public java.lang.Throwable getException()
public void fireJobStartedEvent()
public void fireJobCompletedEvent()
public void fireJobCanceledEvent()
public void fireJobFailedEvent(java.lang.Throwable exception)
public void fireProgressChangedEvent(int maxProgress, int currentProgress)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |