• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Modification of Data

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic