Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.megatim.fdxcommons.tools.database.connection;
 
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
 
/**
 *
 * @author Gabuntu
 */
public class DBConnection {
 
    private final DataSource dataSource;
 
    public DBConnection(DataSource dataSource) {
        this.dataSource = dataSource;
    }
 
    public Connection connection() throws SQLException {
        return dataSource.getConnection();
    }
 
}