Class QueryResultMapping

    • Method Detail

      • getName

        public String getName()
        Return the name for this query result.
      • getDefiningType

        public Class<?> getDefiningType()
        The class that defines this query result, or null if none.
      • setDefiningType

        public void setDefiningType​(Class<?> cls)
        The class that defines this query result, or null if none.
      • getColumnResults

        public Object[] getColumnResults()
        Ids of mapped scalar columns in the result. These will typically be column names.
        See Also:
        Result
      • addColumnResult

        public void addColumnResult​(Object id)
        Add the id of a mapped column in the query result. This will typically be a column name.
        See Also:
        Result
      • getSourceMode

        public int getSourceMode()
        The source mode of this query result.
      • setSourceMode

        public void setSourceMode​(int mode)
        The source mode of this query result.
      • getListingIndex

        public int getListingIndex()
        Relative order of result mapping in metadata.
      • setListingIndex

        public void setListingIndex​(int idx)
        Relative order of result mapping in metadata.
      • setSource

        public void setSource​(File file,
                              Object scope,
                              int srcType)
      • getResourceName

        public String getResourceName()
        Description copied from interface: SourceTracker
        Return the domain-meaningful name of the resource that was loaded from this source. I.e., if we had loaded the source for a Java class, this would return the name of the class.
        Specified by:
        getResourceName in interface SourceTracker
      • getLineNumber

        public int getLineNumber()
        Description copied from interface: SourceTracker
        Return the line number of the file at which this instance was parsed.
        Specified by:
        getLineNumber in interface SourceTracker
      • setLineNumber

        public void setLineNumber​(int lineNum)
      • getColNumber

        public int getColNumber()
        Description copied from interface: SourceTracker
        Return the column number in the line of the file at which this instance was parsed.
        Specified by:
        getColNumber in interface SourceTracker
      • setColNumber

        public void setColNumber​(int colNum)