Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About column names

 
hua chen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have a question about the values of Column Name. We already know the structure of the database, so can we use an array to set the vaules used for getColumnName() manually in a tableModel class? or we have to define another interface to get these values by programming? I do not want to define another interface to do this, is it OK?

Thank you very much.

Hua
 
Jason Moors
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hua,

I believe that people have passed in the past by defining the names in the tabel model, just make sure that you document your reasons.

I personally choose to extend the interface to provide the database schema as I felt it provided a more flexible design.

regards
Jason
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!