IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.annotations
Annotation Type PostLoad


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PostLoad

Identifies the post-load callback method which is invoked for an entity after the entity has been loaded from the store which includes any entities that are loaded through an association. This method is run on the thread of the loading operation, such as EntityManager.find or a query.

This annotation may be applied to an entity class method with the signature:
void <METHOD>()

or an entity listener class method with the signature:
void <METHOD>(Object).

The Object argument is the entity instance that the callback method is invoked. It may optionally be declared as the actual entity type. The callback method must not be static or final.

If this callback method throws an unchecked/runtime exception, then any transaction in which this callback is included will be rolled-back.

Since:
WAS XD 6.1 FIX3
See Also:
EntityListeners


IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.