# 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
  Description
  `DefaultScalarResultSegment(String column, int offset)`

- ## Method Summary

  Modifier and Type
  Method
  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 Object

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

- ## Constructor Details

  - ### DefaultScalarResultSegment

    public DefaultScalarResultSegment(String column, int offset)

- ## Method Details

  - ### 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`