Record Class EmbeddableResultSegment
java.lang.Object
java.lang.Record
org.apache.cayenne.query.EmbeddableResultSegment
- Record Components:
embeddable- the embeddable mapped by this segmentfields- a map of ResultSet labels keyed by embeddable attribute namescolumnOffset- a zero-based column index of the first column of this segment in the ResultSet
- All Implemented Interfaces:
ResultSegment
public record EmbeddableResultSegment(Embeddable embeddable, Map<String,String> fields, int columnOffset)
extends Record
implements ResultSegment
A result set segment mapped to an
Embeddable.- Since:
- 4.2
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddableResultSegment(Embeddable embeddable, Map<String, String> fields, int columnOffset) Creates an instance of aEmbeddableResultSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolumnOffsetrecord component.Returns the value of theembeddablerecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddableResultSegment
Creates an instance of aEmbeddableResultSegmentrecord class.- Parameters:
embeddable- the value for theembeddablerecord componentfields- the value for thefieldsrecord componentcolumnOffset- the value for thecolumnOffsetrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
embeddable
Returns the value of theembeddablerecord component.- Returns:
- the value of the
embeddablerecord component
-
fields
-
columnOffset
public int columnOffset()Returns the value of thecolumnOffsetrecord component.- Specified by:
columnOffsetin interfaceResultSegment- Returns:
- the value of the
columnOffsetrecord component
-