Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modification of Data

 
Padmaja Prasad
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wish to add the following new methods to Data class (supplied by Sun).
String [] getColumnValuesAt(int colIndex)
DataInfo [] getAllRecords()
String getValueAt(int row, int column)
I feel these methods should be defined in Data class because any database must provide provisions to get all records, get data values at particular index and so on.
What do you guys think about it?? Is it Ok or it may cost some points?? Did anybody modified the Data class in your design??
I have created a helper class for criteriaFind, and invoking the methods defined in that class to perform search. My criteriaFind method is defined in Data class and it is syncd.
Thanks
Padmaja
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I wish to add the following new methods to Data class (supplied by Sun).
String [] getColumnValuesAt(int colIndex)
DataInfo [] getAllRecords()
String getValueAt(int row, int column)
I feel these methods should be defined in Data class because any database must provide provisions to get all records, get data values at particular index and so on.

These methods obviously belong to table model class, not Data class.
Eugene.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic