Record Class BindSlot
java.lang.Object
java.lang.Record
org.hibernate.action.queue.spi.bind.BindSlot
- Record Components:
index- the zero-based position of this slot within the owningMutationBindTemplate.slots()arraycolumnName- the physical column expression represented by the underlying column-value parameterusage- whether the parameter is used as an assignment value or as a restriction predicate valuejdbcPosition- the one-based JDBC parameter position in the prepared statement, including any leading expectation parametersjdbcMapping- the mapping used to bind the Java value to JDBCvalueDescriptor- descriptor view of this slot used by compatibility binding APIs
public record BindSlot(int index, String columnName, ParameterUsage usage, int jdbcPosition, JdbcMapping jdbcMapping, JdbcValueDescriptor valueDescriptor)
extends Record
A single JDBC parameter slot in a mutation statement.
Each slot corresponds to one ColumnValueParameter
in the mutation operation's ordered parameter list. The slot keeps the
stable array index used by JdbcValueBindings, the JDBC parameter position
used when binding the statement, and the descriptor information needed by
compatibility callers that still expect descriptor-based bindings.
-
Constructor Summary
ConstructorsConstructorDescriptionBindSlot(int index, String columnName, ParameterUsage usage, int jdbcPosition, JdbcMapping jdbcMapping, JdbcValueDescriptor valueDescriptor) Creates an instance of aBindSlotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolumnNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.Returns the value of thejdbcMappingrecord component.intReturns the value of thejdbcPositionrecord component.final StringtoString()Returns a string representation of this record class.usage()Returns the value of theusagerecord component.Returns the value of thevalueDescriptorrecord component.
-
Constructor Details
-
BindSlot
public BindSlot(int index, String columnName, ParameterUsage usage, int jdbcPosition, JdbcMapping jdbcMapping, JdbcValueDescriptor valueDescriptor) Creates an instance of aBindSlotrecord class.- Parameters:
index- the value for theindexrecord componentcolumnName- the value for thecolumnNamerecord componentusage- the value for theusagerecord componentjdbcPosition- the value for thejdbcPositionrecord componentjdbcMapping- the value for thejdbcMappingrecord componentvalueDescriptor- the value for thevalueDescriptorrecord 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. -
index
-
columnName
Returns the value of thecolumnNamerecord component.- Returns:
- the value of the
columnNamerecord component
-
usage
-
jdbcPosition
public int jdbcPosition()Returns the value of thejdbcPositionrecord component.- Returns:
- the value of the
jdbcPositionrecord component
-
jdbcMapping
Returns the value of thejdbcMappingrecord component.- Returns:
- the value of the
jdbcMappingrecord component
-
valueDescriptor
Returns the value of thevalueDescriptorrecord component.- Returns:
- the value of the
valueDescriptorrecord component
-