public static int obtenerIDCompAutorizacion(int idalerta) { alerta = new Alerta(); alerta.ID = idalerta; return(alerta.getIDCompAutorizacion()); }