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 Summary
ConstructorsConstructorDescriptionQueryPerformer(is.codion.common.user.User user, String query) Instantiates a new non-transactional QueryPerformer.QueryPerformer(is.codion.common.user.User user, String query, boolean transactional) Instantiates a new QueryPerformer. -
Method Summary
Modifier and TypeMethodDescriptionFor overriding, returns the parameter values to use for the next query execution, these must of course match the parameter slots in the underlying query.voidperform(QueryLoadTestModel.QueryApplication application)
-
Constructor Details
-
QueryPerformer
Instantiates a new non-transactional QueryPerformer.- Parameters:
user- the userquery- the query
-
QueryPerformer
Instantiates a new QueryPerformer.- Parameters:
user- the userquery- the querytransactional- if true, commit and rollback is performed on success and error respectively
-
-
Method Details
-
perform
- Specified by:
performin interfaceis.codion.common.model.loadtest.LoadTest.Scenario.Performer<QueryLoadTestModel.QueryApplication>- Throws:
Exception
-
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 or an empty list in case of no parameters
-