Package org.eclipse.persistence.sessions
Class SessionEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.eclipse.persistence.sessions.SessionEvent
-
- All Implemented Interfaces:
Serializable
public class SessionEvent extends EventObject
Purpose: Encapsulate the information provided with session events. This is used as the argument to any event raised by the session. To register for events notification an event listener must be registered with the session.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SessionEvent(int eventCode, Session session)INTERNAL: Create the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventCode()PUBLIC: The code of the session event being raised.HashtablegetProperties()PUBLIC: Additional properties may be added to the event.ObjectgetProperty(String name)PUBLIC: Additional properties may be added to the event.DatabaseQuerygetQuery()PUBLIC: Some events may have a query associated with them (pre/postExecuteQuery).ObjectgetResult()PUBLIC: Some events may have a result associated with them (pre/postExecuteQuery).SessiongetSession()PUBLIC: The session in which the event is raised.voidsetEventCode(int eventCode)INTERNAL: The code of the session event being raised.voidsetProperties(Hashtable properties)INTERNAL: Additional properties may be added to the event.voidsetProperty(String name, Object value)INTERNAL: Additional properties may be added to the event.voidsetQuery(DatabaseQuery query)INTERNAL: Some events may have a query associated with them (pre/postExecuteQuery).voidsetResult(Object result)INTERNAL: Some events may have a result associated with them (pre/postExecuteQuery).voidsetSession(Session session)INTERNAL: The session in which the event is raised.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
PreExecuteQuery
public static final int PreExecuteQuery
- See Also:
- Constant Field Values
-
-