Class Objects


  • public final class Objects
    extends java.lang.Object
    Helper class to encapsulate some common logic regarding the use of data objects.
    Author:
    Alex Kalderimis
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.Integer,​InterMineObject> getObjects​(InterMineAPI im, java.util.Set<java.lang.Integer> objectIds)
      Resolve a set of ids to mapping from ID to object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getObjects

        public static java.util.Map<java.lang.Integer,​InterMineObject> getObjects​(InterMineAPI im,
                                                                                        java.util.Set<java.lang.Integer> objectIds)
                                                                                 throws ObjectStoreException
        Resolve a set of ids to mapping from ID to object.
        Parameters:
        im - The InterMine state object.
        objectIds - The ids we want to resolve.
        Returns:
        The mapping.
        Throws:
        ObjectStoreException - If we can't run the required query.