Record Class TranslatedSQL
java.lang.Object
java.lang.Record
org.apache.cayenne.access.translator.TranslatedSQL
- All Implemented Interfaces:
TranslatedStatement
public record TranslatedSQL(String sql, PSParameter<?>[] bindings, RSColumn[] resultColumns)
extends Record
implements TranslatedStatement
A translated form of a Query used to generated PreparedStatements.
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionTranslatedSQL(String sql, PSParameter<?>[] bindings, RSColumn[] resultColumns) Creates an instance of aTranslatedSQLrecord class. -
Method Summary
Modifier and TypeMethodDescriptionPSParameter<?>[]bindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.RSColumn[]Returns the value of theresultColumnsrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TranslatedSQL
Creates an instance of aTranslatedSQLrecord class.- Parameters:
sql- the value for thesqlrecord componentbindings- the value for thebindingsrecord componentresultColumns- the value for theresultColumnsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sql
Returns the value of thesqlrecord component.- Specified by:
sqlin interfaceTranslatedStatement- Returns:
- the value of the
sqlrecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
resultColumns
Returns the value of theresultColumnsrecord component.- Returns:
- the value of the
resultColumnsrecord component
-