About PostLoad

1-10 of 19Refresh
JDO Doc
141

setPostLoad(postLoad)

Method javax.jdo.FetchGroup FetchGroup setPostLoad(   boolean postLoad ) Set the post-load property of this FetchGroup. Parameters: postLoad - Returns: the FetchGroup Throws: JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2
JDO Doc
138

FetchGroup.postLoad

Annotation Element javax.jdo.annotations.FetchGroup String postLoad Whether we should load this group as part of the post load process. Returns: whether we should load this group as part of the post load process. Default value: "" Since: JDO 2.1
JPA Doc
138

javax.persistence.PostLoad

javax.persistence Annotation PostLoad Target: Callback methods Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 Learn how to define and use JPA
JDO Doc
138

postLoad(event)

Method javax.jdo.listener.LoadLifecycleListener void postLoad(   InstanceLifecycleEvent event ) Invoked whenever a persistent instance is loaded from the data store. It is called after the method LoadCallback.jdoPostLoad is invoked on the persistent instance. Parameters: event - the load event. Since: JDO 2.0
Manual
38

JPA Lifecycle Events

() {} @PostLoad void onPostLoad() {} @PreUpdate void onPreUpdate() {} @PostUpdate void ... flush). @PostLoad - after an entity has been retrieved from the database. @PreUpdate ... o) {} @PostLoad void onPostLoad(Object o) {} @PreUpdate void onPreUpdate(Object o
JDO Doc
9

javax.jdo.FetchGroup

(boolean postLoad) Set the post-load property of this FetchGroup. Set the post-load property of this FetchGroup. Parameters: postLoad - Returns: the FetchGroup Throws: JDOUserException
JDO Doc
6

javax.jdo.annotations.FetchGroup

String postLoad Whether we should load this group as part of the post load process
JDO Doc
6

javax.jdo.listener.LoadLifecycleListener

javax.jdo.listener Interface LoadLifecycleListener Superinterfaces: InstanceLifecycleListener This interface is implemented by listeners to be notified of load events. Since: JDO 2.0 void postLoad( InstanceLifecycleEvent event) Invoked whenever a persistent instance is loaded from the data store
Forum
3

Handling deleted references

initial values and no version. To simplify the use case I added a @PostLoad method to the User class ... and create a new profile instance: @PostLoad private void checkProfileAvailable ... since one can simply add @PostLoad method and recheck all instances if they are broken or not and fix them (e.g
Forum
3

Adding EntityListener Throws Unexpected Internal Exception

.. } and listener like below: public class MyListener {     @PostLoad     public void onPostLoad(Object o) {         Logger.info("PostLoad call.");     }     @PreUpdate     public void onPreRemove