• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

search method

 
Alejandro Sandoval
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My assignment says �It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.� I have searched in this forum and found great explanations about the second part of this sentence, but my doubt is in the first part, does it mean that the user may retrieve all records? I mean I have to put some button that the user presses for getting all the records?
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Partner,

the way that the records will be retrieved is really up to you. As long as you provide a way for the user to search for all records in the database, and these records are placed in the JTable of your GUI, it's ok.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My spec is also similar to you. I am thinking of populating all records in JTable when user clicks the query button without entering any value in the search keyword text field. i.e the search is based on null or empty value. For specific or exact search you have already found some replies

PS: I have been reading the requirement since last week and not implemented a single code except data retrieval for testing purpose
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I implemented the search record sequentially, To search for all records, I just left the hotel and location textfield (URLyBird) empty, and then click the search button.

Jeffry Kristianto Yanuar
SCJP 5.0
SCJA
SCJD (Working on UrlyBird 1.3.2)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic