|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
oracle.jbo.server.EntityEvent
public class EntityEvent
An event delivered to an
EventListener
to notify of changes to data at
the Entity Object level.
The event type, which indicates the cause of the event,
is one of ATTRIBUTE_CHANGE
, STATE_CHANGE
,
or BEFORE_REMOVE
.
ATTRIBUTE_CHANGE
events contain
indices of changed attributes, as well as an array of the old attribute values.
STATE_CHANGE
events contain the old post state.
EntityListener
,
EntityImpl
,
Serialized FormField Summary | |
---|---|
static int |
ATTRIBUTE_CHANGE
An event type indicating that the Entity Object's attribute data has changed; that is, setAttribute() has been called for the Entity Object. |
static int |
BEFORE_PK_CHANGE
An event type indicating that the Entity Object's primary key is about to change; that is, setAttribute() has been called on a primary
key attribute for the Entity Object. |
static int |
BEFORE_REMOVE
An event type indicating that the Entity Object's row is to be removed. |
static int |
STATE_CHANGE
An event type indicating that the Entity Object's post state data has changed. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
EntityEvent(EntityImpl source,
int eventType,
int oldState,
int[] changedColumns,
java.lang.Object[] origValues)
Constructs a new Entity Object event. |
|
EntityEvent(EntityImpl source,
int eventType,
int oldState,
int[] changedColumns,
java.lang.Object[] origValues,
Key newKey)
|
Method Summary | |
---|---|
int[] |
getChangedColumns()
Constructs an array of the indices of the changed attribute. |
EntityImpl |
getEntity()
Gets the Entity Object that fired the event. |
int |
getEventType()
Gets the Entity Object's event type. |
Key |
getNewKey()
|
int |
getOldState()
Gets the Entity Object's previous post state. |
java.lang.Object[] |
getOldValues()
Gets the attribute's old values. |
boolean |
isBlgChanged()
|
boolean |
isMarkQCDirty()
|
void |
setBlgChanged(boolean blgChanged)
|
void |
setMarkQCDirty(boolean markQCDirty)
|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ATTRIBUTE_CHANGE
setAttribute()
has been called for the Entity Object.
getEventType()
,
Constant Field Valuespublic static final int STATE_CHANGE
getEventType()
,
EntityImpl
,
Constant Field Valuespublic static final int BEFORE_REMOVE
getEventType()
,
Constant Field Valuespublic static final int BEFORE_PK_CHANGE
setAttribute()
has been called on a primary
key attribute for the Entity Object. The value has not yet been assigned
to the Entity Object.
getEventType()
,
Constant Field ValuesConstructor Detail |
---|
public EntityEvent(EntityImpl source, int eventType, int oldState, int[] changedColumns, java.lang.Object[] origValues)
source
- the Entity Object row that fired the event.eventType
- the type of event. One of
ATTRIBUTE_CHANGE
,
STATE_CHANGE
,
or BEFORE_REMOVE
.oldState
- the post state of Entity Object row before it was
changed. This parameter is relevant only for
STATE_CHANGE
events.changedColumns
- an array of the indices of changed attributes.
This parameter is relevant only if the event type is ATTRIBUTE_CHANGE
.origValues
- an array of the previous attribute values.
This parameter is relevant only if the event type is ATTRIBUTE_CHANGE
.public EntityEvent(EntityImpl source, int eventType, int oldState, int[] changedColumns, java.lang.Object[] origValues, Key newKey)
Method Detail |
---|
public final EntityImpl getEntity()
public int getEventType()
ATTRIBUTE_CHANGE
,
STATE_CHANGE
, or BEFORE_REMOVE
.public int getOldState()
STATE_CHANGE
.
public int[] getChangedColumns()
ATTRIBUTE_CHANGE
.
public java.lang.Object[] getOldValues()
ATTRIBUTE_CHANGE
.
public Key getNewKey()
public boolean isMarkQCDirty()
public void setMarkQCDirty(boolean markQCDirty)
public boolean isBlgChanged()
public void setBlgChanged(boolean blgChanged)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |