org.apache.cayenne.map

## Class DefaultScalarResultSegment

- java.lang.Object
- - org.apache.cayenne.map.DefaultScalarResultSegment

- All Implemented Interfaces:
    ScalarResultSegment

      public class DefaultScalarResultSegment
      extends Object
      implements ScalarResultSegment

  Since:
    3.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultScalarResultSegment(String column, int offset)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getColumn()`
    `int` | `getColumnOffset()` Returns a zero-based column index of the first column of this segment in the ResultSet.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultScalarResultSegment

          public DefaultScalarResultSegment(String column,
                                            int offset)

  - ### Method Detail

    - #### getColumn

          public String getColumn()

      Specified by:
        `getColumn` in interface `ScalarResultSegment`

    - #### getColumnOffset

          public int getColumnOffset()

      Description copied from interface: `ScalarResultSegment`
      Returns a zero-based column index of the first column of this segment in the ResultSet.
      Specified by:
        `getColumnOffset` in interface `ScalarResultSegment`

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