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
-
beginInput()
- Called by the persist manager before the object
is read from the persist storage and before any
call to 'aSlot.setValue()'
-
beginOutput()
- Called by the persist manager before the object
is written to the persist storage and before any
call to 'aSlot.getValue()'
-
classes()
- Gets the class definitions for this object.
-
createObject()
- Tell the definition manager to create an instance
of the object.
-
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.
-
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.
-
getChecksum()
- Return a checksum of the slots of the object.
-
getClassName()
- Gets the name of the class of the object as a String.
-
getObject()
- Returns the object created by this controller
-
setObject(Object)
- Set the object for which this definition manager
must provide access.
-
setPersistManager(PersistManager)
-
setPersistManager
public void setPersistManager(PersistManager p)
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()'
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.
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()'
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.
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.
createObject
public void createObject() throws Exception
- Tell the definition manager to create an instance
of the object.
getObject
public Object getObject() throws InstantiationException, IllegalAccessException, Exception
- Returns the object created by this controller
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.
getClassName
public String getClassName()
- Gets the name of the class of the object as a String.
The classname is as returned by Class.getName().
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