ome.services
Class AbstractStatefulBean

java.lang.Object
  extended by ome.services.AbstractStatefulBean
All Implemented Interfaces:
Serializable, ServiceInterface, StatefulServiceInterface, SelfConfigurableService
Direct Known Subclasses:
JobBean, RawFileBean, RawPixelsBean, SearchBean

public abstract class AbstractStatefulBean
extends Object
implements SelfConfigurableService, StatefulServiceInterface, Serializable

Base bean implementation for stateful services. Particularly useful is the implementation of

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
Serialized Form

Field Summary
protected  LocalQuery iQuery
           
protected  LocalUpdate iUpdate
           
protected  boolean modified
          True if any write operation took place on this bean.
protected  SecuritySystem sec
           
 
Constructor Summary
AbstractStatefulBean()
           
 
Method Summary
protected  BeanHelper getBeanHelper()
           
 EventContext getCurrentEventContext()
          Returns the current EventContext for this instance.
protected  boolean isModified()
           
protected  void modified()
           
 void selfConfigure()
           
 void setQueryService(LocalQuery iQuery)
          Query service Bean injector.
 void setSecuritySystem(SecuritySystem secSys)
           
 void setUpdateService(LocalUpdate update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ome.system.SelfConfigurableService
getServiceInterface
 
Methods inherited from interface ome.api.StatefulServiceInterface
activate, close, passivate
 

Field Detail

iQuery

protected transient LocalQuery iQuery

iUpdate

protected transient LocalUpdate iUpdate

sec

protected transient SecuritySystem sec

modified

protected transient boolean modified
True if any write operation took place on this bean. Allows for updating the database representation if needed.

See Also:
ticket:#1961
Constructor Detail

AbstractStatefulBean

public AbstractStatefulBean()
Method Detail

setQueryService

public final void setQueryService(LocalQuery iQuery)
Query service Bean injector.

Parameters:
iQuery - an IQuery service.

setUpdateService

public final void setUpdateService(LocalUpdate update)

setSecuritySystem

public final void setSecuritySystem(SecuritySystem secSys)

selfConfigure

public void selfConfigure()
Specified by:
selfConfigure in interface SelfConfigurableService

getBeanHelper

protected BeanHelper getBeanHelper()

isModified

protected boolean isModified()

modified

protected void modified()

getCurrentEventContext

public final EventContext getCurrentEventContext()
Description copied from interface: StatefulServiceInterface
Returns the current EventContext for this instance. This is useful for later identifying changes made by this Event.

Specified by:
getCurrentEventContext in interface StatefulServiceInterface


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.