Record Class RSColumn
java.lang.Object
java.lang.Record
org.apache.cayenne.access.jdbc.RSColumn
public record RSColumn(String rsName, int rsType, String dataRowName, ExtendedType<?> reader, DbAttribute attribute)
extends Record
A descriptor of a ResultSet column.
- Since:
- 5.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRSColumn(String rsName, int rsType, String dataRowName, ExtendedType<?> reader, DbAttribute attribute) Creates an instance of aRSColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.Returns the value of thedataRowNamerecord component.booleanReturns true if another object is a ColumnDescriptor with the same name and data row key.inthashCode()Returns a hash code value for this object.ExtendedType<?> reader()Returns the value of thereaderrecord component.static RSColumn.RowBuilderCreates aRSColumn.RowBuilderthat assembles the array ofRSColumns describing a result row.rsName()Returns the value of thersNamerecord component.intrsType()Returns the value of thersTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RSColumn
public RSColumn(String rsName, int rsType, String dataRowName, ExtendedType<?> reader, DbAttribute attribute) Creates an instance of aRSColumnrecord class.- Parameters:
rsName- the value for thersNamerecord componentrsType- the value for thersTyperecord componentdataRowName- the value for thedataRowNamerecord componentreader- the value for thereaderrecord componentattribute- the value for theattributerecord component
-
-
Method Details
-
equals
-
hashCode
-
rowBuilder
Creates aRSColumn.RowBuilderthat assembles the array ofRSColumns describing a result row.- Since:
- 5.0
-
toString
-
rsName
Returns the value of thersNamerecord component.- Returns:
- the value of the
rsNamerecord component
-
rsType
public int rsType()Returns the value of thersTyperecord component.- Returns:
- the value of the
rsTyperecord component
-
dataRowName
Returns the value of thedataRowNamerecord component.- Returns:
- the value of the
dataRowNamerecord component
-
reader
Returns the value of thereaderrecord component.- Returns:
- the value of the
readerrecord component
-
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-