public static enum DslJdbcSampler.QueryType extends Enum<DslJdbcSampler.QueryType>
In general this should be auto-detected, but, when auto-detection fails to properly identify
the type, then you can manually specify the type through
DslJdbcSampler.queryType(QueryType) method.
| Enum Constant and Description |
|---|
AUTO_COMMIT_FALSE
Disables auto-commits.
|
AUTO_COMMIT_TRUE
Enables auto-commits.
|
CALLABLE
Identifies callable statement with potential input, output or inout parameters.
|
COMMIT
Identifies a commit statement.
|
PREPARED_SELECT
Same as
SELECT but with parameters set through placeholders ("?" symbol). |
PREPARED_UPDATE
Same as
UPDATE but with parameters set through placeholders ("?" symbol). |
ROLLBACK
Identifies a rollback statement.
|
SELECT
Identifies simple select statement with no parameters as placeholders.
|
UPDATE
Identifies simple insert, update, delete or similar database altering query with no
parameters as placeholders.
|
| Modifier and Type | Method and Description |
|---|---|
static DslJdbcSampler.QueryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslJdbcSampler.QueryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslJdbcSampler.QueryType SELECT
This query type is usually used in combination with DslJdbcSampler.vars(String...)
and/or DslJdbcSampler.resultsVar.
public static final DslJdbcSampler.QueryType UPDATE
public static final DslJdbcSampler.QueryType CALLABLE
This type of query usually requires setting parameters through DslJdbcSampler.param(Object, int) or DslJdbcSampler.param(Object, int,
JdbcParamMode) and potentially getting results through
DslJdbcSampler.vars(String...) and/or DslJdbcSampler.resultsVar.
public static final DslJdbcSampler.QueryType PREPARED_SELECT
SELECT but with parameters set through placeholders ("?" symbol).
This type of query requires setting parameters through DslJdbcSampler.param(Object,
int).
public static final DslJdbcSampler.QueryType PREPARED_UPDATE
UPDATE but with parameters set through placeholders ("?" symbol).
This type of query requires setting parameters through DslJdbcSampler.param(Object,
int).
public static final DslJdbcSampler.QueryType COMMIT
DslJdbcSampler.commit()public static final DslJdbcSampler.QueryType ROLLBACK
DslJdbcSampler.rollback()public static final DslJdbcSampler.QueryType AUTO_COMMIT_FALSE
DslJdbcSampler.autoCommit(boolean) with
false argument.public static final DslJdbcSampler.QueryType AUTO_COMMIT_TRUE
DslJdbcSampler.autoCommit(boolean) with
true argument.public static DslJdbcSampler.QueryType[] values()
for (DslJdbcSampler.QueryType c : DslJdbcSampler.QueryType.values()) System.out.println(c);
public static DslJdbcSampler.QueryType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.