Interface DatabaseObjectsFactory
- All Known Implementing Classes:
DefaultDatabaseObjectsFactory
Deprecated.
Factory for creating connections and prepared statements.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclear()Deprecated.Free resourcesvoidinit(DataSource dataSource, ExtProperties properties) Deprecated.Initialize the factory with the DataSourceResourceLoader propertiesprepareStatement(String sql) Deprecated.Prepare a statementvoidreleaseStatement(String sql, PreparedStatement stmt) Deprecated.Releases a prepared statementdefault voidsetLogger(org.slf4j.Logger log) Deprecated.Set the logger to be used by the factory
-
Method Details
-
init
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
Deprecated.Prepare a statement- Parameters:
sql- Statement SQL- Returns:
- prepared statement
- Throws:
SQLException
-
releaseStatement
Deprecated.Releases a prepared statement- Parameters:
sql- original sql querystmt- statement- Throws:
SQLException
-
clear
default void clear()Deprecated.Free resources
-
PreparedStatementsFactoryinstead. This interface relies on recovering the connection from the statement viaStatement.getConnection(), which is not portable across JDBC pool implementations. SeeDataSourceResourceLoaderfor the supported configuration.