Record Class AbstractDatabaseProvider.PreparedRow

java.lang.Object
java.lang.Record
org.litebridgedb.db.spi.impl.AbstractDatabaseProvider.PreparedRow
Record Components:
valueSpecifiers - the list of specifiers defining data format or schema
bindValues - the list of bound values corresponding to the specifiers
Enclosing class:
AbstractDatabaseProvider

protected static record AbstractDatabaseProvider.PreparedRow(List<String> valueSpecifiers, List<AbstractDatabaseProvider.BindValue> bindValues) extends Record
A prepared row with associated value specifiers and bound values.

This record is a data structure that holds information about a row in which each element is defined by a list of value specifiers and a corresponding list of bind values. Commonly used in scenarios involving prepared statements or database row mappings.

The valueSpecifiers list contains the string representations or placeholders defining the schema or format for the data in the row.

The bindValues list contains the bound or parameterized values that align with the associated specifiers.

It is the caller's responsibility to ensure that the valueSpecifiers and bindValues lists are properly aligned, with each value specifier corresponding to its respective bind value.

This class is immutable and thread-safe by design.

  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • valueSpecifiers

      public List<String> valueSpecifiers()
      Returns the value of the valueSpecifiers record component.
      Returns:
      the value of the valueSpecifiers record component
    • bindValues

      Returns the value of the bindValues record component.
      Returns:
      the value of the bindValues record component