Interface QueryConfiguration

All Known Subinterfaces:
ActiveQueryConfiguration, ConnectedQueryConfiguration, QueryConfiguration
All Known Implementing Classes:
ActiveQueryConfigurationImpl, ConnectedQueryConfigurationImpl, ConnectedQueryQueryConfigurationDelegate, QueryConfigurationImpl

@Deprecated(forRemoval=true) public interface QueryConfiguration
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by equal interface at QueryConfiguration
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the value of the atomic flag.
    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.
    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.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the default QueryConfiguration.
    query(String sql, Object... format)
    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 the RowMapperRegistry object from the QueryConfiguration.
    static void
    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

      static QueryConfiguration getDefault()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieves the default QueryConfiguration.
      Returns:
      the default QueryConfiguration
    • setDefault

      static void setDefault(QueryConfiguration configuration)
      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

      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.
      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 the RowMapperRegistry 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

      ParsedQuery query(@Language("sql") String sql, Object... format)
      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 executed
      format - 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.