stomp.enhance
Class AbstractServiceProxy

java.lang.Object
  |
  +--stomp.enhance.AbstractServiceProxy
All Implemented Interfaces:
AccessControlled, Persistent, java.io.Serializable, ServiceEnabled, ServiceEnhanced, ServiceProxy, TransientTransactional

public abstract class AbstractServiceProxy
extends java.lang.Object
implements ServiceProxy

serves as the base class for any hierarchy of service enhanced objects.

Author:
Eric Lindauer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class stomp.service.ServiceEnabled
ServiceEnabled.AccessFactory
 
Field Summary
protected  ServiceDelegate _delegate
           
 
Fields inherited from interface stomp.jdo.Persistent
STOMP
 
Constructor Summary
protected AbstractServiceProxy(ServiceDelegate delegate)
           
 
Method Summary
 void dataChanged()
          a hint from the JDOCache that the objects persistent data may have been changed.
 boolean equals(java.lang.Object object)
           
 java.lang.Object findInPm(javax.jdo.PersistenceManager pm)
          if the underlying delegate is not already persistent, refind the related persistent objects in the given PM.
 ObjectId getDeletedInfo()
          returns a JDO object id holder that contains extra information about the type of this object.
 ServiceDelegate getEnhancedServiceDelegate()
          returns a non-serviced view of the object this proxy is wrapping.
 AbstractServiceProxy getProxy()
           
 java.lang.Object getReadOnly()
           
 java.lang.String getSchemaGroup()
          identifies the schema group this object is a part of.
 ServiceEnabled getServiceDelegate()
          returns the object whose methods are being serviced.
 ServiceEnabled getServiceLayer()
          returns the service layer view of this object.
 int hashCode()
           
 void setServiceDelegate(ServiceDelegate delegate)
          after this point, methods invoked on the proxy should be serviced and delegated to the given delegate.
 void setServiceLayer(ServiceEnabled delegate)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delegate

protected ServiceDelegate _delegate
Constructor Detail

AbstractServiceProxy

protected AbstractServiceProxy(ServiceDelegate delegate)
Method Detail

setServiceDelegate

public void setServiceDelegate(ServiceDelegate delegate)
Description copied from interface: ServiceProxy
after this point, methods invoked on the proxy should be serviced and delegated to the given delegate.

Specified by:
setServiceDelegate in interface ServiceProxy

getProxy

public AbstractServiceProxy getProxy()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

findInPm

public java.lang.Object findInPm(javax.jdo.PersistenceManager pm)
if the underlying delegate is not already persistent, refind the related persistent objects in the given PM.

Specified by:
findInPm in interface TransientTransactional

getEnhancedServiceDelegate

public ServiceDelegate getEnhancedServiceDelegate()
Description copied from interface: ServiceProxy
returns a non-serviced view of the object this proxy is wrapping.

Specified by:
getEnhancedServiceDelegate in interface ServiceProxy

getServiceLayer

public ServiceEnabled getServiceLayer()
Description copied from interface: ServiceEnabled
returns the service layer view of this object.

Specified by:
getServiceLayer in interface ServiceEnabled

setServiceLayer

public void setServiceLayer(ServiceEnabled delegate)
Specified by:
setServiceLayer in interface ServiceEnabled

getServiceDelegate

public ServiceEnabled getServiceDelegate()
Description copied from interface: ServiceEnabled
returns the object whose methods are being serviced.

Specified by:
getServiceDelegate in interface ServiceEnabled

getReadOnly

public java.lang.Object getReadOnly()
Specified by:
getReadOnly in interface AccessControlled

dataChanged

public void dataChanged()
Description copied from interface: Persistent
a hint from the JDOCache that the objects persistent data may have been changed. objects should respond by deleting rebuilding transient data, etc.

Specified by:
dataChanged in interface Persistent

getDeletedInfo

public ObjectId getDeletedInfo()
Description copied from interface: Persistent
returns a JDO object id holder that contains extra information about the type of this object.

Specified by:
getDeletedInfo in interface Persistent

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getSchemaGroup

public java.lang.String getSchemaGroup()
Description copied from interface: Persistent
identifies the schema group this object is a part of.

Specified by:
getSchemaGroup in interface Persistent