Class InsertResult

java.lang.Object
org.litebridgedb.db.spi.update.UpdateResult
org.litebridgedb.db.spi.update.InsertResult

public final class InsertResult extends UpdateResult
The result of an insert operation performed on the database.

This class extends UpdateResult and adds the capability to hold any generated keys resulting from the insert operation.

Instances of this class encapsulate both the number of rows affected by the insert operation and optionally a list of generated keys, if applicable.

  • Constructor Details

    • InsertResult

      public InsertResult(int rowsAffected)
    • InsertResult

      public InsertResult(int rowsAffected, Map<ColumnMetaData,Object> generatedKeys)
  • Method Details