I doubt there will be full DNA analysis - the police are just going to see who refuses and focus any investigation on them.
The few students who did a DNA swab with a track record or opportunity will have their DNA examined.
They are not after the full genome of all (male) students and teachers - they are just doing normal detective work.