I guess you will be adding a button which when clicked would do the save operation. You need to add a getData() method in the table model that would return the data.
(since you are using only an object array you would be better off using DefaultTableModel and creating an anonymous instance to override the isCellEditable method).
You can then call that method and persist it to the database. Also, I would think you have the persistence code completely separate - say having it in a different class altogether.
I see you copied the code from the Swing tutorial. I suggest you read the section from the tutorial on How to Use Buttons for examples of using buttons.
Regarding using the DefaultTableModel you can read the API or search the forum or web for examples.
Ranganathan Kaliyur Mannar wrote: I would think you have the persistence code completely separate - say having it in a different class altogether.
As I have stated earlier, you should write a separate class that will connect to a MySQL database and persist data. You should have a value bean class that represents the entity. You can use JPA to declare this as an @Entity too.
Then, you can deal with this class in your table model. Btw, your implementation of DefaulTableModel has nothing much. Deal with one problem at a time separately and then you can integrate them.
You can learn more about table models from the tutorial