Record Class UpdateResult
java.lang.Object
java.lang.Record
cool.scx.jdbc.sql.UpdateResult
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateResult(long affectedItemsCount, List<Long> generatedKeys) Creates an instance of aUpdateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theaffectedItemsCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedKeysrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateResult
-
-
Method Details
-
firstGeneratedKey
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
affectedItemsCount
public long affectedItemsCount()Returns the value of theaffectedItemsCountrecord component.- Returns:
- the value of the
affectedItemsCountrecord component
-
generatedKeys
-