Class QueryCollectionReference


  • public class QueryCollectionReference
    extends QueryReference
    Represents a field of a QueryClass that is a collection
    Author:
    Mark Woodbridge, Richard Smith, Matthew Wakeling
    • Constructor Detail

      • QueryCollectionReference

        public QueryCollectionReference​(QueryClass qc,
                                        java.lang.String fieldName)
        Constructs a QueryCollectionReference representing the specified field of a QueryClass
        Parameters:
        qc - the QueryClass
        fieldName - the name of the relevant field
        Throws:
        java.lang.NullPointerException - if the field name is null
        java.lang.IllegalArgumentException - if the field is not a collection or does not exist
      • QueryCollectionReference

        public QueryCollectionReference​(QueryClassBag qcb,
                                        java.lang.String fieldName)
        Constructs a QueryCollectionReference representing the specified field of a QueryClassBag
        Parameters:
        qcb - the QueryClassBag
        fieldName - the name of the relevant field
        Throws:
        java.lang.NullPointerException - if the field name is null
        java.lang.IllegalArgumentException - if the field is not a collection or does not exist
      • QueryCollectionReference

        public QueryCollectionReference​(InterMineObject qcObj,
                                        java.lang.String fieldName)
        Constructs a QueryCollectionReference representing the specified field of an object
        Parameters:
        qcObj - the InterMineObject
        fieldName - the name of the relevant field
        Throws:
        java.lang.NullPointerException - if the field name is null
        java.lang.IllegalArgumentException - if the field is not a collection or does not exist
    • Method Detail

      • getType

        public java.lang.Class<? extends java.util.Collection<?>> getType()
        Gets the Java class of this QueryReference.
        Overrides:
        getType in class QueryReference
        Returns:
        the class name
      • getQcObject

        public InterMineObject getQcObject()
        Gets the InterMineObject of this QueryReference.
        Returns:
        an InterMineObject
      • getQcb

        public QueryClassBag getQcb()
        Gets the QueryClassBag of this QueryReference.
        Returns:
        a QueryClassBag
      • getQcType

        public java.lang.Class<? extends FastPathObject> getQcType()
        Returns the type of the queryclass of this reference
        Overrides:
        getQcType in class QueryReference
        Returns:
        a Class