stomp.enhance
Class AbstractServiceDelegate

java.lang.Object
  |
  +--stomp.jdo.AbstractPersistentObject
        |
        +--stomp.service.AbstractServiceEnabled
              |
              +--stomp.enhance.AbstractServiceDelegate
All Implemented Interfaces:
AccessControlled, Persistent, java.io.Serializable, ServiceDelegate, ServiceEnabled, ServiceEnhanced, TransientTransactional

public abstract class AbstractServiceDelegate
extends AbstractServiceEnabled
implements ServiceDelegate

base class for all enhanced Service Delegate objects, which implements common functionality like getting the proxy, caching wrapped versions of fields, etc...

Author:
Eric Lindauer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class stomp.service.ServiceEnabled
ServiceEnabled.AccessFactory
 
Field Summary
 
Fields inherited from interface stomp.jdo.Persistent
STOMP
 
Constructor Summary
AbstractServiceDelegate()
           
 
Method Summary
protected abstract  ServiceProxy createServiceProxy()
           
 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)
          overriden by subclasses to refind persistent relations in the given persistenceManager.
 ServiceProxy getServiceProxy()
          returns a ServiceProxy which has this object as its ServiceDelegate.
 boolean proxyIsInitialized()
          returns true if the ServiceProxy for this object has been initialized, false otherwise.
 void setServiceProxy(ServiceProxy proxy)
          sets the object that should be returned from any calls to getServiceProxy
 java.lang.Object xGetProxy(java.lang.Object object)
           
 java.lang.Object xGetWrappedObject(java.lang.Object object)
           
 
Methods inherited from class stomp.service.AbstractServiceEnabled
getReadOnly, getServiceDelegate, getServiceLayer, setServiceLayer
 
Methods inherited from class stomp.jdo.AbstractPersistentObject
getDeletedInfo, getSchemaGroup, getStaticSchemaGroup, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface stomp.service.ServiceEnabled
getServiceDelegate, getServiceLayer, setServiceLayer
 
Methods inherited from interface stomp.access.AccessControlled
getReadOnly
 
Methods inherited from interface stomp.jdo.Persistent
getDeletedInfo, getSchemaGroup
 

Constructor Detail

AbstractServiceDelegate

public AbstractServiceDelegate()
Method Detail

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
Overrides:
dataChanged in class AbstractPersistentObject

proxyIsInitialized

public boolean proxyIsInitialized()
Description copied from interface: ServiceDelegate
returns true if the ServiceProxy for this object has been initialized, false otherwise. If getServiceProxy has been called, this method returns true;

Specified by:
proxyIsInitialized in interface ServiceDelegate

setServiceProxy

public void setServiceProxy(ServiceProxy proxy)
Description copied from interface: ServiceDelegate
sets the object that should be returned from any calls to getServiceProxy

Specified by:
setServiceProxy in interface ServiceDelegate

getServiceProxy

public ServiceProxy getServiceProxy()
Description copied from interface: ServiceDelegate
returns a ServiceProxy which has this object as its ServiceDelegate.

Specified by:
getServiceProxy in interface ServiceDelegate

createServiceProxy

protected abstract ServiceProxy createServiceProxy()

findInPm

public java.lang.Object findInPm(javax.jdo.PersistenceManager pm)
overriden by subclasses to refind persistent relations in the given persistenceManager.

Specified by:
findInPm in interface TransientTransactional

xGetProxy

public java.lang.Object xGetProxy(java.lang.Object object)

xGetWrappedObject

public java.lang.Object xGetWrappedObject(java.lang.Object object)

equals

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