|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.uwgm.proesrv.rrc.DbObjCache
Maintains a set of uwgmdb objects.
Nested Class Summary | |
static interface |
DbObjCache.Visitor
|
static class |
DbObjCache.VisitorAdapter
|
Field Summary | |
private Map |
dbObjMap
|
Constructor Summary | |
DbObjCache()
|
Method Summary | |
com.ptc.windchill.uwgm.soap.uwgmdb.DbObj |
addDbObj(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
Cache DbObj uniquely by object ID. |
void |
addIterations(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration[] iterations)
Convenience method. |
void |
clear()
|
boolean |
contains(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
Check if the cache contains an object |
boolean |
contains(String dbObjId)
Check if the cache contains an object |
com.ptc.windchill.uwgm.soap.uwgmdb.DbObj |
getDbObj(String dbObjId)
Access by ObjectIdentifier's string representation. |
Collection |
getDbObjects()
All cached DbObj objects as a Collection. |
Collection |
getDbObjects(Class objectClass)
Select all collected objects of a given class. |
boolean |
isEmpty()
Check if the cache is empty |
void |
visitDbObjects(Class objectClass,
DbObjCache.Visitor visitor)
Visit all collected objects of a given class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final Map dbObjMap
Constructor Detail |
public DbObjCache()
Method Detail |
public com.ptc.windchill.uwgm.soap.uwgmdb.DbObj addDbObj(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
object
- DbObj to add
public final boolean isEmpty()
public void clear()
public final boolean contains(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
object
- DbObj
public final boolean contains(String dbObjId)
dbObjId
- String
public final com.ptc.windchill.uwgm.soap.uwgmdb.DbObj getDbObj(String dbObjId)
dbObjId
- String
public final Collection getDbObjects()
public final Collection getDbObjects(Class objectClass)
objectClass
- must be a subclass of uwgmdb.DbObj
public final void visitDbObjects(Class objectClass, DbObjCache.Visitor visitor) throws UwgmErrorException
objectClass
- must be a subclass of uwgmdb.DbObjvisitor
- Visitor
UwgmErrorException
public final void addIterations(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration[] iterations)
iterations
- Iteration[]
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |