Project

General

Profile

Download (965 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.container;
10

    
11
import java.sql.Connection;
12
import java.sql.SQLException;
13

    
14
import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool;
15

    
16
/**
17
 * @author cmathew
18
 * @since 9 Mar 2015
19
 *
20
 * @deprecated unused! should be deleted
21
 */
22
@Deprecated
23
public class CdmSpringConnectionPool implements JDBCConnectionPool {
24

    
25
    private final Connection conn;
26

    
27
    public CdmSpringConnectionPool(Connection conn) {
28
        this.conn = conn;
29
    }
30

    
31
    @Override
32
    public void destroy() {
33
    }
34

    
35
    @Override
36
    public void releaseConnection(Connection conn) {
37
    }
38

    
39
    @Override
40
    public Connection reserveConnection() throws SQLException {
41
        return conn;
42
    }
43
}
(2-2/7)