|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Catalog
public final class Catalog
The Catalog class provides "global" access to certain properties of objects
from different classes. The catalog provides information about
Property values for the primary descriptors of
objects.
Note that the catalog is highly memory intensive and hence extremely expensive
Applications should make every effort to retrieve the primary descriptor
of an object using all means available before falling back to the catalog
Server.getTypes(),
Type.getClassID()| Nested Class Summary | |
|---|---|
static class |
Catalog.WebCacheCatalog
The Catalog class provides "global" access to certain properties of objects from different classes. |
| Method Summary | |
|---|---|
void |
discard()
Discards all cached data for this Catalog. |
java.lang.Object |
get(int objectID,
Property prprty)
Returns the property value for the specified "object" ID and property. |
int[] |
getAllIDs()
Returns a list of the object IDs currently stored in the catalog. |
java.lang.Object |
getPrimaryDescriptor(int objectID)
Returns the property value for the "primary descriptor" property of the given "object" ID. |
PropertyCollection |
getProperties()
Returns the collection of properties for which this catalog has data. |
Type |
getType()
Gets the type that owns this catalog. |
boolean |
hasID(int id)
Determines whether or not information for specified ObjectID has been cached in this Catalog. |
boolean |
isRefreshIDsRequired(int[] objIDs)
Returns true if a refresh() operation might have resulted in the catalog information being updated for any of the given object IDs; returns false if and only if it is known that the catalog information had not been changed since the last refresh. |
boolean |
isRefreshRequired()
Returns true if a refresh() operation might have resulted in the catalog information being updated; returns false if and only if it is known that the catalog information had not been changed since the last refresh. |
void |
populate()
Fetch the catalog data if needed. |
void |
refresh()
Update the contents of the Catalog to reflect recent changes to the server. |
void |
refreshIDs(int[] objectIDs)
Update the contents of the Catalog for the given Object IDs to reflect recent changes to the server. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Type getType()
public void populate()
public void refreshIDs(int[] objectIDs)
objectIDs - List of objectIDs to be refreshed.Server.enableMPX()public void discard()
public void refresh()
Server.enableMPX()public PropertyCollection getProperties()
public java.lang.Object get(int objectID,
Property prprty)
objectID - the object ID for requested objectprprty - the requested property
public java.lang.Object getPrimaryDescriptor(int objectID)
objectID - the object ID for which you want the value.
Property.isPrimaryDescriptor()public boolean hasID(int id)
id - ObjectID to be examined.
public int[] getAllIDs()
public boolean isRefreshRequired()
public boolean isRefreshIDsRequired(int[] objIDs)
objIDs - List of objectIDs to be tested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||