java.lang.Object
java.lang.Record
org.litebridge.db.spi.query.UpdateMetaData
- Record Components:
returnGeneratedKeys- a boolean indicating whether the statement should return generated keys. Passtrueto configure the statement to return generated keys, orfalseotherwise.generatedKeys- List of metadata for columns that are generated by the database.generatedKeyNames- Array of column names that are generated by the database.
public record UpdateMetaData(boolean returnGeneratedKeys, @Nullable List<ColumnMetaData> generatedKeys, String @Nullable [] generatedKeyNames, int rows, int bindValueColumns)
extends Record
Update operation metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateMetaData(boolean returnGeneratedKeys, @Nullable List<ColumnMetaData> generatedKeys, String @Nullable [] generatedKeyNames, int rows, int bindValueColumns) Creates an instance of aUpdateMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebindValueColumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.String @Nullable []Returns the value of thegeneratedKeyNamesrecord component.@Nullable List<ColumnMetaData> Returns the value of thegeneratedKeysrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereturnGeneratedKeysrecord component.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateMetaData
public UpdateMetaData(boolean returnGeneratedKeys, @Nullable List<ColumnMetaData> generatedKeys, String @Nullable [] generatedKeyNames, int rows, int bindValueColumns) Creates an instance of aUpdateMetaDatarecord class.- Parameters:
returnGeneratedKeys- the value for thereturnGeneratedKeysrecord componentgeneratedKeys- the value for thegeneratedKeysrecord componentgeneratedKeyNames- the value for thegeneratedKeyNamesrecord componentrows- the value for therowsrecord componentbindValueColumns- the value for thebindValueColumnsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
returnGeneratedKeys
public boolean returnGeneratedKeys()Returns the value of thereturnGeneratedKeysrecord component.- Returns:
- the value of the
returnGeneratedKeysrecord component
-
generatedKeys
Returns the value of thegeneratedKeysrecord component.- Returns:
- the value of the
generatedKeysrecord component
-
generatedKeyNames
Returns the value of thegeneratedKeyNamesrecord component.- Returns:
- the value of the
generatedKeyNamesrecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
bindValueColumns
public int bindValueColumns()Returns the value of thebindValueColumnsrecord component.- Returns:
- the value of the
bindValueColumnsrecord component
-