public class IdCache extends Object
| Modifier and Type | Method and Description | 
|---|---|
void | 
endObjectDump(LibraryObject lo)
Marks that the given LibaryObject was fully dumped. 
 | 
String | 
get(LibraryObject lo)
Returns the reference ID of the object or  
null if the object
 is not cached. | 
static IdCache | 
getGlobalInstance()
Returns the global cache instance. 
 | 
boolean | 
needsDump(LibraryObject lo)
Returns  
true if the given object was put in the cache
 (hence referenced) but not yet fully dumped. | 
String | 
put(LibraryObject lo,
   LibraryObject parentLO,
   String parentAttrName)
Puts an object in the cache, returning the generated reference ID. 
 | 
void | 
startObjectDump(LibraryObject lo)
Called at the start of the dump process for a given object. 
 | 
public static IdCache getGlobalInstance()
public String get(LibraryObject lo) throws IfsException
null if the object
 is not cached.lo - the objectnull if the object is not
            in the cacheIfsException - if the operation failspublic String put(LibraryObject lo, LibraryObject parentLO, String parentAttrName) throws IfsException
lo - the current objectparentLO - the parent LO that the current LO was retrieved from.
                       Can be nullparentAttrName - the attribute name of the parrent LO that the
                       current LO was retrieved from.
                       Can be nullIfsException - if the operation failspublic void startObjectDump(LibraryObject lo) throws IfsException
lo - the objectIfsException - if the operation failspublic void endObjectDump(LibraryObject lo) throws IfsException
lo - the object to markIfsException - if the operation failspublic boolean needsDump(LibraryObject lo) throws IfsException
true if the given object was put in the cache
 (hence referenced) but not yet fully dumped.lo - the objecttrue if the object needs to be fully dumpedIfsException - if the operation failsCopyright © 2025. All rights reserved.