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
-
numField
-
-
numObjField
-
-
objectClassName
-
-
DataObject()
-
The DataObject construction should be followed by
a load so that the corresponding object fields will be set
-
DataObject(String, String)
- Constructor for DataObject
-
getContent()
-
-
getObjFields()
-
Determines how the fields of the objects should be filled after
a (network) load
To be declared by object developer
-
load(String)
- Loads the object from a network (persistent object storage) database
backend(and sets it's fields)
-
setContent(String)
-
-
setObjFields()
- Sets up the object's fields into internal data structure.
objectClassName
public final static String objectClassName
numField
public final static int numField
numObjField
public final static int numObjField
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
DataObject
public DataObject()
- The DataObject construction should be followed by
a load so that the corresponding object fields will be set
getContent
public String getContent()
setContent
public void setContent(String ct)
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
setObjFields
protected void setObjFields()
- Sets up the object's fields into internal data structure.
- Overrides:
- setObjFields in class PersistentObject
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