Interface DatabaseObjectsFactory
- All Known Implementing Classes:
DefaultDatabaseObjectsFactory
public interface DatabaseObjectsFactory
Factory for creating connections and prepared statements
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
clear()
Free resourcesvoid
init
(DataSource dataSource, ExtProperties properties) Initialize the factory with the DataSourceResourceLoader propertiesprepareStatement
(String sql) Prepare a statementvoid
releaseStatement
(String sql, PreparedStatement stmt) Releases a prepared statementdefault void
setLogger
(org.slf4j.Logger log) Set the logger to be used by the factory
-
Method Details
-
init
Initialize the factory with the DataSourceResourceLoader properties- Parameters:
dataSource
- data source- Throws:
SQLException
-
setLogger
default void setLogger(org.slf4j.Logger log) Set the logger to be used by the factory- Parameters:
log
-
-
prepareStatement
Prepare a statement- Parameters:
sql
- Statement SQL- Returns:
- prepared statement
- Throws:
SQLException
-
releaseStatement
Releases a prepared statement- Parameters:
sql
- original sql querystmt
- statement- Throws:
SQLException
-
clear
default void clear()Free resources
-