|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BeanStateSynchronization
There are cases where the container would need to interact with the persistence manager. Some known cases are listed below 1. provide the user with a mechanism to flush changes to the database at the end of a method with out waiting until the end of the transaction. 2. for read only beans provide a mechanism to have the master copy of the bean sync up with the database record. Currently the bean concrete implementation that is created as part of the codegen would implement this interface.
| Method Summary | |
|---|---|
void |
ejb__flush()
Provides a mechanism to flush changes to the database w/o waiting for the end of the transaction, based on some descriptor values set by the user. |
void |
ejb__refresh(java.lang.Object primaryKey)
On receiving this message the PM would update its master copy by fetching the latest information for the primary key from the database |
void |
ejb__remove(java.lang.Object primaryKey)
On receiving this message the PM would delete from its master copy the details related to the primaryKey |
| Method Detail |
|---|
void ejb__flush()
throws DuplicateKeyException
DuplicateKeyExceptionvoid ejb__refresh(java.lang.Object primaryKey)
void ejb__remove(java.lang.Object primaryKey)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||