org.apache.cayenne.query

## Interface EntityResultSegment

-     public interface EntityResultSegment

  A "compiled" version of a `EntityResult` descriptor.
  Since:
    3.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ClassDescriptor` | `getClassDescriptor()`
    `int` | `getColumnOffset()` Returns a zero-based column index of the first column of this segment in the ResultSet.
    `String` | `getColumnPath(String resultSetLabel)` Performs a reverse lookup of the column path for a given ResultSet label.
    `Map<String,String>` | `getFields()` Returns a map of ResultSet labels keyed by column paths.

- - ### Method Detail

    - #### getClassDescriptor

          ClassDescriptor getClassDescriptor()

    - #### getFields

          Map<String,String> getFields()

      Returns a map of ResultSet labels keyed by column paths. Note that ordering of fields in the returned map is generally undefined and should not be relied upon when processing query result sets.

    - #### getColumnPath

          String getColumnPath(String resultSetLabel)

      Performs a reverse lookup of the column path for a given ResultSet label.

    - #### getColumnOffset

          int getColumnOffset()

      Returns a zero-based column index of the first column of this segment in the ResultSet.

Copyright © 2001–2023 Apache Cayenne. All rights reserved.