|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject oracle.toplink.descriptors.DescriptorEvent
public class DescriptorEvent
Purpose: Encapsulate the information provided with descriptor events. This is used as the argument to any event raised by the descriptor. Events can be registered for through two methods, the first is by providing a method to be called on the object that a paticular operation is being performed on. The second is by registering a manager object to be notified when any event occurs for that descriptor. The second method is more similar to the java beans event model but requires the registered object to implement the DescriptorEventListener interface.
DescriptorEventManager
,
DescriptorEventListener
,
Serialized FormConstructor Summary | |
---|---|
DescriptorEvent(int eventCode,
ObjectLevelModifyQuery query)
Most events are trigger from queries, so this is a helper method. |
|
DescriptorEvent(java.lang.Object sourceObject)
All events require a source object. |
Method Summary | |
---|---|
void |
applyAttributeValuesIntoRow(java.lang.String attributeName)
Re-populate the database row with the values from the source object based upon the attribute's mapping. |
oracle.toplink.internal.sessions.ObjectChangeSet |
getChangeSet()
Returns the Object changeSet if available |
ClassDescriptor |
getClassDescriptor()
The source descriptor of the event. |
ClassDescriptor |
getDescriptor()
The source descriptor of the event. |
int |
getEventCode()
The code of the descriptor event being raised. |
java.lang.Object |
getObject()
Synanym for source. |
java.lang.Object |
getOriginalObject()
The source object represents the object the event is being raised on, some events also require a second object, for example the original object in a postClone. |
DatabaseQuery |
getQuery()
The query causing the event. |
Record |
getRecord()
Return the record that is associated with some events, such as postBuild, and aboutToUpdate. |
oracle.toplink.internal.sessions.AbstractSession |
getSession()
The session in which the event is raised. |
void |
updateAttributeAddObjectToCollection(java.lang.String attributeName,
java.lang.Object mapKey,
java.lang.Object value)
ADVANCED: Use this method when updating object attribute values, with unmapped objects Integer, String or others. in events to ensure that all required objects are updated. |
void |
updateAttributeRemoveObjectFromCollection(java.lang.String attributeName,
java.lang.Object mapKey,
java.lang.Object value)
ADVANCED: Use this method when updating object attribute values, with unmapped objects Integer, String or others. in events to ensure that all required objects are updated. |
void |
updateAttributeWithObject(java.lang.String attributeName,
java.lang.Object value)
ADVANCED: Use this method when updating object attribute values, with unmapped objects Integer, String or others. in events to ensure that all required objects are updated. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescriptorEvent(int eventCode, ObjectLevelModifyQuery query)
public DescriptorEvent(java.lang.Object sourceObject)
Method Detail |
---|
public void applyAttributeValuesIntoRow(java.lang.String attributeName)
public oracle.toplink.internal.sessions.ObjectChangeSet getChangeSet()
public ClassDescriptor getDescriptor()
public ClassDescriptor getClassDescriptor()
public int getEventCode()
public java.lang.Object getObject()
public java.lang.Object getOriginalObject()
EventObject.getSource()
public DatabaseQuery getQuery()
public Record getRecord()
public oracle.toplink.internal.sessions.AbstractSession getSession()
public void updateAttributeWithObject(java.lang.String attributeName, java.lang.Object value)
public void updateAttributeAddObjectToCollection(java.lang.String attributeName, java.lang.Object mapKey, java.lang.Object value)
public void updateAttributeRemoveObjectFromCollection(java.lang.String attributeName, java.lang.Object mapKey, java.lang.Object value)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |