Class QueryClass

  • All Implemented Interfaces:
    FromElement, QueryNode, QueryOrderable, QuerySelectable

    public class QueryClass
    extends java.lang.Object
    implements QueryNode, FromElement
    Represents the database extent of a Java class NOTE - No equals() method is defined for this class and none should be. org.intermine.objectstore.query.Query.equals relies on QueryClass using Object.equals() to prevent ambiguity.
    Author:
    Mark Woodbridge, Richard Smith, Matthew Wakeling
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryClass​(java.lang.Class<?>... types)
      Constructs a QueryClass representing the specified array of classes
      QueryClass​(java.lang.Class<? extends FastPathObject> type)
      Constructs a QueryClass representing the specified Java class
      QueryClass​(java.util.Set<java.lang.Class<?>> types)
      Constructs a QueryClass representing the specified set of classes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends FastPathObject> getType()
      Gets the Java class represented by this QueryClass
      java.lang.String toString()
      Returns a String representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueryClass

        public QueryClass​(java.lang.Class<? extends FastPathObject> type)
        Constructs a QueryClass representing the specified Java class
        Parameters:
        type - the Java class
      • QueryClass

        public QueryClass​(java.util.Set<java.lang.Class<?>> types)
        Constructs a QueryClass representing the specified set of classes
        Parameters:
        types - the Set of classes
      • QueryClass

        public QueryClass​(java.lang.Class<?>... types)
        Constructs a QueryClass representing the specified array of classes
        Parameters:
        types - the array of classes
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a String representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String representation