Module litebridge.db.spi.impl
Package org.litebridgedb.db.spi.impl
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 schemabindValues- 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 Summary
ConstructorsModifierConstructorDescriptionprotectedPreparedRow(List<String> valueSpecifiers, List<AbstractDatabaseProvider.BindValue> bindValues) Creates an instance of aPreparedRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueSpecifiersrecord component.
-
Constructor Details
-
PreparedRow
protected PreparedRow(List<String> valueSpecifiers, List<AbstractDatabaseProvider.BindValue> bindValues) Creates an instance of aPreparedRowrecord class.- Parameters:
valueSpecifiers- the value for thevalueSpecifiersrecord componentbindValues- the value for thebindValuesrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
valueSpecifiers
Returns the value of thevalueSpecifiersrecord component.- Returns:
- the value of the
valueSpecifiersrecord component
-
bindValues
Returns the value of thebindValuesrecord component.- Returns:
- the value of the
bindValuesrecord component
-