Class JOP.persist.PersistableObjectDefinition
All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home

Class JOP.persist.PersistableObjectDefinition

java.lang.Object
   |
   +----JOP.persist.PersistableObjectDefinition

public class PersistableObjectDefinition
extends Object
implements ObjectDefinition

This is an INTERNAL class.

This class supports object definitions for objects that support the Persistable interface. This class and the accompanying PodXxxxx classes act to provide a standard interface to objects that implement Persistable.

See Also:
MarshallObjectDefinition, NativeObjectDefinition

Method Index

 o beginInput()
Called by the persist manager before the object is read from the persist storage and before any call to 'aSlot.setValue()'
 o beginOutput()
Called by the persist manager before the object is written to the persist storage and before any call to 'aSlot.getValue()'
 o classes()
Gets the class definitions for this object.
 o createObject()
Tell the definition manager to create an instance of the object.
 o endInput()
Called by the persist manager after the object has been read from the persist storage and after all calls to 'aSlot.setValue()' have been completed.
 o endOutput()
Called by the persist manager after the object has been written to the persist storage and after all calls to 'aSlot.getValue()' have been completed.
 o getChecksum()
Return a checksum of the slots of the object.
 o getClassName()
Gets the name of the class of the object as a String.
 o getObject()
Returns the object created by this controller
 o setObject(Object)
Set the object for which this definition manager must provide access.
 o setPersistManager(PersistManager)

Methods

 o setPersistManager
  public void setPersistManager(PersistManager p)
 o beginInput
  public void beginInput() throws Exception
Called by the persist manager before the object is read from the persist storage and before any call to 'aSlot.setValue()'
 o endInput
  public void endInput() throws Exception
Called by the persist manager after the object has been read from the persist storage and after all calls to 'aSlot.setValue()' have been completed.
 o beginOutput
  public void beginOutput() throws Exception
Called by the persist manager before the object is written to the persist storage and before any call to 'aSlot.getValue()'
 o endOutput
  public void endOutput()
Called by the persist manager after the object has been written to the persist storage and after all calls to 'aSlot.getValue()' have been completed.
 o setObject
  public void setObject(Object obj) throws Exception
Set the object for which this definition manager must provide access. This will occur if we are reading the object or updating an existing object.
 o createObject
  public void createObject() throws Exception
Tell the definition manager to create an instance of the object.
 o getObject
  public Object getObject() throws InstantiationException, IllegalAccessException, Exception
Returns the object created by this controller
 o getChecksum
  public long getChecksum()
Return a checksum of the slots of the object. This value is used by the PersistManager to determine whether the object has changed. Should not ever return a value of 0.
 o getClassName
  public String getClassName()
Gets the name of the class of the object as a String. The classname is as returned by Class.getName().
 o classes
  public Enumeration classes()
Gets the class definitions for this object. The class defintiions include the current class and all of the super classes. Classnames must be returned in order from the current class, the current classes superclass, up to java.lang.Object.

The definition is stored as a vector of class defintions. Each class definition is a vector containing slot definitions.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  Home