|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGPersistentObjectDictionary
Dictionary used to save/restore persistent objects.
Field Summary | |
---|---|
static int |
SIZEOF_INT
|
static int |
SIZEOF_LONG
|
static int |
SIZEOF_SHORT
|
Constructor Summary | |
---|---|
TWGPersistentObjectDictionary(byte[] data,
int length)
constructor (for restoring). |
|
TWGPersistentObjectDictionary(java.lang.Class persistentObjectClass)
constructor (for saving). |
Method Summary | |
---|---|
byte[] |
get(java.lang.String name)
method for retrieving data associated with a class name. |
java.lang.String |
getRestoreClassName()
method for getting the class name of the persistent object being restored. |
java.util.Enumeration |
hierarchy()
method for enumerating class hierarchy of a persistent object. |
void |
put(java.lang.String name,
byte[] data)
method for associating data with a class name. |
protected void |
setRestoreClassName(java.lang.String className)
method for setting the class name of the persistent object being restored (for use by TWGPersistentObject only!) |
byte[] |
toByteArray()
method for converting persistent object data to an array of bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SIZEOF_INT
public static final int SIZEOF_LONG
public static final int SIZEOF_SHORT
Constructor Detail |
public TWGPersistentObjectDictionary(java.lang.Class persistentObjectClass)
persistentObjectClass
- class of persistent object to save.public TWGPersistentObjectDictionary(byte[] data, int length) throws TWGPersistentObjectDictionaryException
data
- persistent object data.length
- length of persistent object data.
TWGPersistentObjectDictionaryException
- thrown to abort instantiation.Method Detail |
public java.lang.String getRestoreClassName()
protected void setRestoreClassName(java.lang.String className)
className
- class name of the persistent object being restored.public byte[] toByteArray() throws TWGPersistentObjectDictionaryException
TWGPersistentObjectDictionaryException
- thrown to encapsulate another exception.public byte[] get(java.lang.String name)
public void put(java.lang.String name, byte[] data)
public java.util.Enumeration hierarchy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |