Class DynamoDbCommandExecutor

java.lang.Object
org.evomaster.client.java.controller.dynamodb.DynamoDbCommandExecutor

public final class DynamoDbCommandExecutor extends Object
Executes DynamoDB insertions without binding the controller API to an AWS SDK version.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.evomaster.client.java.controller.api.dto.database.operations.DynamoDbInsertionResultsDto
    executeInsert(Object client, List<org.evomaster.client.java.controller.api.dto.database.operations.DynamoDbInsertionDto> insertions)
    Executes insertions using a synchronous or asynchronous AWS SDK v2 client.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • executeInsert

      public static org.evomaster.client.java.controller.api.dto.database.operations.DynamoDbInsertionResultsDto executeInsert(Object client, List<org.evomaster.client.java.controller.api.dto.database.operations.DynamoDbInsertionDto> insertions)
      Executes insertions using a synchronous or asynchronous AWS SDK v2 client.
      Parameters:
      client - DynamoDB client
      insertions - items to insert
      Returns:
      per-insertion results, stopping at the first failed insertion
      Throws:
      NullPointerException - when the client or insertion list is null
      IllegalArgumentException - when the insertion list is empty