JDBC update changes to JTable.

Поиск
Список
Период
Сортировка
От Jian He
Тема JDBC update changes to JTable.
Дата
Msg-id CAMV54g2BjqaDXVXDdHyBx4CUYTnNPBJQcXQXh4PzxMfdzYKuhQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: JDBC update changes to JTable.
Список pgsql-jdbc
So far what I have been wondering: 
  • I have somehow finished the beginner level of JTable step by step following the official tutorial. 
  • I know how to use JDBC to query/update/ delete PostgreSQL database records.
  • Add a button to update and insert and delete database table.
After using select syntax to populate JTable, I wonder how to update changes made in JTable to the database. 
After browsing StackOverFlow, I have some basic idea: 
  • Step 1: editing
  • step 2: stop editing;
  • Step 3: make the update sync with the database.
Step1 is about adjusting the DefaultTableModel by calling related methods as per requirement. Related link: DefaultTableModel (Java Platform SE 7 ) (oracle.com)


Step3: I  don't know how to do it.  So I asked the question on StackOverFlow (java - Update changes In JTable to database? - Stack Overflow) If you guys know how to do it, please help me. 

I know it's less about JDBC,  more about Java. Anyway.................

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Exception while updating result set
Следующее
От: Sehrope Sarkuni
Дата:
Сообщение: [pgjdbc/pgjdbc] 022f1c: test: Change test TLS cert generation to have ten ...