Auto-Updating JTable? - вопрос №403459

Is there a way by which JTable auto-updates itself, by including some timers or related stuff into our coding? There may be times when i update my database(back-end) from somewhere else, so is that possible that JTable auto-updates itself when it encounters certain changes in the database??

Вопрос задан анонимно
03.10.12
1 ответ

Лучший ответ по мнению автора

I can't say for sure, cause I don't know the details of your project.

But probably the problem may be solved via database Triggers:

dev.mysql.com/doc/refman/5.0/en/triggers.html

You have to write a stored procedure in the DB, which updates all needed data, and then just call it within a trigger OnUpdate for the table you are updating via backend.

04.10.12
Лучший ответ по мнению автора

Глеб Черняк

Читать ответы

Олег Николаевич

Читать ответы

Alexander

Читать ответы
Посмотреть всех экспертов из раздела Технологии
Пользуйтесь нашим приложением Доступно на Google Play Загрузите в App Store