globalTxEntityMap This provides a way to find the entities that are part of a given
transaction EntitySynchronizationInterceptor and InstanceSynchronization
manage this instance.
find(Invocation mi) This methods finds the target instances by delegating to the persistence
manager It then manufactures EJBObject for all the involved instances
found.
This provides a way to find the entities that are part of a given
transaction EntitySynchronizationInterceptor and InstanceSynchronization
manage this instance.
Returns a new instance of the bean class or a subclass of the bean class.
If this is 1.x cmp, simply return a new instance of the bean class.
If this is 2.x cmp, return a subclass that provides an implementation
of the abstract accessors.
See Also:java.lang.Class.newInstance The new instance.
public static void synchronizeEntitiesWithinTransaction(Transaction tx)(Code)
Stores all of the entities associated with the specified transaction.
As per the spec 9.6.4, entities must be synchronized with the datastore
when an ejbFind is called.
Also, all entities within entire transaction should be synchronized before
a remove, otherwise there may be problems with 'cascade delete'.
Parameters: tx - the transaction that associated entites will be stored