Life-Cycle Callbacks |
EJB 3.0 |
JDO 2.0 |
Notes |
When a new object is created |
ejbCreate() |
|
|
When an object is deleted |
ejbRemove() |
preDelete() |
|
When an object is detached |
ejbDetach() |
preDetach() |
Optional callback in JDO 2.0 |
When an object is attached |
ejbAttach() |
preAttach() |
Optional callback in JDO 2.0 |
When an object is loaded into the JVM |
ejbLoad() |
postLoad() |
|
When an object's state is synchronized with the database |
ejbStore() |
preStore() |
|
When a managed object is cleared from the cache |
|
preClear() |
|
Table 3 New Callback Methods
These life-cycle callbacks are being added to EJB 3.0, and their corresponding JDO 2.0 equivalents are noted.
|