java.lang.Object
java.lang.Record
org.litebridgedb.db.spi.update.RowValue
- Record Components:
columns- The list ofColumnValueobjects defining the values and their corresponding columns for the row.
A row of values corresponding to a SQL database operation.
Each row is composed of a list of ColumnValue objects, where
each ColumnValue encapsulates a column's metadata and its associated value.
This class is designed for use in SQL operations such as INSERT and UPDATE that involve working with rows within a database table.
Instances of this record are immutable, ensuring thread safety and reliability when managing row data as part of database operations.
Key use cases include: - Representing a single row of data to be inserted into a table. - Structuring row data as part of batch operations involving multiple rows.
-
Constructor Summary
ConstructorsConstructorDescriptionRowValue(List<ColumnValue> columns) Creates an instance of aRowValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord 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.
-
Constructor Details
-
RowValue
Creates an instance of aRowValuerecord class.- Parameters:
columns- the value for thecolumnsrecord 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). -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-