public class DatabaseService
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseService(javax.sql.DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Get a databaseconnection from the connectionpool.
|
javax.sql.DataSource |
getDataSource()
Get the underlying DataSource.
|
public java.sql.Connection getConnection()
throws java.sql.SQLException
Connection from the connectionpool.java.sql.SQLException - if there was a problem getting the connection.public javax.sql.DataSource getDataSource()
DataSource.