It is unclear because you did not mention where those radio buttons are coming from, are these Spring based controls, or other Java EE based HTML web pages, JSPs, or something entirely different. One way to do that is like this,
java - How to get value of selected radioButton of buttonGroup - Stack Overflow[
^], checking if the radio button is selected... But it can entirely depend upon your case.
All you need to do is, just capture the value for that radio button—if multiple radio buttons can be selected, then I guess you need to change the requirement from radio button to check box. Once you have the value of the radio button (or the radio button group), just save it using a normal
INSERT INTO
command (
as Richard mentions in the comment to your question).