|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EquivalentObjectFetcher
Interface providing methods to look up equivalent objects by primary key in a production objectstore.
| Method Summary | |
|---|---|
java.util.Set<Query> |
createPKQueriesForClass(InterMineObject obj,
Source source,
boolean queryNulls,
ClassDescriptor cld)
Generates a query that searches for all objects in the database equivalent to a given example object, considering only one of it's classes. |
Query |
createPKQuery(InterMineObject obj,
Source source,
boolean queryNulls)
Generates a query that searches for all objects in the database equivalent to a given example object according to the primary keys defined for the given source. |
java.util.Set<InterMineObject> |
queryEquivalentObjects(InterMineObject obj,
Source source)
Returns a Set of objects that are equivalent to the given object, according to the primary keys defined by the given Source. |
| Method Detail |
|---|
java.util.Set<InterMineObject> queryEquivalentObjects(InterMineObject obj,
Source source)
throws ObjectStoreException
obj - the Object to look forsource - the data Source
ObjectStoreException - if an error occurs
Query createPKQuery(InterMineObject obj,
Source source,
boolean queryNulls)
throws MetaDataException
obj - the Object to take as an examplesource - the Source databasequeryNulls - if true allow primary keys to contain null values if the template obj has
nulls. If false the Query will constrain only those keys that have a value in the template
obj
MetaDataException - if anything goes wrong
java.util.Set<Query> createPKQueriesForClass(InterMineObject obj,
Source source,
boolean queryNulls,
ClassDescriptor cld)
throws MetaDataException
obj - the Object to take as an examplesource - the Source databasequeryNulls - if true allow primary keys to contain null values if the template obj has
nulls. If false the Query will constrain only those keys that have a value in the template
objcld - one of the classes that obj is. Only primary keys for this classes will be
considered
MetaDataException - if anything goes wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||