Interface DatabaseObjectsFactory

All Known Implementing Classes:
DefaultDatabaseObjectsFactory

@Deprecated public interface DatabaseObjectsFactory
Deprecated.
Since 2.5, use PreparedStatementsFactory instead. This interface relies on recovering the connection from the statement via Statement.getConnection(), which is not portable across JDBC pool implementations. See DataSourceResourceLoader for the supported configuration.
Factory for creating connections and prepared statements.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Deprecated.
    Free resources
    void
    init(DataSource dataSource, ExtProperties properties)
    Deprecated.
    Initialize the factory with the DataSourceResourceLoader properties
    Deprecated.
    Prepare a statement
    void
    Deprecated.
    Releases a prepared statement
    default void
    setLogger(org.slf4j.Logger log)
    Deprecated.
    Set the logger to be used by the factory
  • Method Details

    • init

      void init(DataSource dataSource, ExtProperties properties) throws SQLException
      Deprecated.
      Initialize the factory with the DataSourceResourceLoader properties
      Parameters:
      dataSource - data source
      Throws:
      SQLException
    • setLogger

      default void setLogger(org.slf4j.Logger log)
      Deprecated.
      Set the logger to be used by the factory
      Parameters:
      log -
    • prepareStatement

      PreparedStatement prepareStatement(String sql) throws SQLException
      Deprecated.
      Prepare a statement
      Parameters:
      sql - Statement SQL
      Returns:
      prepared statement
      Throws:
      SQLException
    • releaseStatement

      void releaseStatement(String sql, PreparedStatement stmt) throws SQLException
      Deprecated.
      Releases a prepared statement
      Parameters:
      sql - original sql query
      stmt - statement
      Throws:
      SQLException
    • clear

      default void clear()
      Deprecated.
      Free resources