1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.vaadin.container;
|
11
|
|
12
|
import java.sql.Connection;
|
13
|
import java.sql.SQLException;
|
14
|
|
15
|
import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
|
16
|
|
17
|
/**
|
18
|
* @author cmathew
|
19
|
* @date 9 Mar 2015
|
20
|
*
|
21
|
*/
|
22
|
public class CdmSpringConnectionPool implements JDBCConnectionPool {
|
23
|
|
24
|
private final Connection conn;
|
25
|
|
26
|
public CdmSpringConnectionPool(Connection conn) {
|
27
|
this.conn = conn;
|
28
|
}
|
29
|
|
30
|
@Override
|
31
|
public void destroy() {
|
32
|
}
|
33
|
|
34
|
@Override
|
35
|
public void releaseConnection(Connection conn) {
|
36
|
}
|
37
|
|
38
|
@Override
|
39
|
public Connection reserveConnection() throws SQLException {
|
40
|
return conn;
|
41
|
}
|
42
|
}
|