|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.web.bag.PkQueryIdUpgrader
public class PkQueryIdUpgrader
Bag object id upgrader that uses the primary keys to find the objects in the new ObjectStore.
| Field Summary |
|---|
| Fields inherited from interface org.intermine.api.bag.IdUpgrader |
|---|
ERROR_UPGRADER |
| Constructor Summary | |
|---|---|
PkQueryIdUpgrader(ObjectStore os)
No argument constructor - will use all available keyDefs to upgrade bags. |
|
PkQueryIdUpgrader(java.lang.String sourceName,
ObjectStore os)
Construct with the name of a source - will use defined keys to upgrade bags. |
|
| Method Summary | |
|---|---|
boolean |
doUpgrade()
Return true if upgrade should be performed. |
java.util.Set<java.lang.Integer> |
getNewIds(InterMineObject oldObject,
ObjectStore os)
For the given object from an old ObjectStore, find the corresponding InterMineObjects in a new ObjectStore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PkQueryIdUpgrader(ObjectStore os)
os - the ObjectStore to query
public PkQueryIdUpgrader(java.lang.String sourceName,
ObjectStore os)
sourceName - name of sourceos - the ObjectStore to query| Method Detail |
|---|
public boolean doUpgrade()
doUpgrade in interface IdUpgrader
public java.util.Set<java.lang.Integer> getNewIds(InterMineObject oldObject,
ObjectStore os)
getNewIds in interface IdUpgraderoldObject - the template objectos - ObjectStore used to resolve objects
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||