|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGObject
com.tivoli.twg.engine.TWGPersistentObject
Base class for persistent objects.
Field Summary | |
---|---|
static java.lang.String |
CLASS_NAME
|
static int |
SIZEOF_BYTE
|
static int |
SIZEOF_CHAR
|
static int |
SIZEOF_DOUBLE
|
static int |
SIZEOF_FLOAT
|
static int |
SIZEOF_INT
|
static int |
SIZEOF_LONG
|
static int |
SIZEOF_SHORT
|
Constructor Summary | |
---|---|
TWGPersistentObject()
default constructor (required by newInstance() method of Class). |
Method Summary | |
---|---|
void |
Destroy()
Destroy a TWGPersistentObject. |
static boolean |
enableAsyncWrites(boolean enable)
Enable asynch writes |
static long |
fromPersistID(int identifier)
Convert persistent object identifier (int) to object identifier (long). |
static void |
initialize()
class initializer. |
static boolean |
isNewPersistentStore()
Test to see if persistent object store is new (i.e. |
boolean |
isSaveRequired()
method for determining if save required. |
int |
PersistID()
Get persistent identifier of object. |
static TWGPersistentObject |
restore(long identifier)
class method for restoring a persistent object. |
static long[] |
restoreAll()
class method for restoring all persistent objects. |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
method for restoring persistent object data. |
void |
save()
method for saving object data in persistent datastore. |
void |
save(java.lang.String targetClassName)
method for saving object data in persistent datastore. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
method for saving persistent object data. |
void |
setSaveRequired()
method for setting save required ("dirty") flag. |
static void |
terminate()
class terminator. |
static int |
toPersistID(long identifier)
Convert object identifier (long) to persistent object identitifer (int). |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, Delete, DumpTWGObjects, FindObject, isDeleted, isNewObject, isPersistent, isPersistent, isValid, isValid, ObjectID, setDistinctObjectID, SetObjectID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CLASS_NAME
public static final int SIZEOF_BYTE
public static final int SIZEOF_CHAR
public static final int SIZEOF_DOUBLE
public static final int SIZEOF_FLOAT
public static final int SIZEOF_INT
public static final int SIZEOF_LONG
public static final int SIZEOF_SHORT
Constructor Detail |
public TWGPersistentObject()
Method Detail |
public static void initialize() throws TWGClassInitException
TWGClassInitException
public static void terminate()
public static final int toPersistID(long identifier)
identifier
- object identifier from ObjectID() for persistent object.
public static final long fromPersistID(int identifier)
identifier
- persistent object identifier from PersistID().
public final int PersistID() throws InvalidObjectIDException
InvalidObjectIDException
- if invalid.public static long[] restoreAll()
public static TWGPersistentObject restore(long identifier) throws TWGPersistentObjectRestoreException
TWGPersistentObjectRestoreException.
TWGPersistentObjectRestoreException
public final void save() throws TWGPersistentObjectSaveException
TWGPersistentObjectSaveException
- if save failed.public final void save(java.lang.String targetClassName) throws TWGPersistentObjectSaveException
targetClassName
- class name of persistent object to save in datastore.
TWGPersistentObjectSaveException
- if save failspublic final void setSaveRequired()
public final boolean isSaveRequired()
public void Destroy() throws TWGObjectDestroyException
Destroy
in class TWGObject
TWGObjectDestroyException
- if error during destroyprotected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
TWGPersistentObjectSaveException
- thrown to abort save procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
resolveObjectReferences
- used to indicate if object references should be resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort restore procedure.public static boolean isNewPersistentStore()
public static boolean enableAsyncWrites(boolean enable)
enable
- - true if enabled, false if not
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |