|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String name,
ActivityInstance raiser,
java.lang.Object f,
int txType)
|
Method Summary | |
---|---|
void |
afterDispatch()
callback method which will be called after the event has successfully been dispatched |
boolean |
forcedDispatch()
|
java.lang.Object |
getContext()
returns the context object |
java.lang.Object |
getField(java.lang.String fname)
This method return a field of the context object, useful if the context object is a form |
java.lang.String |
getName()
returns the name of the event |
java.util.Date |
getRaiseDate()
The date and time when the event has been raised. |
ActivityInstance |
getRaiser()
return the raiser of the event |
java.lang.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)
|
java.lang.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(java.lang.String name, ActivityInstance raiser, java.lang.Object f, int txType)
name
- raiser
- f
- txType
- Method Detail |
---|
public void afterDispatch()
Event
afterDispatch
in interface Event
public boolean forcedDispatch()
public java.lang.Object getContext()
Event
getContext
in interface Event
public java.lang.Object getField(java.lang.String fname) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessException
Event
getField
in interface Event
java.lang.NoSuchFieldException
java.lang.IllegalAccessException
public java.lang.String getName()
Event
getName
in interface Event
public java.util.Date getRaiseDate()
Event
getRaiseDate
in interface Event
public ActivityInstance getRaiser()
Event
getRaiser
in interface Event
public java.lang.String getTableName()
Persistent
getTableName
in interface Persistent
public int getTxType()
Event
getTxType
in interface Event
EventManager.CURRENT_TX
,
EventManager.NEW_TX
public void onNotDispatched()
Event
onNotDispatched
in interface Event
public void setForceDispatch(boolean forceDispatch)
forceDispatch
- the forceDispatch to setpublic java.lang.String toString()
toString
in class java.lang.Object
public 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 |