|
|||||||||||
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.TWGRelationshipSet
Container class for collecting and maintaining lists of
TWGRelationship
IDs. This class is used by the
TWGAssociation
classes to maintain the set
of TWGRelationship
objects generated by matches to
an association's relationship criteria. Each instance is shadowed to
a specific Director console, and has its contents maintained
by a specific TWGAssociation
instance.
TWGRelationship
,
TWGActiveConsole
,
TWGAssociation
Constructor Summary | |
---|---|
TWGRelationshipSet(TWGActiveConsole con)
Construct empty set owned by given console |
Method Summary | |
---|---|
void |
AttachObjectToConsole(TWGActiveConsole act_con)
Associate the object with the given TWGActiveConsole
instance. |
void |
Delete()
Delete method for relationship set |
void |
DetachObjectFromAllConsoles()
Disassociate the object from all TWGActiveConsoles . |
void |
DetachObjectFromConsole(TWGActiveConsole act_con)
Disassociate the object from the given TWGActiveConsole instance. |
TWGRelationship |
findRelationshipByID(java.lang.String rel_id)
Find TWGRelationship instance by relationship ID |
java.lang.String |
GetConShadowClass()
Get name of console shadow class. |
TWGActiveConsole |
getOwningActiveConsole()
Get TWGActiveConsole which owns the
TWGRelationshipSet |
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. |
void |
InsertRelationship(TWGRelationship rel)
Insert single TWGRelationship instance into set |
void |
removeAllLinksToManagedObject(TWGManagedObject mo)
Remove all references to a given TWGManagedObject : used
when object deleted |
void |
removeAllLinksToManagedObjectList(IntValueSet mo_set)
Remove all references to list of TWGManagedObjects |
void |
removeAllLinksToManagedObjectList(LongValueSet mo_set)
Remove all references to list of TWGManagedObjects |
static void |
removeManagedObjectFromAllSets(TWGManagedObject mo)
Remove all references in all TWGRelationshipSets to
given TWGManagedObject instance. |
static void |
removeManagedObjectListFromAllSets(IntValueSet mo_set)
Remove all references in all TWGRelationshipSets to given
TWGManagedObjects |
void |
RemoveRelationship(TWGRelationship rel)
Remove single TWGRelationship instance from set |
void |
reset()
Empty all relationships out of the set : deletes all TWGRelationship instances currently in the set |
void |
updateRelationshipID(TWGRelationship rel,
java.lang.String old_id)
Update hash-by-id-string hash for given relationship instance. |
void |
UpdateShadowVersion()
Update object state version. |
Methods inherited from class com.tivoli.twg.engine.TWGObject |
---|
AllObjects, AllObjects, Destroy, 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 TWGRelationshipSet(TWGActiveConsole con)
con
- - owning consoleMethod Detail |
public void Delete()
Delete
in class TWGObject
public void InsertRelationship(TWGRelationship rel) throws InvalidObjectIDException
TWGRelationship
instance into set
rel
- - new relationship
InvalidObjectIDException
- -
invalid/deleted object
InvalidObjectIDException
public void RemoveRelationship(TWGRelationship rel) throws InvalidObjectIDException
TWGRelationship
instance from set
InvalidObjectIDException
- - invalid/deleted object
InvalidObjectIDException
public TWGRelationship findRelationshipByID(java.lang.String rel_id)
TWGRelationship
instance by relationship ID
rel_id
- - Relationship ID
TWGRelationship
found, or null if not foundpublic void updateRelationshipID(TWGRelationship rel, java.lang.String old_id)
TWGRelationship
when its relationship ID is updated.
rel
- - Updated relationship instanceold_id
- - Previous relationship string value (may be null)public void UpdateShadowVersion()
TWGActiveConsole.nextShadowVersion()
to update its internal
state_version
attribute (a long
instance
variable). This method should be called by any methods of the object's
class or subclasses which modify attributes which are
send to the shadow objects on the console).
UpdateShadowVersion
in interface TWGBaseShadowedObject
public long GetShadowVersion()
state_version
.
GetShadowVersion
in interface TWGBaseShadowedObject
state_version
attribute valuepublic java.lang.String GetConShadowClass()
TWGConObject
subclass which is used to hold the
attributes shadowed to the console.
GetConShadowClass
in interface TWGBaseShadowedObject
com.tivoli.twg.engine.TWGConObject
subclass
which object shadows topublic byte[] GetShadowRecord(java.util.Locale locale)
GetShadowRecord
in interface TWGBaseShadowedObject
locale
- - Locale
of requested data
public void AttachObjectToConsole(TWGActiveConsole act_con)
TWGActiveConsole
instance. This method should simply call the
TWGActiveConsole.objectAddToConsole()
method.
AttachObjectToConsole
in interface TWGConsoleSpecShadowedObject
act_con
- - Active console instance to be associated withpublic void DetachObjectFromConsole(TWGActiveConsole act_con)
TWGActiveConsole
instance. This method should simply
call the TWGActiveConsole.objectRemoveFromConsole()
method.
DetachObjectFromConsole
in interface TWGConsoleSpecShadowedObject
act_con
- - Active console instance to be disassociated frompublic void DetachObjectFromAllConsoles()
TWGActiveConsoles
.
This method should simply call the
TWGActiveConsole.objectRemoveFromAllConsoles()
method.
DetachObjectFromAllConsoles
in interface TWGConsoleSpecShadowedObject
public void reset()
TWGRelationship
instances currently in the set
public void removeAllLinksToManagedObject(TWGManagedObject mo)
TWGManagedObject
: used
when object deleted
mo
- - TWGManagedObject
to be removedpublic void removeAllLinksToManagedObjectList(LongValueSet mo_set)
TWGManagedObjects
mo_set
- - list of TWGManagedObject
object IDs to removepublic void removeAllLinksToManagedObjectList(IntValueSet mo_set)
TWGManagedObjects
mo_set
- - list of TWGManagedObject
persistent IDs
to removepublic static void removeManagedObjectFromAllSets(TWGManagedObject mo)
TWGRelationshipSets
to
given TWGManagedObject
instance.
mo
- - managed object to be removedpublic static void removeManagedObjectListFromAllSets(IntValueSet mo_set)
TWGRelationshipSets
to given
TWGManagedObjects
mo_set
- - IDs of TWGManagedObjects
to be removedpublic TWGActiveConsole getOwningActiveConsole()
TWGActiveConsole
which owns the
TWGRelationshipSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |