stomp.jdo
Class AbstractPersistentObject

java.lang.Object
  |
  +--stomp.jdo.AbstractPersistentObject
All Implemented Interfaces:
Persistent, java.io.Serializable, TransientTransactional
Direct Known Subclasses:
AbstractServiceEnabled

public abstract class AbstractPersistentObject
extends java.lang.Object
implements Persistent

Convenience class which clients may extend to pick up much of the Persistent interface functionality.

Author:
Eric Lindauer
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface stomp.jdo.Persistent
STOMP
 
Constructor Summary
AbstractPersistentObject()
           
 
Method Summary
 void dataChanged()
          a hint from the JDOCache that the objects persistent data may have been changed.
 ObjectId getDeletedInfo()
          returns a JDO object id holder that contains extra information about the type of this object.
 java.lang.String getSchemaGroup()
          identifies the schema group this object is a part of.
 java.lang.String getStaticSchemaGroup()
           
protected  java.lang.Object writeReplace()
          replace this object with a JDO ID that can be used to refind the data during deserialization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface stomp.jdo.TransientTransactional
findInPm
 

Constructor Detail

AbstractPersistentObject

public AbstractPersistentObject()
Method Detail

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
replace this object with a JDO ID that can be used to refind the data during deserialization.

java.io.ObjectStreamException

dataChanged

public void dataChanged()
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

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

getStaticSchemaGroup

public java.lang.String getStaticSchemaGroup()