Record Class TranslatedProcedure
java.lang.Object
java.lang.Record
org.apache.cayenne.access.translator.TranslatedProcedure
- All Implemented Interfaces:
TranslatedStatement
public record TranslatedProcedure(String sql, CSParameter<?>[] params)
extends Record
implements TranslatedStatement
An immutable result of translating a
ProcedureQuery to a stored procedure call.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionTranslatedProcedure(String sql, CSParameter<?>[] params) Creates an instance of aTranslatedProcedurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.CSParameter<?>[]params()Returns the value of theparamsrecord component.sql()Returns the value of thesqlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TranslatedProcedure
Creates an instance of aTranslatedProcedurerecord class.- Parameters:
sql- the value for thesqlrecord componentparams- the value for theparamsrecord 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
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-