| Modifier and Type | Method and Description |
|---|---|
DslJdbcSampler |
DslJdbcSampler.autoCommit(boolean enabled)
Allows enabling or disabling auto-commits on the connection pool.
|
DslJdbcSampler |
DslJdbcSampler.commit()
Allows committing changes applied by previous queries when auto-commit is disabled on the
connection pool.
|
static DslJdbcSampler |
JdbcJmeterDsl.jdbcSampler(String poolName,
String query)
Builds a JDBC sampler which allows interacting with a database (sending queries) through JDBC.
|
static DslJdbcSampler |
JdbcJmeterDsl.jdbcSampler(String name,
String poolName,
String query)
Is the same as
JdbcJmeterDsl.jdbcSampler(String, String) but allowing to set a name to the sampler
for easy identification in collected statistics and metrics. |
DslJdbcSampler |
DslJdbcSampler.param(Object value,
int jdbcParamType)
Allows specifying a parameter value to pass to the query and used in provided query
placeholders ("?" symbol).
|
DslJdbcSampler |
DslJdbcSampler.param(Object value,
int jdbcParamType,
DslJdbcSampler.JdbcParamMode mode)
Same as
param(Object, int) but allowing also to specify parameter mode. |
DslJdbcSampler |
DslJdbcSampler.queryType(DslJdbcSampler.QueryType queryType)
Allows to explicitly specify the query type when auto-detection is not enough.
|
DslJdbcSampler |
DslJdbcSampler.resultsVar(String resultsVar)
Allows specifying the name of a variable where to store a list of query retrieved row maps.
|
DslJdbcSampler |
DslJdbcSampler.rollback()
Allows undoing changes done by previous queries when auto-commit is disabled on the connection
pool.
|
DslJdbcSampler |
DslJdbcSampler.timeout(Duration timeout)
Allows specifying a maximum amount of time a query can take before it fails.
|
DslJdbcSampler |
DslJdbcSampler.vars(String... vars)
Allows specifying the name prefixes of variables where to store query retrieved row columns.
|
Copyright © 2022. All rights reserved.