Module de.chojo.sadu.queries
Interface QueryConfiguration
- All Known Subinterfaces:
ActiveQueryConfiguration,ConnectedQueryConfiguration,QueryConfiguration
- All Known Implementing Classes:
ActiveQueryConfigurationImpl,ConnectedQueryConfigurationImpl,ConnectedQueryQueryConfigurationDelegate,QueryConfigurationImpl
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by equal interface at
QueryConfiguration-
Method Summary
Modifier and TypeMethodDescriptionbooleanatomic()Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the value of the atomic flag.static QueryConfigurationBuilderbuilder(DataSource source) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new QueryConfigurationBuilder instance with the given DataSource.Deprecated, for removal: This API element is subject to removal in a future version.Returns the DataSource object associated with this QueryConfiguration.forQuery(QueryContext context) Deprecated, for removal: This API element is subject to removal in a future version.Returns a new QueryConfiguration object with the provided query and other configuration settings.static QueryConfigurationDeprecated, for removal: This API element is subject to removal in a future version.Retrieves the default QueryConfiguration.Deprecated, for removal: This API element is subject to removal in a future version.Executes a SQL query with the given SQL statement and format arguments.Deprecated, for removal: This API element is subject to removal in a future version.Retrieves theRowMapperRegistryobject from the QueryConfiguration.static voidsetDefault(QueryConfiguration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Sets the default query configuration.booleanDeprecated, for removal: This API element is subject to removal in a future version.Retrieves the value of the throwExceptions field.Deprecated, for removal: This API element is subject to removal in a future version.Returns a new instance of the ConnectedQueryConfiguration class with the "single transaction" configuration applied.
-
Method Details
-
getDefault
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the default QueryConfiguration.- Returns:
- the default QueryConfiguration
-
setDefault
Deprecated, for removal: This API element is subject to removal in a future version.Sets the default query configuration.- Parameters:
configuration- the query configuration to set as default
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new QueryConfigurationBuilder instance with the given DataSource.- Parameters:
source- the DataSource to use for QueryConfiguration- Returns:
- a QueryConfigurationBuilder instance
-
forQuery
Deprecated, for removal: This API element is subject to removal in a future version.Returns a new QueryConfiguration object with the provided query and other configuration settings.- Parameters:
context- the query to be associated with the configuration- Returns:
- the new QueryConfiguration object
-
atomic
boolean atomic()Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the value of the atomic flag.- Returns:
trueif atomic flag is set;falseotherwise.
-
throwExceptions
boolean throwExceptions()Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the value of the throwExceptions field.- Returns:
- the value of the throwExceptions field
-
rowMapperRegistry
RowMapperRegistry rowMapperRegistry()Deprecated, for removal: This API element is subject to removal in a future version.Retrieves theRowMapperRegistryobject from the QueryConfiguration.- Returns:
- The
RowMapperRegistryobject from the QueryConfiguration.
-
dataSource
DataSource dataSource()Deprecated, for removal: This API element is subject to removal in a future version.Returns the DataSource object associated with this QueryConfiguration.- Returns:
- the DataSource object
-
query
Deprecated, for removal: This API element is subject to removal in a future version.Executes a SQL query with the given SQL statement and format arguments.- Parameters:
sql- the SQL statement to be executedformat- the format arguments to be applied to the SQL statement- Returns:
- a parsed query ready for execution
-
withSingleTransaction
ConnectedQueryConfigurationImpl withSingleTransaction()Deprecated, for removal: This API element is subject to removal in a future version.Returns a new instance of the ConnectedQueryConfiguration class with the "single transaction" configuration applied. This means that a single transaction will be used for the queries executed using this configuration.- Returns:
- A new instance of the ConnectedQueryConfiguration class with the "single transaction" configuration applied.
-