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 voidrefresh(Object primaryKey)This method would be used by the user to manually force the refresh of read only beans for an application.voidrefreshAll()This method forces *all* primary keys for a read-only bean to be marked as needing a refresh.voidsetHome(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:ReadOnlyBeanNotifierThis is an init method for the helper class not to depend on the impl- Specified by:
setHomein interfaceReadOnlyBeanNotifier- Throws:
RemoteException
-
refresh
public void refresh(Object primaryKey) throws RemoteException
Description copied from interface:ReadOnlyBeanNotifierThis 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:
refreshin interfaceReadOnlyBeanNotifier- Throws:
RemoteException
-
refreshAll
public void refreshAll() throws RemoteExceptionDescription copied from interface:ReadOnlyBeanNotifierThis method forces *all* primary keys for a read-only bean to be marked as needing a refresh.- Specified by:
refreshAllin interfaceReadOnlyBeanNotifier- Throws:
RemoteException
-
-