public interface JdbcService
DataSource This
class can be configured from the JdbcConfig
class which will be returned via bridje configuration API.| Modifier and Type | Method and Description |
|---|---|
void |
closeAllDataSource()
Close all the DataSources stored in the JdbcService.
|
void |
closeDataSource(DataSource dataSource)
Close the given DataSource and all its database connections.
|
DataSource |
createDataSource(DataSourceConfig config)
Creates a new pooled DataSource object from the given configuration.
|
DataSource |
getDataSource(String name)
Retrives a pooled DataSource object associated with the given name.
|
DataSource getDataSource(String name)
name - The name of the DataSource that was especified in the jdbc.xml
configuration file.DataSource createDataSource(DataSourceConfig config)
config - The DataSource configuration parameters.void closeDataSource(DataSource dataSource) throws SQLException
dataSource - The DataSource to be closed.SQLException - If any SQLException occurs during the closing
process.void closeAllDataSource()
Copyright © 2015–2017 Bridje Framework. All rights reserved.