Record Class CSParameter<T>
java.lang.Object
java.lang.Record
org.apache.cayenne.access.jdbc.CSParameter<T>
public record CSParameter<T>(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, ProcedureParameter param)
extends Record
Describes a single immutable CallableStatement parameter binding, pairing a bound value with the
ProcedureParameter that describes it.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionCSParameter(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, ProcedureParameter param) Creates an instance of aCSParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinder()Returns the value of thebinderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.param()Returns the value of theparamrecord component.intReturns the value of thepsPositionrecord component.intpsScale()Returns the value of thepsScalerecord component.intpsType()Returns the value of thepsTyperecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
CSParameter
public CSParameter(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, ProcedureParameter param) Creates an instance of aCSParameterrecord class.- Parameters:
value- the value for thevaluerecord componentpsPosition- the value for thepsPositionrecord componentpsType- the value for thepsTyperecord componentpsScale- the value for thepsScalerecord componentbinder- the value for thebinderrecord componentparam- the value for theparamrecord 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. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
psPosition
public int psPosition()Returns the value of thepsPositionrecord component.- Returns:
- the value of the
psPositionrecord component
-
psType
public int psType()Returns the value of thepsTyperecord component.- Returns:
- the value of the
psTyperecord component
-
psScale
public int psScale()Returns the value of thepsScalerecord component.- Returns:
- the value of the
psScalerecord component
-
binder
Returns the value of thebinderrecord component.- Returns:
- the value of the
binderrecord component
-
param
Returns the value of theparamrecord component.- Returns:
- the value of the
paramrecord component
-