Class ReadOnlyBeanNotifierImpl
- java.lang.Object
-
- org.glassfish.persistence.ejb.entitybean.container.ReadOnlyBeanNotifierImpl
-
- All Implemented Interfaces:
ReadOnlyBeanNotifier
,Serializable
,Remote
@Service public final class ReadOnlyBeanNotifierImpl extends Object implements Serializable, ReadOnlyBeanNotifier
An instance of ReadOnlyBeanNotifier is used to refresh ReadOnlyBeans- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyBeanNotifierImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
refresh(Object primaryKey)
This method would be used by the user to manually force the refresh of read only beans for an application.void
refreshAll()
This method forces *all* primary keys for a read-only bean to be marked as needing a refresh.void
setHome(ReadOnlyEJBHome home)
This is an init method for the helper class not to depend on the impl
-
-
-
Constructor Detail
-
ReadOnlyBeanNotifierImpl
public ReadOnlyBeanNotifierImpl() throws RemoteException
- Throws:
RemoteException
-
-
Method Detail
-
setHome
public void setHome(ReadOnlyEJBHome home) throws RemoteException
Description copied from interface:ReadOnlyBeanNotifier
This is an init method for the helper class not to depend on the impl- Specified by:
setHome
in interfaceReadOnlyBeanNotifier
- Throws:
RemoteException
-
refresh
public void refresh(Object primaryKey) throws RemoteException
Description copied from interface:ReadOnlyBeanNotifier
This method would be used by the user to manually force the refresh of read only beans for an application. After this method the next access to the bean, identified by the primary key, will cause a ejbLoad() to be called on the bean- Specified by:
refresh
in interfaceReadOnlyBeanNotifier
- Throws:
RemoteException
-
refreshAll
public void refreshAll() throws RemoteException
Description copied from interface:ReadOnlyBeanNotifier
This method forces *all* primary keys for a read-only bean to be marked as needing a refresh.- Specified by:
refreshAll
in interfaceReadOnlyBeanNotifier
- Throws:
RemoteException
-
-