• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!