• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

criteriaFind(string criteria)

 
z meng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, guys
in assignment,how do you do with criteriaFind() ,
share your thought,ok?
very want your direction!thanks
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear zmeng, please look in this forums history before posting.
Regards
Enrico Mannarino
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually every question that anyone could ask has 99% of the time been asked already on this forum, and doing a search is always the best first solution.
However, the purpose of this forum is to allow people to ask questions that have already been answered here.
It is quite alright that it is a topic that had been covered many times. However, the user probably wasn't online here at that time, and refreshing the questions helps the user, brings some new thoughts to the table, and also helps others who might be past this part of the assignment to practice writing an essay answer to it.
I remember when I went back and searched on parts I was stuck on, sometimes the old posts didn't make sense to me, and by asking it again in my words, I understood it better.
Zmeng. For criteriaFind, you need to come up with a pattern that will take the GUI entries, put them into the correct string format. Then the server will need to Tokenize the string to put in let's say a HashSet. That way you can them loop through the entire database and compare each record to the HashSet and if the record matches, put the record into an Arraylist of DataInfo objects.
Mark
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
I do agree what your saying, but those questions citeriaFind and Lock/unlock have been discussed a lot the last week and not a year ago! All it takes is to look on the first page. I'm saying this to help.
I use search a lot, and if I can't find anything or I don't understand I'll ask the question
Enrico Mannarino
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,
Could you tell me how fast your algorithms were?
I mean can one read in all the table data once and filter those rows out that dont match or is it better to parse each time?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The table is so small that the response time is quick. However, I do believe that if the database ever got bigger, they would need a better algorithm. But that's beyond the scope.
Mark
 
z meng
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Mark Spritzler,thanks everybody!
my english is poor,so I never post before,I read many posts in this forum history,but no understand.
like Mark's words "asking it again in my words, I understood it better", and Isn't it better that make friends with everyone in this forum by posting!
later,thx you help!
zmeng
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic