Revision 43114 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/operations/AbstractConnectionOperation.java

View differences:

AbstractConnectionOperation.java
17 17
    final static protected Logger logger = LoggerFactory.getLogger(AbstractConnectionOperation.class);
18 18

  
19 19
    final protected JDBCHelper helper;
20
    
21
    private Connection conn = null;
20 22

  
21 23
    public AbstractConnectionOperation(JDBCHelper helper) {
22 24
        this.helper = helper;
......
47 49
        }
48 50
    }
49 51

  
52
    protected Connection getConnection() {
53
        return this.conn;
54
    }
55
    
50 56
    public Object perform_operation() throws Exception {
51 57
            Object result = null;
52
        Connection conn = null;
53 58
        try {
54 59
            logger.debug("preparing execution of "+this.getClass().getSimpleName()+".");
55 60
            conn = helper.getConnection();
......
76 81
            return result;
77 82
        } finally {
78 83
            helper.closeConnection(conn);
84
            conn = null;
79 85
        }
80 86
    }
81 87
//

Also available in: Unified diff