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, List<ColumnMetaData> generatedKeys, String[] generatedKeyNames)
extends Record
Update operation metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateMetaData(boolean returnGeneratedKeys, List<ColumnMetaData> generatedKeys, String[] generatedKeyNames) Creates an instance of aUpdateMetaDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.String[]Returns the value of thegeneratedKeyNamesrecord component.Returns the value of thegeneratedKeysrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereturnGeneratedKeysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateMetaData
public UpdateMetaData(boolean returnGeneratedKeys, List<ColumnMetaData> generatedKeys, String[] generatedKeyNames) Creates an instance of aUpdateMetaDatarecord class.- Parameters:
returnGeneratedKeys- the value for thereturnGeneratedKeysrecord componentgeneratedKeys- the value for thegeneratedKeysrecord componentgeneratedKeyNames- the value for thegeneratedKeyNamesrecord 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
-