public class JDBCConnectionFactory extends Object implements ConnectionFactory
| Constructor and Description |
|---|
JDBCConnectionFactory()
This constructor is called when this connection factory is specified
as the type in a ConnectionFactory configuration element.
|
JDBCConnectionFactory(JDBCConnectionConfiguration config)
This constructor is called when there is a JDBCConnectionConfiguration
specified in the configuration.
|
| 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.
|
public JDBCConnectionFactory(JDBCConnectionConfiguration config)
config - public JDBCConnectionFactory()
public Connection getConnection() throws SQLException
ConnectionFactorygetConnection in interface ConnectionFactorySQLExceptionpublic void addConfigurationProperties(Properties properties)
ConnectionFactoryaddConfigurationProperties in interface ConnectionFactoryproperties - All properties from the configurationCopyright © 2006–2016 MyBatis.org. All rights reserved.