Class QueryResultMapping.PCResult

  • Enclosing class:
    QueryResultMapping

    public class QueryResultMapping.PCResult
    extends java.lang.Object
    A persistence-capable result.
    • Field Detail

      • DISCRIMINATOR

        public static final java.lang.String DISCRIMINATOR
        Path token to represent a discriminator.
        See Also:
        Constant Field Values
    • Method Detail

      • getCandidateType

        public java.lang.Class<?> getCandidateType()
        The result candidate class.
      • getCandidateTypeMapping

        public ClassMapping getCandidateTypeMapping()
        Candidate mapping.
      • addMapping

        public void addMapping​(java.lang.String path,
                               java.lang.Object id)
        Map the given path to the given result id.
      • map

        public java.lang.Object map​(java.util.List<MetaDataContext> path,
                                    java.lang.Object id,
                                    Joins joins)
        Map the given request onto a result id.
        Parameters:
        path - stack of data requests (see Result.startDataRequest(java.lang.Object))
        id - requested id or column (see Result APIs)
        joins - requested joins, or null
        Returns:
        the id or column to fetch from the result (typically a column name)
      • getExcludes

        public java.util.BitSet getExcludes​(java.util.List<MetaDataContext> path)
        Return the field indexes to exclude when loading data for the given path.
      • addConstructorParam

        public void addConstructorParam​(java.lang.String name)