public interface ConnectionFactory
Modifier and Type | Method and Description |
---|---|
void |
addConfigurationProperties(Properties properties)
Adds properties for this instance from any properties configured in the
ConnectionFactory.
|
Connection |
getConnection()
Should return a connection to the database in use for this context.
|
Connection getConnection() throws SQLException
SQLException
- if there is some error obtaining the connectionvoid addConfigurationProperties(Properties properties)
This method will be called before any of the get methods.
properties
- All properties from the configurationCopyright © 2006–2022 MyBatis.org. All rights reserved.