Interface ResultSegment
- All Known Implementing Classes:
EmbeddableResultSegment, EntityResultSegment, ScalarResultSegment
public sealed interface ResultSegment
permits EntityResultSegment, EmbeddableResultSegment, ScalarResultSegment
A single segment of a query result set mapping. A segment describes how one or more adjacent columns of a
result set row map to a result object
- Since:
- 5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns a zero-based column index of the first column of this segment in the ResultSet, or -1 if the segment comes from a query-declared mapping whose column layout is only known after SQL translation.
-
Method Details
-
columnOffset
int columnOffset()Returns a zero-based column index of the first column of this segment in the ResultSet, or -1 if the segment comes from a query-declared mapping whose column layout is only known after SQL translation.
-