Class DataObject

Class DataObject

java.lang.Object
   |
   +----PersistentObject
           |
           +----DataObject

public class DataObject
extends PersistentObject
DataObject Class This is a class which allows data or files that can be translated to a string representation to be saved to and retrived from a remote network data server

Variable Index

 o numField
 o numObjField
 o objectClassName

Constructor Index

 o DataObject()
The DataObject construction should be followed by a load so that the corresponding object fields will be set
 o DataObject(String, String)
Constructor for DataObject

Method Index

 o getContent()
 o getObjFields()
Determines how the fields of the objects should be filled after a (network) load To be declared by object developer
 o load(String)
Loads the object from a network (persistent object storage) database backend(and sets it's fields)
 o setContent(String)
 o setObjFields()
Sets up the object's fields into internal data structure.

Variables

 o objectClassName
  public final static String objectClassName
 o numField
  public final static int numField
 o numObjField
  public final static int numObjField

Constructors

 o DataObject
  public DataObject(String name,
                    String content)
Constructor for DataObject
Parameters:
name - The name of the object to be stored
content - The content of the object
 o DataObject
  public DataObject()
The DataObject construction should be followed by a load so that the corresponding object fields will be set

Methods

 o getContent
  public String getContent()
 o setContent
  public void setContent(String ct)
 o load
  public boolean load(String strId)
Loads the object from a network (persistent object storage) database backend(and sets it's fields)
Overrides:
load in class PersistentObject
 o setObjFields
  protected void setObjFields()
Sets up the object's fields into internal data structure.
Overrides:
setObjFields in class PersistentObject
 o getObjFields
  protected void getObjFields()
Determines how the fields of the objects should be filled after a (network) load To be declared by object developer
Overrides:
getObjFields in class PersistentObject