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 owning MutationBindTemplate.slots() array
columnName - the physical column expression represented by the underlying column-value parameter
usage - whether the parameter is used as an assignment value or as a restriction predicate value
jdbcPosition - the one-based JDBC parameter position in the prepared statement, including any leading expectation parameters
jdbcMapping - the mapping used to bind the Java value to JDBC
valueDescriptor - 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 Details

    • BindSlot

      public BindSlot(int index, String columnName, ParameterUsage usage, int jdbcPosition, JdbcMapping jdbcMapping, JdbcValueDescriptor valueDescriptor)
      Creates an instance of a BindSlot record class.
      Parameters:
      index - the value for the index record component
      columnName - the value for the columnName record component
      usage - the value for the usage record component
      jdbcPosition - the value for the jdbcPosition record component
      jdbcMapping - the value for the jdbcMapping record component
      valueDescriptor - the value for the valueDescriptor record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • index

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • columnName

      public String columnName()
      Returns the value of the columnName record component.
      Returns:
      the value of the columnName record component
    • usage

      public ParameterUsage usage()
      Returns the value of the usage record component.
      Returns:
      the value of the usage record component
    • jdbcPosition

      public int jdbcPosition()
      Returns the value of the jdbcPosition record component.
      Returns:
      the value of the jdbcPosition record component
    • jdbcMapping

      public JdbcMapping jdbcMapping()
      Returns the value of the jdbcMapping record component.
      Returns:
      the value of the jdbcMapping record component
    • valueDescriptor

      public JdbcValueDescriptor valueDescriptor()
      Returns the value of the valueDescriptor record component.
      Returns:
      the value of the valueDescriptor record component