Code example for Connection

Methods: close, commit

0
    // } 
 
    public void shutdown() { 
        try { 
            if (conn != null) {
                conn.commit();
                conn.close();
            } 
        } catch (SQLException e) {
        } 
    } 
 
    public Connection getConnection() {
        if(this.conn==null){
            openConnection(); 
        } 
        return this.conn;
    } 
 
    @Override 
    protected void finalize() throws Throwable {