public void removeAppointments ( Anniversary recAnniversary ) { SubFileFilter listener = new SubFileFilter ( this ) ; recAnniversary . addListener ( listener ) ; try { recAnniversary . close ( ) ; while ( recAnniversary . hasNext ( ) ) { recAnniversary . next ( ) ; recAnniversary . edit ( ) ; recAnniversary . remove ( ) ; } } catch ( DBException ex ) { ex . printStackTrace ( ) ; } finally { recAnniversary . removeListener ( listener , true ) ; } }
RemoveAppointments Method .