|
|||||||||||
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
com.tivoli.twg.engine.TWGImageSet
Image set is a class for easily collecting a set of related images resource identifiers. Each record in an image set has a specific index value and provides a value representing an image resource (in System Resource format, as used with ClassLoader.getSystemResource()). Once defined, a given image set is read-only and persistent.
Field Summary |
---|
Fields inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
CLASS_NAME, SIZEOF_BYTE, SIZEOF_CHAR, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
TWGImageSet()
Default constructor for TWGImageSet |
Method Summary | |
---|---|
static java.lang.String |
ComputeHashString(java.lang.String[] v)
Compute hash key string (concatenation of strings, followed by "|") |
void |
Delete()
Destructor for TWGImageSet: remove object from table |
static TWGImageSet |
FindImageSet(java.lang.String[] image_names)
Find or make TWGImageSet for a given set of image names |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
java.lang.String |
getImageName(int index)
Get image resource string at given index |
byte[] |
GetShadowRecord(java.util.Locale locale)
Get buffer containing current values of the shadowed attributes to be delivered to the console shadow class. |
long |
GetShadowVersion()
Get object state version. |
int |
ImageNameCount()
Number of image strings defined in set |
protected void |
restoreData(TWGPersistentObjectDictionary dictionary,
boolean resolveObjectReferences)
Method for restoring persistent object data. |
protected void |
saveData(TWGPersistentObjectDictionary dictionary)
Method for saving persistent object data. |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGPersistentObject |
---|
Destroy, enableAsyncWrites, fromPersistID, initialize, isNewPersistentStore, isSaveRequired, PersistID, restore, restoreAll, save, save, setSaveRequired, terminate, toPersistID |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, 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 |
Constructor Detail |
public TWGImageSet()
Method Detail |
public void Delete()
Delete
in class TWGObject
public static TWGImageSet FindImageSet(java.lang.String[] image_names) throws TWGPersistentObjectSaveException
image_names
- - array of attribute string values
TWGPersistentObjectSaveException
- if error creating new objectprotected void saveData(TWGPersistentObjectDictionary dictionary) throws TWGPersistentObjectSaveException
saveData
in class TWGPersistentObject
TWGPersistentObjectSaveException
- thrown to abort save procedure.protected void restoreData(TWGPersistentObjectDictionary dictionary, boolean resolveObjectReferences) throws TWGPersistentObjectRestoreException
restoreData
in class TWGPersistentObject
resolveObjectReferences
- used to indicate if object references should be
resolved during restore.
TWGPersistentObjectRestoreException
- thrown to abort restore procedure.public static java.lang.String ComputeHashString(java.lang.String[] v)
v
- - array of image strings
public java.lang.String getImageName(int index)
index
- - index of resource string in set (base 0)
public int ImageNameCount()
public void UpdateShadowVersion()
UpdateShadowVersion
in interface TWGBaseShadowedObject
public long GetShadowVersion()
GetShadowVersion
in interface TWGBaseShadowedObject
public java.lang.String GetConShadowClass()
GetConShadowClass
in interface TWGBaseShadowedObject
public byte[] GetShadowRecord(java.util.Locale locale)
GetShadowRecord
in interface TWGBaseShadowedObject
locale
- - Locale of requested data
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |