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 TypeMethodDescriptionboolean
atomic()
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the value of the atomic flag.static QueryConfigurationBuilder
builder
(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 QueryConfiguration
Deprecated, 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 theRowMapperRegistry
object from the QueryConfiguration.static void
setDefault
(QueryConfiguration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Sets the default query configuration.boolean
Deprecated, 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:
true
if atomic flag is set;false
otherwise.
-
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 theRowMapperRegistry
object from the QueryConfiguration.- Returns:
- The
RowMapperRegistry
object 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.
-