Package org.intermine.objectstore.query
Class QueryClass
- java.lang.Object
-
- org.intermine.objectstore.query.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 classesQueryClass(java.lang.Class<? extends FastPathObject> type)
Constructs a QueryClass representing the specified Java classQueryClass(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 QueryClassjava.lang.String
toString()
Returns a String representation.
-
-
-
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
-
getType
public java.lang.Class<? extends FastPathObject> getType()
Gets the Java class represented by this QueryClass- Specified by:
getType
in interfaceQueryOrderable
- Specified by:
getType
in interfaceQuerySelectable
- Returns:
- the Class
-
toString
public java.lang.String toString()
Returns a String representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a String representation
-
-