|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.store.PersistentObject
com.groiss.event.BasicEvent
public class BasicEvent
Implementation of the Event class.
| Field Summary |
|---|
| Fields inherited from class com.groiss.store.PersistentObject |
|---|
filled, oid |
| Constructor Summary | |
|---|---|
BasicEvent()
|
|
BasicEvent(String name,
ActivityInstance raiser,
Object f,
int txType)
|
|
| Method Summary | |
|---|---|
void |
afterDispatch()
callback method which will be called after the event has successfully been dispatched |
boolean |
forcedDispatch()
|
Object |
getContext()
returns the context object |
Object |
getField(String fname)
This method return a field of the context object, useful if the context object is a form |
String |
getName()
returns the name of the event |
Date |
getRaiseDate()
The date and time when the event has been raised. |
ActivityInstance |
getRaiser()
return the raiser of the event |
String |
getTableName()
This method must return the table name of the database table in which this persistent object is stored. |
int |
getTxType()
get the transaction-type. |
boolean |
isAbort()
can be used to notify the event-handler of an illegal state |
void |
onNotDispatched()
callback method which will be called if the event couldn't be dispatched |
void |
setAbort(boolean abort)
|
void |
setForceDispatch(boolean forceDispatch)
|
String |
toString()
|
| Methods inherited from class com.groiss.store.PersistentObject |
|---|
clone, dbFields, equals, getKey, getOid, getStore, getValue, hashCode, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicEvent()
public BasicEvent(String name,
ActivityInstance raiser,
Object f,
int txType)
name - raiser - f - txType - | Method Detail |
|---|
public void afterDispatch()
Event
afterDispatch in interface Eventpublic boolean forcedDispatch()
public Object getContext()
Event
getContext in interface Event
public Object getField(String fname)
throws NoSuchFieldException,
IllegalAccessException
Event
getField in interface EventNoSuchFieldException
IllegalAccessExceptionpublic String getName()
Event
getName in interface Eventpublic Date getRaiseDate()
Event
getRaiseDate in interface Eventpublic ActivityInstance getRaiser()
Event
getRaiser in interface Eventpublic String getTableName()
Persistent
getTableName in interface Persistentpublic int getTxType()
Event
getTxType in interface EventEventManager.CURRENT_TX,
EventManager.NEW_TXpublic void onNotDispatched()
Event
onNotDispatched in interface Eventpublic void setForceDispatch(boolean forceDispatch)
forceDispatch - the forceDispatch to setpublic String toString()
toString in class Objectpublic void setAbort(boolean abort)
public boolean isAbort()
Event
isAbort in interface Event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||