Record Class PSParameter<T>
java.lang.Object
java.lang.Record
org.apache.cayenne.access.jdbc.PSParameter<T>
public record PSParameter<T>(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, DbAttribute attribute)
extends Record
Describes a single immutable PreparedStatement parameter binding.
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionPSParameter(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, DbAttribute attribute) Creates an instance of aPSParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.binder()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.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
-
PSParameter
public PSParameter(T value, int psPosition, int psType, int psScale, ExtendedType<T> binder, DbAttribute attribute) Creates an instance of aPSParameterrecord 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 componentattribute- the value for theattributerecord 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
-
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-