/** * Executes {@link Connection#commit()} and frees * the connection * @see org.geoserver.security.GeoServerRoleStore#store() */ public void store() throws IOException { // Simply commit the transaction try { getConnection().commit(); releaseConnection(); } catch (SQLException ex) { throw new IOException(ex); } setModified(false); }
/** * Executes {@link Connection#rollback() and * frees the connection object * * @see org.geoserver.security.jdbc.JDBCRoleService#load() */ public void load() throws IOException { // Simply roll back the transaction try { getConnection().rollback(); releaseConnection(); } catch (SQLException ex) { throw new IOException(ex); } setModified(false); }