|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CatalogBase
|
+--com.starbase.starteam.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 and secondary
descriptors of objects.
Property.getClassIDOfValue(),
Server.getTypes(),
Type.getClassID()| Constructor Summary | |
Catalog(Server server,
Type type,
int viewScopeID)
Deprecated. |
|
| Method Summary | |
void |
discard()
Discards all cached data for this Catalog. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
java.lang.Object |
get(int objectID,
int propertyID)
Returns the property value for the specified "object" ID and propertyID. |
int[] |
getAllIDs()
Returns a list of the object IDs currently stored in the catalog. |
Set |
getIDs()
Deprecated. Use getAllIDs() instead. |
java.lang.Object |
getPrimaryDescriptor(int objectID)
Returns the property value for the "primary descriptor" property of the given "object" ID. |
int[] |
getPropertyIDs()
Returns an array of property IDs for which this catalog has data. |
Type |
getType()
Gets the type that owns this catalog. |
int |
hashCode()
returns a unique hash for all instances of this type |
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 |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Catalog(Server server,
Type type,
int viewScopeID)
Server and Type.
NOTE: This public constructor is deprecated; use Type.getCatalog() instead.
server - the server source for the catalog informationtype - the type for this catalogviewScopeID - This parameter is ignored; it's here only for backward compatibility with earlier SDK releases.Type.getCatalog()| Method Detail |
public Type getType()
public void populate()
populate in class com.starbase.starteam.CatalogBaseCatalog.refresh(),
Catalog.discard()public void refreshIDs(int[] objectIDs)
refreshIDs in class com.starbase.starteam.CatalogBaseobjectIDs - List of objectIDs to be refreshed.Catalog.refresh(),
Catalog.populate(),
Catalog.discard(),
Server.enableMPX()public void discard()
discard in class com.starbase.starteam.CatalogBaseCatalog.refresh()public void refresh()
refresh in class com.starbase.starteam.CatalogBaseCatalog.refreshIDs(int[]),
Catalog.populate(),
Catalog.discard(),
Server.enableMPX()public int[] getPropertyIDs()
getPropertyIDs in class com.starbase.starteam.CatalogBaseProperty.getID()
public java.lang.Object get(int objectID,
int propertyID)
get in class com.starbase.starteam.CatalogBaseobjectID - the object ID for requested objectpropertyID - the propertyID for the requested property value
java.lang.IllegalArgumentException - is the object with the specified ID is
not in the catalogCatalog.getPropertyIDs()public java.lang.Object getPrimaryDescriptor(int objectID)
getPrimaryDescriptor in class com.starbase.starteam.CatalogBaseobjectID - the object ID for which you want the value.
Property.isPrimaryDescriptor()public boolean hasID(int id)
hasID in class com.starbase.starteam.CatalogBaseid - ObjectID to be examined.
public Set getIDs()
public int[] getAllIDs()
getAllIDs in class com.starbase.starteam.CatalogBasepublic boolean isRefreshRequired()
isRefreshRequired in class com.starbase.starteam.CatalogBaseCatalog.refresh()public boolean isRefreshIDsRequired(int[] objIDs)
isRefreshIDsRequired in class com.starbase.starteam.CatalogBaseobjIDs - List of objectIDs to be tested.
Catalog.refreshIDs(int[])public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||