Class QueryLoadTestModel.QueryPerformer

java.lang.Object
is.codion.swing.common.model.tools.loadtest.QueryLoadTestModel.QueryPerformer
All Implemented Interfaces:
is.codion.common.model.loadtest.LoadTest.Scenario.Performer<QueryLoadTestModel.QueryApplication>
Enclosing class:
QueryLoadTestModel

public static class QueryLoadTestModel.QueryPerformer extends Object implements is.codion.common.model.loadtest.LoadTest.Scenario.Performer<QueryLoadTestModel.QueryApplication>
  • Constructor Details

    • QueryPerformer

      public QueryPerformer(is.codion.common.user.User user, String query)
      Instantiates a new non-transactional QueryPerformer.
      Parameters:
      user - the user
      query - the query
    • QueryPerformer

      public QueryPerformer(is.codion.common.user.User user, String query, boolean transactional)
      Instantiates a new QueryPerformer.
      Parameters:
      user - the user
      query - the query
      transactional - if true, commit and rollback is performed on success and error respectively
  • Method Details

    • perform

      public void perform(QueryLoadTestModel.QueryApplication application) throws Exception
      Specified by:
      perform in interface is.codion.common.model.loadtest.LoadTest.Scenario.Performer<QueryLoadTestModel.QueryApplication>
      Throws:
      Exception
    • parameters

      protected List<Object> parameters()
      For overriding, returns the parameter values to use for the next query execution, these must of course match the parameter slots in the underlying query.
      Returns:
      a list of parameters for the next query run