| 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() |
|