protected void doRemoveUser(User user) throws UsersRepositoryException {
  String username=user.getUserName();
  Connection conn=null;
  PreparedStatement removeUserStatement=null;
  try {
    conn=openConnection();
    removeUserStatement=conn.prepareStatement(m_deleteUserSql);
    removeUserStatement.setString(1,username);
    removeUserStatement.execute();
  }
 catch (  SQLException sqlExc) {
    sqlExc.printStackTrace();
    throw new UsersRepositoryException("Error accessing database",sqlExc);
  }
 finally {
    theJDBCUtil.closeJDBCStatement(removeUserStatement);
    theJDBCUtil.closeJDBCConnection(conn);
  }
}

protected void doRemoveUser ( User user ) throws UsersRepositoryException { String username = user . getUserName ( ) ; Connection conn = null ; PreparedStatement removeUserStatement = null ; try { conn = openConnection ( ) ; removeUserStatement = conn . prepareStatement ( m_deleteUserSql ) ; removeUserStatement . setString ( 1 , username ) ; removeUserStatement . execute ( ) ; } catch ( SQLException sqlExc ) { sqlExc . printStackTrace ( ) ; throw new UsersRepositoryException ( "Error accessing database" , sqlExc ) ; } finally { theJDBCUtil . closeJDBCStatement ( removeUserStatement ) ; theJDBCUtil . closeJDBCConnection ( conn ) ; } }
removes a user from the underlying repository . if the user doesn ' t exist , returns ok .
