public static void deleteAsocRegsSec(UseCaseConf useCaseConf,Integer bookIdSec,Integer folderIdSec) throws Exception {
  List lista=FolderAsocSession.getAsocRegFdr(useCaseConf.getSessionID(),bookIdSec,folderIdSec.intValue(),useCaseConf.getEntidadId());
  if (lista != null && !lista.isEmpty()) {
    for (Iterator iterator=lista.iterator(); iterator.hasNext(); ) {
      ScrRegasoc scrRegasoc=(ScrRegasoc)iterator.next();
      if (scrRegasoc.getIdArchsec() == bookIdSec.intValue() && scrRegasoc.getIdFdrsec() == folderIdSec.intValue()) {
        FolderAsocSession.deleteAsocRegFdr(useCaseConf.getSessionID(),useCaseConf.getEntidadId(),scrRegasoc);
        break;
      }
    }
  }
}

public static void deleteAsocRegsSec ( UseCaseConf useCaseConf , Integer bookIdSec , Integer folderIdSec ) throws Exception { List lista = FolderAsocSession . getAsocRegFdr ( useCaseConf . getSessionID ( ) , bookIdSec , folderIdSec . intValue ( ) , useCaseConf . getEntidadId ( ) ) ; if ( lista != null && ! lista . isEmpty ( ) ) { for ( Iterator iterator = lista . iterator ( ) ; iterator . hasNext ( ) ; ) { ScrRegasoc scrRegasoc = ( ScrRegasoc ) iterator . next ( ) ; if ( scrRegasoc . getIdArchsec ( ) == bookIdSec . intValue ( ) && scrRegasoc . getIdFdrsec ( ) == folderIdSec . intValue ( ) ) { FolderAsocSession . deleteAsocRegFdr ( useCaseConf . getSessionID ( ) , useCaseConf . getEntidadId ( ) , scrRegasoc ) ; break ; } } } }
eliminamos un registro secundario
