|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.EventObject
oracle.toplink.publicinterface.DescriptorEvent
oracle.toplink.descriptors.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 an event listener to be notified when any event occurs for that descriptor. The second method is more similar to the java beans event model and requires the registered listener to implement the DescriptorEventListener interface.
DescriptorEventManager, DescriptorEventListener, DescriptorEventAdapter, Serialized Form| Method Summary | |
void |
applyAttributeValuesIntoRow(java.lang.String attributeName)PUBLIC: Re-populate the database row with the values from the source object based upon the attribute's mapping. |
ObjectChangeSet |
getChangeSet()PUBLIC: Returns the Object changeSet if available |
ClassDescriptor |
getClassDescriptor()PUBLIC: The source descriptor of the event. |
int |
getEventCode()PUBLIC: The code of the descriptor event being raised. |
java.lang.Object |
getObject()PUBLIC: Synonym for source. |
java.lang.Object |
getOriginalObject()PUBLIC: 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()PUBLIC: The query causing the event. |
Record |
getRecord()PUBLIC: Optionally a database row may be provided on some events, (such as aboutToUpdate). |
Session |
getSession()PUBLIC: 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 oracle.toplink.publicinterface.DescriptorEvent |
getDescriptor, getRow |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void applyAttributeValuesIntoRow(java.lang.String attributeName)
applyAttributeValuesIntoRow in class DescriptorEventpublic ObjectChangeSet getChangeSet()
getChangeSet in class DescriptorEventpublic ClassDescriptor getClassDescriptor()
public int getEventCode()
getEventCode in class DescriptorEventpublic java.lang.Object getObject()
getObject in class DescriptorEventpublic java.lang.Object getOriginalObject()
getOriginalObject in class DescriptorEventEventObject.getSource()public DatabaseQuery getQuery()
getQuery in class DescriptorEventpublic Record getRecord()
public Session getSession()
getSession in class DescriptorEvent
public void updateAttributeWithObject(java.lang.String attributeName,
java.lang.Object value)
updateAttributeWithObject in class DescriptorEvent
public void updateAttributeAddObjectToCollection(java.lang.String attributeName,
java.lang.Object mapKey,
java.lang.Object value)
updateAttributeAddObjectToCollection in class DescriptorEvent
public void updateAttributeRemoveObjectFromCollection(java.lang.String attributeName,
java.lang.Object mapKey,
java.lang.Object value)
updateAttributeRemoveObjectFromCollection in class DescriptorEvent
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||