public class BasicEvent extends PersistentObject implements Event
filled, oid
emptyKeys
Constructor and Description |
---|
BasicEvent() |
BasicEvent(java.lang.String name,
ActivityInstance raiser,
java.lang.Object f,
int txType) |
Modifier and Type | Method and Description |
---|---|
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() |
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, clone, dbFields, equals, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getValue, hashCode, isFilled, isValid, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setOid, setStore, toListString
public BasicEvent()
public BasicEvent(java.lang.String name, ActivityInstance raiser, java.lang.Object f, int txType)
name
- raiser
- f
- txType
- 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
public java.lang.String getName()
Event
public java.util.Date getRaiseDate()
Event
getRaiseDate
in interface Event
public ActivityInstance getRaiser()
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)
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.