Code example for Connection

Methods: closecommit

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 
Stop searching for code, let great code find you!  Add Codota to your java IDE